Skip to content

XSS vulnerability_1 #1477

@xjzzzxx

Description

@xjzzzxx

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:
1

2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions