Next time someone asks you "How do I find open source projects to contribute to?" this is a good place to start.
SQL Injection Galore
41–50 of 88 posts
Re: SQL Injection Galore
#42I have commit hooks on our repository that look for things like this and prevent the user committing it! We've got 30 odd rules so far that have saved us from all sorts of pain from exception swallowing to adding test ignores as well.
Could you share some of these?
Re: SQL Injection Galore
#43I always preferred the remote code execution search myself personally... https://github.com/search?q=extension%3Aphp+exec+%24_GET&typ...
Re: SQL Injection Galore
#44Re: SQL Injection Galore
#45We actually clean the GET and POST arrays in an include when the page gets requested, if you need anything unescaped you specifically have to request it from a different array. The code looks something like this: $_GET = array_map ( 'strip_tags', $_GET ); $_GET = array_map ( 'mysql_real_escape_string', $_GET ); Although there is a bit more to it than just this.
Re: SQL Injection Galore
#46I always preferred the remote code execution search myself personally... https://github.com/search?q=extension%3Aphp+exec+%24_GET&typ...
Django... https://github.com/search?q=extension%3Apy+os.system+%22requ...
System (as you mentioned) or EXEC injections, however, may get out of hand.
Re: SQL Injection Galore
#47I always preferred the remote code execution search myself personally... https://github.com/search?q=extension%3Aphp+exec+%24_GET&typ...
Holy shit! Look at this! This is hilarious! https://github.com/bratliff/engconf/blob/0b8f003edc5f5d25fe1...
Edit - made an issue.
Re: SQL Injection Galore
#48I always preferred the remote code execution search myself personally... https://github.com/search?q=extension%3Aphp+exec+%24_GET&typ...
Holy shit! Look at this! This is hilarious! https://github.com/bratliff/engconf/blob/0b8f003edc5f5d25fe1...
Re: SQL Injection Galore
#49Re: SQL Injection Galore
#50my 2 cents: 1) At the first place, yes, it does look like these are sureshot SQL injections. 2) However, we are looking through just a tiny window. There could be filter chains executed long before this code that would sanitize the request parameters before they are consumed anywhere else in the codebase.