FirstBlood-#703Reflective XSS on register page
This issue was discovered on FirstBlood v2

On 2021-10-27, axe Level 4 reported:


  1. After the test is finished and reset, continue to test XSS in ref parameter

  2. Insert <svg/onload=alert(0)> - > F12 - > angle brackets are found to be HTML encoded

  3. Insert XSS payload after URL encoding: <script>alert(0)</script> - > it is found that script is filtered

  4. After testing, it is found that the case is not strictly filtered. Finally, XSS payload is used: JaVascrIPt:alert(0) - > bypass success!

Vulnerability Exploitation

XSS -> JSOP Upgrade Utilization


Open Redirect -> XSS -> Stealing Token

  1. Open Redirect(Resolved #537)

  2. XSS(Resolved)

  3. I can't solve it for now. I can't get the drps cookie value because I'm not logged in to the admin credentials.

  1. Successfully obtained the administrator's cookie!!!;%20drps=5a1884f0368eae4bb80dcbebd

Suggestions for fixing

  1. blacklist all JavaScript cases

Study reference materials




P3 Medium

Endpoint: /register.php

Parameter: ref

Payload: jaVaScRipt:alert`1`

FirstBlood ID: 32
Vulnerability Type: Reflective XSS

The parameter ?ref on register.php was poorly fixed and can be bypassed in various ways. Firstly the developer failed to use strtolower() when comparing strings, and the use of characters such as %09 will also bypass the filter.