Affected versions
- Affected versions
- <=6.6.7 || >=6.7 <=6.7.7 || >=6.8 <=6.8.8 || >=6.9 <=6.9.7 || >=7.0 <=7.0.4 || >=7.1 <=7.1
- Fixed version
- 6.6.8 · 6.7.8 · 6.8.9 · 6.9.8 · 7.0.5 · 7.1.1
Exploitation
Description
WordPress Core is vulnerable to Stored Cross-Site Scripting via the wpautop() function in various versions up to, and including, 7.1 due to a paragraph-unwrapping regular expression ('<blockquote([^>]*)>') that mishandles a blockquote whose attribute region contains a '>'. Combined with wpautop's blank-line paragraph splitting, a newline placed inside a blockquote cite value causes a paragraph tag to be relocated into the tag. This makes it possible for unauthenticated attackers to inject web scripts via comment content, though the comment may be subject to moderation approval before it is stored and rendered.
Links
Credits
- Rafie Muhammad

