MobileDetect 2.8.31 Example session_example.php initLayoutType $_SERVER['PHP_SELF'] cross site scripting
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.3 | $0-$5k | 0.00 |
Summary
A vulnerability identified as problematic has been detected in MobileDetect 2.8.31. The affected element is 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.
This vulnerability is documented as CVE-2018-25080. The attack can be initiated remotely. Additionally, an exploit exists.
You should upgrade the affected component.
Details
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 product 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 github.com. 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 github.com. 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 github.com. Applying the patch 31818a441b095bdc4838602dbb17b8377d1e5cce is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version. The advisory contains the following remark:
escaped PHP_SELF
The vulnerability is also documented in the vulnerability database at Exploit-DB (52454). If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Product
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.4VulDB 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): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Cross site scriptingCWE: CWE-79 / CWE-94 / CWE-74
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
Google Hack: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: MobileDetect 2.8.32
Patch: 31818a441b095bdc4838602dbb17b8377d1e5cce
Timeline
02/02/2023 🔍02/02/2023 🔍
02/02/2023 🔍
12/06/2025 🔍
Sources
Advisory: 741Status: Confirmed
CVE: CVE-2018-25080 (🔍)
GCVE (CVE): GCVE-0-2018-25080
GCVE (VulDB): GCVE-100-220061
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 02/02/2023 21:18Updated: 12/06/2025 01:18
Changes: 02/02/2023 21:18 (48), 02/02/2023 21:19 (1), 03/04/2023 09:23 (2), 03/04/2023 09:25 (28), 03/04/2023 09:27 (1), 12/06/2025 01:18 (16)
Complete: 🔍
Cache ID: 216::103
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
No comments yet. Languages: en.
Please log in to comment.