Live data from Hacker News

Drupal 7 SQL Injection Vulnerability

sektioneins.de

11–20 of 83 posts

Re: Drupal 7 SQL Injection Vulnerability

#11
> Full SQL injection, which results in total control and code execution of Website.

Well that doesn't sound good. Drupal.org itself is still running[1] on the unpatched version 7.3.1 which sends a message of how likely sites are to be updated.

[1] https://www.drupal.org/CHANGELOG.txt

Re: Drupal 7 SQL Injection Vulnerability

#13
I feel like Hacker News has become home of the "security exploit du jour." There have always been new exploits being found daily, what's changed is the severity and wide reaching nature of said exploits.

You might ask, when will we learn? Well, the truth is making secure systems is incredibly hard work and often comes at the price of flexibility/usability/programmer productivity. We know how to do it, it's just not easy to incorporate.

Re: Drupal 7 SQL Injection Vulnerability

#15
post #10

how bad is this?

It appears to be a pretty serious issue. The SQL injection alone is bad but the ability to run basically any PHP code through callbacks makes the problem that much worse.

SQL injection alone is often enough to get you RCE if your MySQL account has FILE permissions enabled (often true). Something like `SELECT "<?php eval($_GET['x'])" INTO OUTFILE /srv/www/backdoor.php`.

Re: Drupal 7 SQL Injection Vulnerability

#17
IMHO this is the direct result of conflating arrays/list and hashes/dictionaries into a single thing on the programming language level.

Sure, careful programming would have avoided that, but if the two concept were fundamentally different types, this bug would be impossible.

Re: Drupal 7 SQL Injection Vulnerability

#18

> Full SQL injection, which results in total control and code execution of Website. Well that doesn't sound good. Drupal.org itself is still running[1] on the unpatched version 7.3.1 which sends a message of how likely sites are to be updated. [1] https://www.drupal.org/CHANGELOG.txt

Drupal.org is patched and has been for weeks.

Re: Drupal 7 SQL Injection Vulnerability

#19
Could this problem be solved by quoting parameters ? I believe PDO has quoting capabilities when it comes to query parameters in prepared statements.i.e. one can state this parameters is a string , or an integer ....

Re: Drupal 7 SQL Injection Vulnerability

#20

IMHO this is the direct result of conflating arrays/list and hashes/dictionaries into a single thing on the programming language level. Sure, careful programming would have avoided that, but if the two concept were fundamentally different types, this bug would be impossible.

ruby and perl web frameworks have had similar problems when receiving data it could be an array or a hash or a string and people assumed it was string but in the other cases it would cause sql injection or weird behaviour.
Post reply on HN