I have the Logging and Alerts module installed on a few of my sites. Yesterday I noticed a series of notification emails with the following data. These produced PDOException
exceptions and so far as I can tell were unsuccessful at doing anything malicious.
This site was patched hours after SA-CORE-2014-005 was announced on 2014-Oct-15.
I simply want verification that these types of SQL injection attacks create PDOExceptions in Drupal, vs stripping the offending key/values from the injection attempt. Prior to the patch I wasn't receiving any such errors.
Email Title from LoggingAlerts module: [] Error: PDOException: SQLSTATE[42000]: Syntax error or access... Email Message Body: [email protected] Mon, Nov 17, 2014 at 11:04 AM To: [email protected] Site: https://site.com Severity: Error (3) Timestamp: 20141117 11:04:35 Type: php IP Address: 128.xxx.xxx.xxx Request URI: https://site.com/?q=user/login Referrer URI: User: Anonymous (0) Link: Message: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 'test' AND status = 1' at line 1: SELECT * FROM {users} WHERE name = :name_0, :name_1 AND status = 1; Array ( [:name_0] => test3 [:name_1] => test ) in user_login_authenticate_validate() (line 2149 of /var/www/mysite/htdocs/modules/user/user.module). $_SERVER => Array ( [HTTP_HOST] => site.com [HTTP_X_REAL_IP] => 198.101.235.xxx [HTTP_X_FORWARDED_FOR] => ... lots of more lines of email output ...