Petje.af <= 2.1.8 - Cross-Site Request Forgery to Account Deletion via 'petjeaf_disconnect' AJAX Action
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
The Petje.af plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to and including 2.1.8. This is due to missing nonce validation in the ajax_revoke_token() function which handles the 'petjeaf_disconnect' AJAX action. The function performs destructive operations including revoking OAuth2 tokens, deleting user meta, and deleting WordPress user accounts (for users with the 'petjeaf_member' role) without verifying the request originated from a legitimate source. This makes it possible for unauthenticated attackers to force authenticated users to delete their Petje.af member user accounts via a forged request granted the victim clicks on a link or visits a malicious site.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- petjeaf Petje.af
through 2.1.8
References 7
plugins.trac.wordpress.org
- browser/petje-af/trunk/includes/class-petje-af-oauth2-provider.php#L346
- browser/petje-af/tags/2.1.8/includes/class-petje-af-oauth2-provider.php#L346
- browser/petje-af/trunk/includes/class-petje-af-oauth2-provider.php#L326
- browser/petje-af/tags/2.1.8/includes/class-petje-af-oauth2-provider.php#L326
- browser/petje-af/trunk/includes/class-petje-af.php#L182
- browser/petje-af/tags/2.1.8/includes/class-petje-af.php#L182