Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:28068
HistoryMay 10, 2012 - 12:00 a.m.

[CVE-2012-1002] OpenConf <= 4.11 (author/edit.php) Blind SQL Injection Vulnerability

2012-05-1000:00:00
vulners.com
49

OpenConf <= 4.11 (author/edit.php) Blind SQL Injection Vulnerability

author…: Egidio Romano aka EgiX
mail…: n0b0d13s[at]gmail[dot]com
software link…: http://www.openconf.com/
affected versions…: from 4.00 to 4.11

[-] Vulnerable code in /author/edit.php:

  1.       // get sub
    
  2.       $anr = ocsql_query&#40;&quot;SELECT * FROM &#96;&quot; . OCC_TABLE_PAPER . &quot;&#96; WHERE &#96;paperid&#96;=&quot; . safeSQLstr&#40;$_POST[&#39;pid&#39;]&#41;&#41; ...
    
  3.       if &#40;mysql_num_rows&#40;$anr&#41; != 1&#41; {
    
  4.               err&#40;oc_&#40;&#39;Submission ID or password entered is incorrect&#39;&#41;&#41;;
    
  5.       }
    
  6.       $_POST = array_merge&#40;$_POST, mysql_fetch_assoc&#40;$anr&#41;&#41;;
    

User input passed through $_POST['pid'] seems correctly sanitised by the safeSQLstr() function, but in the query
at line 105 single quotes aren't used before concatenate the user input into the query string. This can be
exploited to conduct a Blind SQL Injection attack. Successful exploitation of this vulnerability requires at
least a record into the 'paper' table, and 'Edit Submission' to be enabled.

[-] Disclosure timeline:

[27/01/2012] - Vulnerability discovered
[01/02/2012] - Issue reported to bugs(at)openconf.com
[02/02/2012] - Version 4.12 released: http://www.openconf.com/news/#20120202
[02/02/2012] - CVE number requested
[02/02/2012] - Assigned CVE-2012-1002
[02/05/2012] - Public disclosure

[-] Proof of concept:

http://www.exploit-db.com/exploits/18820/