2 ms·
There doesn't seem to be any safeguards for editing the content that gets saved to the file. Much like injecting extra commands into the clipboard when a user c
by helloitsian 6y ago
There doesn't seem to be any safeguards for editing the content that gets saved to the file. Much like injecting extra commands into the clipboard when a user copies a terminal command, what's stopping someone from injecting a obsfucated piece of code to line 10000 of a python file? Maybe fugu could enforce a diff result on the of the original vs new file as an additional security step but that's just another alert out of the 10 added ones you have to deal with in your development process.
Is there any safeguards in the FileSystem Writable api to protect from this?