VYPR
Unrated severityNVD Advisory· Published May 2, 2022· Updated Aug 3, 2024

All In One WP Security < 4.4.11 - Authenticated Reflected Cross-Site Scripting

CVE-2021-25102

Description

The All In One WP Security & Firewall WordPress plugin before 4.4.11 does not validate, sanitise and escape the redirect_to parameter before using it to redirect user, either via a Location header, or meta url attribute, when the Rename Login Page is active, which could lead to an Arbitrary Redirect as well as Cross-Site Scripting issue. Exploitation of this issue requires the Login Page URL value to be known, which should be hard to guess, reducing the risk

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

Root cause

"Missing validation, sanitization, and escaping of the redirect_to parameter allows arbitrary redirect and reflected XSS."

Attack vector

An attacker must first know the renamed login page URL, which is intended to be hard to guess. Once that precondition is met, the attacker can craft a malicious link containing a `redirect_to` parameter pointing to an arbitrary external site (open redirect) or containing JavaScript code (reflected XSS). When an authenticated user or administrator visits this crafted URL, the plugin uses the unsanitized `redirect_to` value in a Location header or meta URL attribute, causing the browser to navigate to the attacker-controlled destination or execute the injected script [ref_id=1].

Affected code

The vulnerability exists in the All In One WP Security & Firewall plugin's login page redirect functionality, specifically in the handling of the `redirect_to` parameter when the Rename Login Page feature is active. The advisory does not specify exact file paths or function names [ref_id=1].

What the fix does

The advisory states the fix was released in version 4.4.11 but does not include a patch diff. The remediation involves properly validating, sanitizing, and escaping the `redirect_to` parameter before using it in redirect headers or meta URL attributes, ensuring only allowed or safe destinations are accepted [ref_id=1].

Preconditions

  • configThe Rename Login Page feature must be active in the plugin settings
  • inputThe attacker must know or guess the renamed login page URL value
  • networkA user (potentially authenticated) must visit the crafted malicious URL

Generated on May 25, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

1

News mentions

0

No linked articles in our index yet.