Skip to content
XSS Write-up Intermediate

From Broken Access Control to Mass Account Takeover

The wp-jobhunt plugin lacks authorization checks on an AJAX endpoint, allowing any candidate to update other users' application statuses and inject HTML or JavaScript. The stored XSS can be used to change a victim's email without verification, leading to full account takeover via password reset.

medium.com

Published on medium.com

During a security analysis of the wp-jobhunt plugin bundled with the JobCareer WordPress theme (≤ 7.2), two vulnerabilities were identified within the job application workflow. While each issue alone provides a partial path toward deeper exploitation, their combined abuse enables a complete and scalable account…

Meghnine Islem, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the AJAX endpoint lacks authorization checks and output encoding, and the email change feature lacks verification.

Impact

An attacker could take over arbitrary user accounts, leading to complete loss of account integrity and user impersonation.

What the attacker needed

A candidate account; victim visits the applied jobs page

How it was found

  1. Create a low-privileged candidate account.
  2. Send a request to the AJAX endpoint with a manipulated user_id and a status containing JavaScript.
  3. The victim visits the 'Applied Jobs' dashboard, causing the script to execute.
  4. The script sends a request to change the victim's email to an attacker-controlled address.
  5. The attacker triggers the 'Forgot Password' function.
  6. The attacker resets the password using the link sent to their email.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A plugin for a job board lets any logged-in user change the status of someone else's job application. The status text is not cleaned, so an attacker can put harmful code there that runs when the victim views their applications. The attacker can then change the victim's email address without proving they own it, and use the password reset to take over the account.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.