Description
Typecho admin backend post editor with DOM-based XSS when adding a new post tag.
Affected Version
Typecho <= 1.2.0
POC
- Login to admin backend management system.
- Create a new or edit an existed post, in
admin/write-post.php
add a new tag. - If the new tag name contains the XSS payload, e.g.
<li><p>aaa<a>test</a></p></li>
, it will be injected into a<li>
html tag.
1 | <li><p>aaa<img src=x onerror=alert(1)>aaa</p></li> |
Reference
Reported by Srpopty, vulnerability discovered by using Corax.