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 via CSRF(subnet-scan-telnet.php & subnet-scan-execute.php) #2327

magicOz opened this Issue Nov 21, 2018 · 0 comments


None yet
2 participants
Copy link

magicOz commented Nov 21, 2018

The line
$Result->show("danger", _("Invalid port")." ($p)", true);
in /app/subnets/scan/subnet-scan-telnet.php and no CSRF-protection at /app/subnets/scan/subnet-scan-execute.php causes an XSS vulnerability.


<form method="POST" action="http://localhost/phpipam/app/subnets/scan/subnet-scan-execute.php">
<input type="text" value="3" name="subnetId">
<input type="text" value="scan-telnet" name="type">
<input type="text" value="0" name="debug">
<input type="text" value="<script>alert('XSS')</script>" name="port">
<input type="submit" value=""></form>

Note that a valid subnetId has to be used.

@GaryAllan GaryAllan self-assigned this Dec 4, 2018

@GaryAllan GaryAllan closed this in fd37bd8 Dec 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment