a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment by Meriadoc
Meriadoc  ·  3491 days ago  ·  link  ·    ·  parent  ·  post: The worst code ever written, courtesy of /r/PHP

Holy shit.

That's.. impressive. No, really, I am just impressed that something that simple is just... the most catastrophic thing I've ever seen.





dantheman1723  ·  3491 days ago  ·  link  ·  

Hi, I'm still somewhat new to BASH, but did he just give sudo privileges to every user on his website?

tauta_krypta  ·  3490 days ago  ·  link  ·  

Not only gave sudo privileges with no password, but also probably used no input sanitation, so allowed anyone to run any command with sudo privileges.

DC-3  ·  3491 days ago  ·  link  ·  

It'd be hard to do that badly if you actively tried to write insecure code.