0%

Typecho V1.2.0 Backend DOM-Based XSS

Description

Typecho admin backend post editor with DOM-based XSS when adding a new post tag.

Affected Version

Typecho <= 1.2.0

POC

  1. Login to admin backend management system.
  2. Create a new or edit an existed post, in admin/write-post.php add a new tag.
  3. 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.