Skip to content
Account takeover Write-up Beginner

Unauthenticated Broken Authentication Vulnerability in WordPress Jobmonster Theme - Patchstack

The Jobmonster WordPress theme exposed an unauthenticated AJAX login handler that set an authentication cookie for any user whose email address the attacker supplied. An unauthenticated attacker could therefore impersonate an administrator and gain elevated access without valid credentials.

patchstack.com

Published on patchstack.com

Jobmonster theme broken authentication ⚠️ lets attackers bypass login (CVE-2025-54738). Update to version 4.8.0+ now to secure your site 🔒

The author, on patchstack.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

The check_login AJAX handler fell through a switch statement's default case and then used an attacker-supplied POST email as the user lookup, calling wp_set_auth_cookie without nonce, capability or authentication checks.

Impact

An unauthenticated attacker could impersonate any user, including an administrator, and gain elevated access to protected functionality or accounts.

What the attacker needed

No account needed; victim email address known; theme version below 4.8.0

The fix

The theme was fixed in version 4.8.0 by removing the fallback that accepted an arbitrary email from POST and only setting the user email from validated social-provider responses.

How it was found

  1. Send an unauthenticated POST request to admin-ajax.php targeting the theme's login action.
  2. Set the 'using' parameter to any unsupported value so the switch falls to the default case.
  3. Set the 'id' parameter to the victim's email address, such as an administrator's.
  4. Receive a success response with a session cookie for that user, impersonating the account.

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.

When you log in to a website, the site gives your browser a cookie that proves who you are. This theme had a login function that would hand out that proof to anyone who simply named another person's email address, with no password and no check that the request was legitimate. So a stranger could ask the site to log them in as the administrator.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.