CVE-2018-25080
MobileDetect Example session_example.php initLayoutType cross site scripting
- State
- Published
- Severity
- 3.5 Low
- Published
- Feb 4, 2023
- Updated
- Apr 16, 2025
- Reserved
- Feb 2, 2023
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 3.5 Low | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N | VulDB |
| 3.0 | 3.5 Low | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N | VulDB |
| 2.0 | 4.0 Medium | AV:N/AC:L/Au:S/C:N/I:P/A:N | VulDB |
Weaknesses
- CWE-79 Cross Site Scripting
Affected Products
| Product | Versions |
|---|---|
MobileDetectn/a |
|
References
- https://vuldb.com/?id.220061vdb-entrytechnical-description
- https://vuldb.com/?ctiid.220061signaturepermissions-required
- https://github.com/serbanghita/Mobile-Detect/pull/741exploitissue-tracking
- https://github.com/serbanghita/Mobile-Detect/commit/31818a441b095bdc4838602dbb17b8377d1e5ccepatch
- https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.32patch
- https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2018-25080.md
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.