CVE-2026–33139 How I Found My First CVE: Bypassing PySpector’
PySpector's plugin security validator only checked calls whose function was a simple name or attribute, so a call wrapped in another call (such as getattr) bypassed the check. An attacker could install a malicious plugin that executed arbitrary operating system commands.
Published on medium.com
I’ve always been the kind of person who, when using a tool, starts wondering how it works under the hood. Not just what it does but how.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The validator's resolve_name() returned None for call expressions whose function was itself a call, and the security check was silently skipped instead of failing closed.
Impact
An attacker who can supply a plugin could execute arbitrary commands on the machine running PySpector.
What the attacker needed
Ability to install a plugin; plugin loaded with force_load
The fix
The vulnerability was patched in the latest version of PySpector.
How it was found
- Create a plugin file with valid metadata and a payload inside process_findings().
- Install the plugin through PySpector's plugin manager.
- Load the plugin with force_load enabled.
- Execute the plugin and observe that the command ran.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A plugin is extra code that a tool loads and runs. PySpector tried to check plugin code for dangerous commands before running it, but its checker only recognised simple ways of writing those commands. By writing the same dangerous command in a slightly different way, the checker missed it and the command ran.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.