LiveActive security incident?Get immediate response
CVE Record

CVE-2018-25080: MobileDetect Example session_example.php initLayoutType cross site scripting

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.

MediumCVSS 4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

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.
Prepared
Confidence
high
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

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 · medium confidence lookup

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 lookup
cve · low confidence lookup

CVE-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
Vulnerability profileCVE Program record
Severity
Medium
CVSS
4 (2.0)
Known Exploited
No
Published

Vector: AV:N/AC:L/Au:S/C:N/I:P/A:N

Official CVE source material

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.

1CVSS vectors
0Timeline events
0ADP providers
7Source links

CVSS vector scores

1 official score

We 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.

ScoreVersionSeverityVectorExploitImpactSource
4CVSS 2.0MediumAV:N/AC:L/Au:S/C:N/I:P/A:N82.9Primary CVE score

Vulnerability scoring details

Base CVSS 2.0 score

4Medium
CVSS 2.0 vector shape for CVE-2018-25080Access VectorAccess ComplexityAuthenticationConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: AV:N/AC:L/Au:S/C:N/I:P/A:N

Access Vector
NetworkAdjacentLocal
Access Complexity
LowMediumHigh
Authentication
NoneSingleMultiple
Confidentiality Impact
CompletePartialNone
Integrity Impact
CompletePartialNone
Availability Impact
CompletePartialNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/aMobileDetect2.8.31Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

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.