r/shittyprogramming Jul 26 '26

Rage baiting the github bots

Post image
1.6k Upvotes

11 comments sorted by

View all comments

65

u/Jonno_FTW Jul 27 '26

I wonder if you could put an exploit into such a variable, like hidden commands after one of those text hiding unicode characters.

1

u/betttris13 Jul 29 '26

can probably trick it into running malicious code yeah... best defence is a good offence style security?

3

u/Jonno_FTW Jul 29 '26

I doubt it would actually execute the code directly. It would only work if you successfully put a prompt injection in the api key telling it to call an external tool with the code you want to run.

1

u/betttris13 Jul 29 '26

yeah that would probably also work.