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.06 |
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 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
Product
Name
License
- open-source
CPE 2.3
CPE 2.2
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-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: 🔒
0-Day | unlock | unlock | unlock | unlock |
---|---|---|---|---|
Today | unlock | unlock | unlock | unlock |
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 Advisory disclosed02/02/2023 CVE reserved
02/02/2023 VulDB entry created
03/04/2023 VulDB last update
Sources
Advisory: 741Status: Confirmed
CVE: CVE-2018-25080 (🔒)
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 02/02/2023 09:18 PMUpdated: 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.