Cursor 0day: When Full Disclosure Becomes the Only Protection Left
50 points by Synthetic7346 3 hours ago | 14 comments

minraws 5 minutes ago
Why is cursor subsequently executing anything? Like what is this black magic they want to do? I want to know the decision tree here? Was this cursor coded?

I do not understand the point, btw vim has had similar issues with it executing stuff you might not expect by loading a file but it was obviously a vim feature with %{expr}. But why specifically git.exe , this seems like the most redundant bug cve which could have been trivially patched, who does this feature help exactly?

I am not really a user of cursor never used it for even a single day, but at this point I am curious why this exists...

reply
ajhenrydev 33 minutes ago
This report reads a bit like AI writing :/

You need to have an already malicious payload on your pc to make this exploit work. I can understand the severity of the exploit but at the same time I’d hope to not have to run into this situation for it to happen in the first place

reply
gene91 22 minutes ago
Modern day code agents would clone a repo and read the code when you ask it a question about an API that’s not clearly documented. This vulnerability is real.
reply
AntonyGarand 31 minutes ago
The malicious payload can live on the remote: `git clone` a repo, open it with cursor, and you're compromised
reply
pixl97 27 minutes ago
>You need to have an already malicious payload on your pc to make this exploit work

Uh, no, not exactly from what I'm reading.

At least from my piss poor understanding of it, you could possibly prompt inject something like "download https://github.com/hackmycursor/exploit.git". Would an agent do this, I'm unsure, but if so, it would download the git.exe and execute it.

reply
trollbridge 26 minutes ago
This has been a problem with agent harnesses for as long as I've used them - prompting them to retrieve something often results in them going the extra mile and running and installing it.
reply
JMKH42 31 minutes ago
wouldn't the attack vector be like this:

I find a github repo, I want to contribute to it. I clone it, open up cursor, make an edit, commit, and boom, I am infected.

reply
aliasxneo 39 minutes ago
I'm struggling to understand the process that went into this "feature" existing. It seems the most likely candidate is a developer's git started malfunctioning and an agent "fixed" it by dropping a `git.exe` in the repo and then conditionally calling it when it exists.
reply
gruez 26 minutes ago
>It seems the most likely candidate is a developer's git started malfunctioning and an agent "fixed" it by dropping a `git.exe` in the repo and then conditionally calling it when it exists.

It doesn't need to be that deliberate. The default shell on windows (cmd.exe) includes the current directory into PATH by default. In other words, you don't need to do `./program.exe`, `program.exe` would suffice. That's probably where the bug came from. This also means if you were using cmd.exe, ran `git clone`, went inside it, then executed any command (eg. dir or git) you could get pwned.

reply
drdexebtjl 15 minutes ago
Windows doesn’t really have a default login shell like Unix.

Windows Terminal defaults to PowerShell which does not suffer from this issue.

reply
conartist6 38 minutes ago
and ever since, this approach has been a critical pathway for some billion dollar business probably. hooray
reply
pixl97 26 minutes ago
I see you also work in enterprise software.
reply
nosefrog 34 minutes ago
Would be nice if the timeline matched up with the text of the blog post (missing "HackerOne provides disclosure guidance").
reply
nubg 35 minutes ago
> Most coordinated disclosures follow a familiar pattern:

> 1. A vulnerability is reported.

> 2. A dialogue begins.

> 3. Severity is discussed.

> 4. Engineering teams investigate.

> 5. Fixes are developed.

> 6. Users are protected.

> 7. Public disclosure follows.

8. The author prompts an LLM to write a blog post.

9. HN users are wasting time, unsure which parts of the post come from the actual prompt, and which are hallucinated world knowledge slop.

reply
DaWe01 60 minutes ago
[flagged]
reply
sieabahlpark 47 minutes ago
[dead]
reply