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 vulnerability #290

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

XSS vulnerability #290

xjzzzxx opened this issue Jul 9, 2024 · 0 comments

Comments

@xjzzzxx
Copy link

xjzzzxx commented Jul 9, 2024

Hello,

I would like to report for a xss vulnerability in unmark-1.9.2.

The path of the vulnerability.

In file application/views/marks/add_by_url.php

if ( $_POST ) :										// Line 3
    $url = $_POST['url'];							// Line 7
    echo '<p><strong>URL:</strong>' . $url . '</p>';	// Line 8

We see that there is no check between the input $_POST["url"] and the output(Line 8)

Thus the XSS will happen at echo '<p><strong>URL:</strong>' . $url . '</p>';

Poc:

POST /marks/add_by_url

add_from_url=1&url=</p><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