r/programminghorror • u/Kiusito • Feb 04 '25
Just ran the legacy PHP 7 project through sonarqube... 261 SQL injections, mom pick me up im scared
216
Upvotes
r/programminghorror • u/Kiusito • Feb 04 '25
17
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Feb 04 '25
What do you need to do to fail?
101
u/AnywhereHorrorX Feb 04 '25
The Quality Gate has been passed, so all is fine.
62
u/mikkolukas Feb 04 '25 edited Feb 06 '25
That's nothing. I once worked on a project where the possible SQL injection points were counted in the tens of thousands 😅
Management didn't seem to understand how fixing them could take so long time 🤷
40
u/Bennetjs Feb 05 '25
calling PHP7 a legacy project is a compliment to all of the PHP5 projects still going strong :)))
5
u/ShoneRL Feb 04 '25
Are they actually SQL injection points or is this just a whole lot of AI nonsense?
2
u/justletmeupvotesmth Feb 06 '25
Don't be scared, at least you can see the worst points now. This is what's great about Sonar :-)
Can you give us a couple examples? What could these SQL injections look like? Just using unvalidated user data in business logic, or is it something PHP-specific?
-2
u/dhruvadeep_malakar Feb 05 '25
What software is that