Skip to content
OpenAdvisories
Low · 3.5 Public exploit CVE-2018-25080 EUVD-2023-0788GHSA-r77c-qv68-j3pp

MobileDetect Example session_example.php initLayoutType cross site scripting

Published Feb 4, 2023 · Updated Apr 16, 2025 · Assigned by VulDB

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.

Affected products

VendorProductAffectedFixed
— MobileDetect 2.8.31 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist mobiledetect/mobiledetectlib < 2.8.32 2.8.32 GHSA-r77c-qv68-j3pp

References