View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
07105 | Bug reports | Security | public | 2012-12-18 16:43 | 2013-01-02 21:30 |
Reporter | josepablo | Assigned To | c_schmitz | ||
Priority | high | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.00+ | ||||
Fixed in Version | 2.00+ | ||||
Summary | 07105: SQL Injection/Blind SQL Injection | ||||
Description | POST/GET parameters are not being sanitized. By setting the value of the parameter '553173X46X522' to 'A1%27+and+%27f%27%3D%27f' demonstrates it gets executed by the database engine (SQL Injection) Here's the POST request made to the server with the altered parameter: | ||||
Steps To Reproduce | The issue was found using ibm appscan enterprise edition. Can be reproduced by altering the POST request as stated above. | ||||
Additional Information | In order to use limeSurvey in government approved projects the issue should be solved. | ||||
Tags | No tags attached. | ||||
Bug heat | 256 | ||||
Complete LimeSurvey version number (& build) | 121127 | ||||
I will donate to the project if issue is resolved | Yes | ||||
Browser | All | ||||
Database type & version | MySQL 5.5.25a-27.1-log Percona Server (GPL), Release rel27.1, Revision 277 | ||||
Server OS (if known) | CentOS release 6.3 (Final) | ||||
Webserver software & version (if known) | Nginx | ||||
PHP Version | 5.3.8 | ||||
Carsten, can you have a look at this one? I'm not sure where this POST request is made, I would guess when storing survey field values at the DB. josepablo can surely provide more details. |
|
I am sorry but I cannot reproduce it here. Can you provide the related survey as .lss file please? |
|
And what output do you actually get that shows that the sql injection worked? |
|
These are the steps that were taken to produce the SQL Injection: Set the value of the parameter 'lastgroup' to '553173X461+having+1%3D1--' Here's the output we got: (Please look in the body section of the output, column not found...) HTTP/1.1 500 CDbException .... <body>
<div class="version"> 2012-12-11 09:41:33 </div> </body> </html> |
|
I am sorry but that's not an SQL injection - the only thing you can do with this is to create an error message - not elegant. But you won't be able to execute an arbitrary statement using this or create any other damage - because the (invalid) field name itself is properly quoted and you won't be able to break out of these quotes. I admit this could be handled 'nicer' but in general it is low priority since it is not security relevant. Anyway, thank you for bringing this to our attention. If you have another case to check please let me know. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=10997 |
|
Fix committed to 2.1 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=11006 |
|
New version released. |
|
LimeSurvey: master 0df3fdf8 2012-12-22 18:38 Details Diff |
Fixed issue 07105: Bad error handling on invalid lastgroup POST |
Affected Issues 07105 |
|
mod - application/libraries/Save.php | Diff File | ||
LimeSurvey: 2.1 9be3c860 2012-12-22 18:38 Details Diff |
Fixed issue 07105: Bad error handling on invalid lastgroup POST |
Affected Issues 07105 |
|
mod - application/libraries/Save.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-12-18 16:43 | josepablo | New Issue | |
2012-12-18 17:08 | Mazi | Assigned To | => c_schmitz |
2012-12-18 17:08 | Mazi | Status | new => assigned |
2012-12-18 17:10 | Mazi | Note Added: 23268 | |
2012-12-19 16:21 | c_schmitz | Note Added: 23282 | |
2012-12-19 16:25 | c_schmitz | Note Added: 23283 | |
2012-12-19 22:37 | josepablo | Note Added: 23290 | |
2012-12-19 22:57 | c_schmitz | Note Added: 23291 | |
2012-12-19 22:57 | c_schmitz | Status | assigned => feedback |
2012-12-22 18:38 | c_schmitz | Status | feedback => resolved |
2012-12-22 18:38 | c_schmitz | Fixed in Version | => 2.00+ |
2012-12-22 18:38 | c_schmitz | Resolution | open => fixed |
2012-12-22 18:38 | c_schmitz | Changeset attached | => LimeSurvey master 0df3fdf8 |
2012-12-22 18:38 | c_schmitz | Note Added: 23354 | |
2012-12-22 19:09 | c_schmitz | Changeset attached | => LimeSurvey 2.1 9be3c860 |
2012-12-22 19:09 | c_schmitz | Note Added: 23363 | |
2013-01-02 21:30 | c_schmitz | Note Added: 23408 | |
2013-01-02 21:30 | c_schmitz | Status | resolved => closed |