Skip to content

Instantly share code, notes, and snippets.

@bolhasec
Last active July 17, 2024 00:08
Show Gist options
  • Select an option

  • Save bolhasec/9d40dfb4c304189d5ef433b1594feeea to your computer and use it in GitHub Desktop.

Select an option

Save bolhasec/9d40dfb4c304189d5ef433b1594feeea to your computer and use it in GitHub Desktop.
POC CVE-2024-6695

References: https://wpscan.com/blog/unauthenticated-privilege-escalation-in-profile-builder-plugin/

When registering a new user, add a space before the victim's email. For examples,

 admin@email.com
image image

The vulnerability works due to signup using trim($request_data['email'])) and autologin using trim(sanitize_email( $_POST['email'])).

If the frontend prevents it, you may need to change the email with Burp Suite or another proxy.

Prerequisites:

  • register enabled
  • autologin enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment