|
|
|
|
|
by ollien
339 days ago
|
|
Heh - I hope I didn't suggest that you _should_ use eval in production. It's a catastrophically bad idea due to the unchecked power. You do raise a good point that this is effectively eval, but I would also imagine that no developer is running `SELECT username FROM users LIMIT 1 |xargs "bash -c"`, either, even on their local machine. |
|
The linked article details pretty much exactly that scenario.
> The breach occurs when a developer later uses Cursor to review open tickets. The developer might issue a prompt like:
> “Show me the latest open support ticket.”
Then Cursor finds the open ticket with this in it:
Which gets fed right into the prompt, similar to "| xargs 'bash -c'".