Overview
Original source dataWordPress is vulnerable to a pre-auth reflected XSS vulnerability on the login screen.
Via a specially crafted malicious third-party website hosted by an attacker, it is possible for this to be escalated to an RCE vulnerability with conditions outside of the attackers control. This requires successful social engineering of and explicit interaction by the target victim.
This issue affects all versions of WordPress. Version 7.0.3 has been released, containing a fix for the vulnerability, and as a courtesy to users on older branches the fix has been backported to all branches back to 4.7.
Discovered and responsibly disclosed by [the team at pwn.ai](https://pwn.ai/).
Technical details
WordPress contains a reflected cross-site scripting (XSS) vulnerability, where attacker-controlled data is returned and executed as JavaScript in a victim's browser. The flaw is on the login screen and can be reached before authentication. An attacker-hosted malicious third-party website can be used to trigger it. According to the record, escalation to remote code execution (RCE), meaning code execution on the remote system, requires conditions outside the attacker's control.
Impact
Successful exploitation lets an attacker execute JavaScript in the context of the WordPress login screen. Under additional conditions, the issue may lead to RCE, affecting the system's confidentiality, integrity, and availability. Exploitation requires victim interaction, and the path to RCE is not fully controlled by the attacker.
Remediation
Update WordPress to a release containing the security fix, or to the corresponding backported release for the branch in use. Until updating is possible, reduce users' exposure to untrusted links and increase monitoring around the login screen. These are temporary mitigations, not a replacement for the fix.