DEV Community

Discussion on: RIP Copy and Paste from Stackoverflow! 🚨 (+Trojan Source Solution)

Collapse
 
momander profile image
Martin Omander

I think it would be possible to write malicious code that passes the unit tests. For example, what if the code in the article gave the user admin access if they are a legitimate admin or if their username is "fluffy-bunny"?

Some comments have been hidden by the post's author - find out more