Security readout for executives and security teams
Plain-English summary
CVE-2018-25080 is a cross-site scripting issue in a MobileDetect 2.8.31 example PHP page. If that example page is deployed and reachable, a remote attacker with required access could make a victim's browser run injected script. The business risk is exposed demo code creating user-trust or session abuse, not confirmed compromise.
Executive priority
Handle during normal vulnerability remediation, faster if example files are reachable from production. The issue is moderate severity, public, and patchable, but current sources do not show active exploitation or broad product impact.
Technical view
The issue affects initLayoutType in examples/session_example.php. The page handles $_SERVER['PHP_SELF'] unsafely, enabling reflected XSS. Sources identify MobileDetect 2.8.31 as affected and 2.8.32, via commit 31818a441b095bdc4838602dbb17b8377d1e5cce, as the fix. CVSS v2 is 4.0 with authentication required.
Likely exposure
Exposure is most likely where MobileDetect 2.8.31 example files were deployed under a public or authenticated web path. Applications only using the library without shipping examples are less likely exposed, unless they copied the vulnerable pattern into custom code.
Exploitation context
The source bundle says exploit details were publicly disclosed and may be used, but CISA KEV is false and no cited source confirms active exploitation. Treat this as public proof-of-concept risk, not established in-the-wild exploitation.
Researcher notes
Focus validation on deployed example content, not just dependency presence. The affected component is the Example session page in MobileDetect 2.8.31. Public exploit references exist, so avoid assuming obscurity protects reachable demo files.
Mitigation direction
- Upgrade MobileDetect to version 2.8.32 or later.
- Remove example PHP files from production web roots.
- Restrict access to any retained example or demo paths.
- Review custom code for unsafe use of $_SERVER['PHP_SELF'].
- Check vendor guidance if upgrade constraints exist.
Validation and detection
- Inventory deployed MobileDetect versions and package lock files.
- Search web roots for examples/session_example.php.
- Confirm exposed routes do not serve MobileDetect example pages.
- Verify MobileDetect is at 2.8.32 or later.
- Review dependency scans for CVE-2018-25080 findings.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CWE-79: User-session and phishing behavior lookup
Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupCVE-2018-25080 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 4 (2.0)
- Known Exploited
- No
- Published
Vector: AV:N/AC:L/Au:S/C:N/I:P/A:N
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
AV:N/AC:L/Au:S/C:N/I:P/A:N82.9Primary CVE scoreVulnerability scoring details
Base CVSS 2.0 score
4MediumVector: AV:N/AC:L/Au:S/C:N/I:P/A:N
Source materials
- CVE List V5 sourceCVE List V5
- https://vuldb.com/?id.220061CVE reference · vdb-entry, technical-description
- https://vuldb.com/?ctiid.220061CVE reference · signature, permissions-required
- https://github.com/serbanghita/Mobile-Detect/pull/741CVE reference · exploit, issue-tracking
- https://github.com/serbanghita/Mobile-Detect/commit/31818a441b095bdc4838602dbb17b8377d1e5cceCVE reference · patch
- https://github.com/serbanghita/Mobile-Detect/releases/tag/2.8.32CVE reference · patch
- https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2018-25080.mdCVE reference
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
