MobileDetect 2.8.31 Example session_example.php initLayoutType $_SERVER['PHP_SELF'] cross site scripting

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.

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'] with an unknown input leads to a cross site scripting vulnerability. Using CWE to declare the problem leads to CWE-79. The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. Impacted is integrity.

The weakness was released 02/02/2023 as 741. The advisory is shared at The identification of this vulnerability is CVE-2018-25080. It demands that the victim is doing some kind of user interaction. Technical details as well as a public exploit are known. MITRE ATT&CK project uses the attack technique T1059.007 for this issue.

The exploit is available at It is declared as proof-of-concept. By approaching the search of inurl:examples/session_example.php it is possible to find vulnerable targets with Google Hacking.

Upgrading to version 2.8.32 eliminates this vulnerability. The upgrade is hosted for download at Applying the patch 31818a441b095bdc4838602dbb17b8377d1e5cce is able to eliminate this problem. The bugfix is ready for download at The best possible mitigation is suggested to be upgrading to the latest version. The advisory contains the following remark:

escaped PHP_SELF




  • open-source

CPE 2.3info

CPE 2.2info


VulDB Meta Base Score: 4.4
VulDB Meta Temp Score: 4.3

VulDB Base Score: 3.5
VulDB Temp Score: 3.2
VulDB Vector: 🔒
VulDB Reliability: 🔍

NVD Base Score: 6.1
NVD Vector: 🔒

CNA Base Score: 3.5
CNA Vector (VulDB): 🔒



VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

NVD Base Score: 🔒


Class: Cross site scripting
CWE: CWE-79 / CWE-74 / CWE-707
ATT&CK: T1059.007

Local: No
Remote: Yes

Availability: 🔒
Access: Public
Status: Proof-of-Concept
Download: 🔒
Google Hack: 🔒

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒


Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍


Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: MobileDetect 2.8.32
Patch: 31818a441b095bdc4838602dbb17b8377d1e5cce


02/02/2023 Advisory disclosed
02/02/2023 +0 days CVE reserved
02/02/2023 +0 days VulDB entry created
03/04/2023 +30 days VulDB last update


Advisory: 741
Status: Confirmed

CVE: CVE-2018-25080 (🔒)
scip Labs:


Created: 02/02/2023 09:18 PM
Updated: 03/04/2023 09:27 AM
Changes: 02/02/2023 09:18 PM (48), 02/02/2023 09:19 PM (1), 03/04/2023 09:23 AM (2), 03/04/2023 09:25 AM (28), 03/04/2023 09:27 AM (1)
Complete: 🔍


No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!