# CVE-2021-25102: All In One WP Security < 4.4.11 - Authenticated Reflected Cross-Site Scripting

> Authenticated attackers can execute arbitrary scripts via reflected XSS in the All In One WP Security plugin when the Rename Login Page feature is active.

- **Severity:** Medium 4.7 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 2 May 2022
- **Updated:** 3 Aug 2024
- **Also known as:** GHSA-jw24-79q4-qcv5

## What is CVE-2021-25102?

CVE-2021-25102 is a medium-severity cross-site scripting vulnerability in Unknown All In One WP Security & Firewall, published on 2 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official 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

Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)

## Which versions are affected by CVE-2021-25102?

It affects 1 product.


Products: Tipsandtricks-Hq All in One Wp Security \& Firewall.

## How do I fix CVE-2021-25102?

No fix has been published for CVE-2021-25102 yet. Limit exposure of the affected software until one is available.

## Is CVE-2021-25102 being exploited?

There is no known exploitation of CVE-2021-25102 in the wild and no public exploit code.

## Other vulnerabilities in Unknown All In One WP Security & Firewall

- [CVE-2015-9310](https://insights.sbomify.com/CVE-2015-9310/): SQL injection in n/a (critical 9.8)
- [CVE-2016-10887](https://insights.sbomify.com/CVE-2016-10887/): SQL injection in n/a (critical 9.8)
- [CVE-2016-10888](https://insights.sbomify.com/CVE-2016-10888/): SQL injection in n/a (critical 9.8)
- [CVE-2022-44737](https://insights.sbomify.com/CVE-2022-44737/): WordPress All In One WP Security plugin <= 5.1.0 - Multiple Cross-Site Request Forgery (CSRF) vulnerabilities (medium 6.5)
- [CVE-2015-9293](https://insights.sbomify.com/CVE-2015-9293/): Cross-site scripting in n/a (medium 6.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-25102 and fix it if it is affected.

What it is: CVE-2021-25102 is a medium-severity cross-site scripting vulnerability in Unknown All In One WP Security & Firewall, published on 2 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2021-25102 in the wild and no public exploit code.

Affected product: Unknown All In One WP Security & Firewall. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2021-25102/ (Markdown: https://insights.sbomify.com/CVE-2021-25102/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2021-25102
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2021-25102
- OSV: https://osv.dev/vulnerability/CVE-2021-25102

---
From sbomify Insights: https://insights.sbomify.com/CVE-2021-25102/
Summaries are generated and may contain mistakes; the official description above is the record.
