Skip to content
Access control Write-up Intermediate

Nasa Hidden Login Page Bypass Via Auth Redirect 403 Bypass Cve 2023 5089

Defender Security versions before 4.1.0 do not properly restrict access to the WordPress login page when the Hide Login Page feature is enabled. An unauthenticated attacker can abuse the auth_redirect function and manipulate the URL path to bypass an HTTP 403 restriction and reach the login page, enabling brute force, credential stuffing, and user enumeration.

Miguel Angel Méndez Z Follow

Published on infosecwriteups.com

Defender Security versions prior to 4.1.0 fail to properly restrict access to the WordPress login page when the Hide Login Page feature is enabled. By abusing the authredirect function (CVE-2023–5089), an unauthenticated attacker can trigger a redirect to the login endpoint and bypass the initial HTTP 403 restriction…

Miguel Angel Méndez Z., on infosecwriteups.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 plugin's auth_redirect handling does not properly enforce the hidden login page restriction when a crafted URL with specific parameters is used, allowing the redirect to expose the login endpoint.

Impact

An unauthenticated attacker could bypass the hidden login protection, gaining access to the WordPress login page and enabling further attacks such as brute force, credential stuffing, and user enumeration.

What the attacker needed

Defender Security < 4.1.0; Hide Login Page feature enabled; No authentication required

The fix

The issue was fixed in Defender Security version 4.1.0.

How it was found

  1. Send a request to the target with a crafted gf_page parameter to trigger a redirect to the WordPress login endpoint.
  2. Follow the redirect to the login page, which should be blocked but is accessible.
  3. Observe that the 403 restriction is bypassed and the login page is displayed.
  4. Capture an HTTP request to validate credentials and apply URL manipulation to bypass the 403 response.
  5. Confirm that the application processes credential validation even with invalid credentials.

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 WordPress plugin called Defender Security tried to hide the login page so attackers could not find it. However, a feature that redirects users to the login page could be tricked into showing the page anyway, even though it was supposed to be blocked. This means an attacker could still try to guess passwords or find usernames.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Miguel Angel Méndez Z

View all

7 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.