CVE-2018-25080

LOW

mobiledetect < 2.8.32 - Cross-Site Scripting via $_SERVER['PHP_SELF'] in session_example.php

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2018-25080. PoCs published by CodeSecLab.

AI-analyzed exploit summary This exploit demonstrates a reflected XSS vulnerability in MobileDetect 2.8.31 by injecting a script tag into the URL path, which executes arbitrary JavaScript in the context of the victim's session.

Description

A vulnerability, which was classified as problematic, has been found in MobileDetect 2.8.31. This issue affects the function initLayoutType of the file examples/session_example.php of the component Example. The manipulation of the argument $_SERVER['PHP_SELF'] leads to cross site scripting. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 2.8.32 is able to address this issue. The identifier of the patch is 31818a441b095bdc4838602dbb17b8377d1e5cce. It is recommended to upgrade the affected component. The identifier VDB-220061 was assigned to this vulnerability.

Exploits (1)

exploitdb WORKING POC
by CodeSecLab · textwebappsphp
https://www.exploit-db.com/exploits/52454

This exploit demonstrates a reflected XSS vulnerability in MobileDetect 2.8.31 by injecting a script tag into the URL path, which executes arbitrary JavaScript in the context of the victim's session.

Classification
Working Poc 90%
Attack Type
Xss
Complexity
Trivial
Reliability
Reliable
Target: MobileDetect 2.8.31 (commit 4da80e5)
Auth required
Prerequisites: Admin user session · Access to the target URL
MITRE ATT&CK
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (6)

Core 6

Scores

CVSS v3 3.5
EPSS 0.0215
EPSS Percentile 84.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N

Details

CWE
CWE-79
Status published
Products (2)
mobiledetect/mobiledetect 2.8.31
mobiledetect/mobiledetectlib 0 - 2.8.32Packagist
Published Feb 04, 2023
Tracked Since Feb 18, 2026