Skip to content
This repository was archived by the owner on Oct 16, 2026. It is now read-only.
This repository was archived by the owner on Oct 16, 2026. It is now read-only.

XSS vulnerability (in version older version 1.9.2) #290

Closed

Description

@xjzzzxx

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

Activity

  1. cdevroe commented on Aug 21, 2025

    @cdevroe
    Owner

    @xjzzzxx (also @hugo9655) This should have been addressed way back in May 2020? I've committed an update to the 1.9.2 source above, that should address the issue in two ways; validate the URL and sanitize the output.

    If you want to try it, let me know. I'll also tag a 1.9.3 release.

  2. cdevroe commented on Aug 21, 2025

    @cdevroe
    Owner

    Btw, this issue does not exist in the latest release.

  3. self-assigned this
    on Aug 21, 2025
  4. changed the title [-]XSS vulnerability[/-] [+]XSS vulnerability (in version older version 1.9.2)[/+] on Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions