Stored XSS in SEOPress WordPress plugin allows site takeover
A stored cross-site scripting flaw in the SEOPress WordPress plugin lets any authenticated user inject scripts and potentially take over a site.
Reported by threatpost.com
Summary updated
- Public PoC
- Not known
- Exploited
- Not known
- Severity
- Not rated
What happened
Researchers at Wordfence found that the REST-API endpoint for adding SEO titles and descriptions to posts was insecurely implemented.1
The permissions callback for the endpoint only checked for a valid REST-API nonce, which any authenticated user can generate.1
Because the stored parameters lacked sanitisation or escaping, malicious JavaScript could be saved and would run when a user visited the All Posts page.1
Who is affected
- SEOPress WordPress plugin1
Is there a public exploit?
Not known None of the sources mentions public exploit code yet.
Exploited in the wild?
Not known None of the sources reports attacks using it so far.
What to do
- Upgrade to version 5.0.4 of SEOPress.1
For bug hunters
This is a stored cross-site scripting issue arising from missing output encoding and an authorisation check that only validated a nonce. In WordPress programs, look at REST API endpoints that write post metadata, especially those with weak permission callbacks. Test whether low-privileged users can set fields that are later rendered unescaped in admin screens.
What to test
- Check REST endpoints for SEO or custom fields that accept writes from subscriber-level users.
- Submit script payloads in title or description fields and view the All Posts admin page.
- Verify whether nonce checks alone gate access to metadata update routes.
- Test stored values for escaping when rendered in admin lists and editors.
Written by bugbounty.wiki with AI from its source. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.
Coverage
The article this story is based on. Each headline opens the outlet's own article.
-
1
threatpost.com
XSS Bug in SEOPress WordPress Plugin Allows Site Takeover“The bug would allow a number of malicious actions, up to and including full site takeover.”