Cyber Security News

70 Million Devices Vulnerable Due to Logic Flaw Exposing Internal Networks

A critical logic flaw discovered in the widely used mPDF PHP library could expose internal networks and sensitive services on approximately 70 million devices worldwide.

The vulnerability stems from improper regular expression parsing, which allows attackers to issue unauthorized web requests even when user input appears sanitized.

mPDF, an open-source PHP library for generating PDFs from HTML, contains a dangerous vulnerability in its CSS parsing.

Extracting urls from @import rules

The library processes @import CSS rules without properly validating their location within the HTML document.

This oversight means attackers can craft malicious input that bypasses standard sanitization functions like htmlentities() and htmlspecialchars().

The vulnerability allows attackers to initiate Server-Side Request Forgery (SSRF) attacks and probe internal networks.

By injecting specially crafted @import directives, an attacker can force the vulnerable server to make requests to internal services, including Redis, MySQL, and other network-accessible applications.

The flaw is particularly dangerous because it works even when developers implement what they believe to be secure input sanitization.

Security researcher brun0ne discovered the flaw and demonstrated that attackers could exploit the Gopher protocol supported by cURL, which mPDF uses to make web requests and send arbitrary TCP data to internal services.

This enables port scanning of local networks and potentially arbitrary file writing via services such as Redis.

The triggered web requests

The researcher provided proof-of-concept code showing how the attack could be executed in a real-world scenario.

The discoverer reported the vulnerability to mPDF’s maintainers in May 2025 and requested a CVE identifier in late May.

However, the MITRE CVE organization rejected the request in October, arguing that the flaw constitutes intended behavior rather than a vulnerability.

The rejection claimed that mPDF users are responsible for implementing their own sanitization, not the library developers.

Despite the lack of an official CVE designation, the implications remain severe. Any application that uses mPDF to process user-controlled input is vulnerable to compromise.

Organizations currently using mPDF should implement additional input validation by blocking special characters, including @, (, ),:, /, or consider migrating to alternative PDF generation solutions with stronger security protections.

The vulnerability highlights a critical gap between library developers’ expectations and real-world security practices.

While the mPDF team maintains that applications using their library should implement proper input sanitization, the demonstration proves that standard PHP sanitization functions prove insufficient against this particular logic flaw.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and set GBH as a Preferred Source in Google.

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

2 days ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

2 days ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

2 days ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

2 days ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

2 days ago