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

Store Cross Site Script Attack on Upload HTTP Request Header #72

Closed
mcblog opened this issue Aug 16, 2021 · 1 comment
Closed

Store Cross Site Script Attack on Upload HTTP Request Header #72

mcblog opened this issue Aug 16, 2021 · 1 comment
Labels

Comments

@mcblog
Copy link

mcblog commented Aug 16, 2021

Hi, how is going? I test imgurl upload functions. And I found a XSS vulnarability.

First step:

Put payload on upload header : X-Forwarded-For: "><img src=# onerror=alert(/a/)>

a

微信截图_20210816093947

Second

then web administrator click

微信截图_20210816094107

微信截图_20210816094127

微信截图_20210816094207


The method to solve it:

all the request header filter special character。

过滤http请求头的所有特殊字符。

@helloxz
Copy link
Owner

helloxz commented Aug 16, 2021

感谢您的反馈,这应该是由于获取用户IP的时候,XFF头没有进行验证导致。我修复一下。

@helloxz helloxz added the bug label Sep 17, 2021
@mcblog mcblog closed this as completed Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants