Habr•November 27, 2026•🇷🇺Translated from Russian

Fake Radio Station Exposes Race Conditions and Insecure Design in Open-Source Flat-File PHP CMS

A developer recently published the initial release of PIG-CMS, a decentralized flat-file content management system written in pure PHP that stores all data in ordinary JSON files instead of using a database. The architecture treats each site as an independent planet in a shared network, with direct P2P mail delivered over cURL, impulse exchange, and a galactic radio feature that lets operators receive broadcasts from other participants.

Instead of the expected silence or dismissive comments, one reader performed an effective field test. A new station appeared in the planet list under the name Mukhomor SPb, bound to the non-existent domain pigcms.ru. Attempts to tune into the station produced errors because no actual endpoint existed. The elegant hint forced immediate changes: the planet registry now performs DNS validation and a reverse handshake with the node.

The episode triggered a comprehensive architectural review. Five recurring design issues were identified and corrected across the codebase.

Race conditions during JSON writes

The original code read a JSON file, decoded it, appended data, and wrote it back using file_put_contents with LOCK_EX. The lock only protected the write operation itself, leaving the read-modify cycle exposed to concurrent requests. Simultaneous P2P messages or likes could overwrite each other. The fix introduced a single wrapper function pig_json_update that acquires an exclusive flock for the entire read-modify-write cycle and applies the modification through a callback.

Plaintext passwords and shared-hosting instability

Credentials were stored in clear text inside config.php. Moving to hashed storage revealed two practical problems on typical Nginx + PHP-FPM shared hosting: heavy bcrypt calls occasionally exhausted worker memory or CPU limits, producing 502 errors, while rewriting the included PHP file invalidated OPcache and crashed the process. The solution moved hashes to an isolated data/users.json file protected by .htaccess and replaced bcrypt with a fast salted SHA-256 implementation compared via hash_equals.

Disabled SSL verification in cURL

Inter-node communication used cURL with CURLOPT_SSL_VERIFYPEER set to false. Strict verification was enabled, with a fallback that retries requests only when local certificate store errors (CURLE_SSL_CACERT and similar) occur on older hosting environments.

Raw IP addresses in metrics

Daily metric logs previously recorded actual visitor IP addresses. A per-site cryptographic salt generated at first run is now combined with IP, user-agent, and date, after which only the first 24 characters of the SHA-256 hash are stored, preventing reconstruction of original addresses.

Ineffective IP bans behind NAT

Three failed login attempts previously triggered an hour-long IP ban at the PHP level. This approach blocks entire offices or mobile networks sharing a single address. The mechanism was replaced with a lightweight mathematical captcha that appears dynamically after three incorrect attempts, stopping automated attacks while allowing legitimate users from the same subnet to proceed.

The complete refactoring affected 15 core files and was published as release v2026.2. The developer credited the anonymous tester behind the Mukhomor SPb station for surfacing issues that automated audits had missed.

Related articles

BoletimSec•Vulnerabilities & Exploits

Cybercriminals Exploit Drupal Installer Flaw CVE-2026-136716 to Hijack Sites Without Authentication

Cybercriminals are actively exploiting a critical flaw in the Drupal core installer that allows unauthenticated attackers to fully compromise websites. The Drupal security team confirmed the attacks on November 25, 2026, and released patches for all supported core branches. The vulnerability, tracked as CVE-2026-136716, affects sites where the installer remains publicly accessible, including production instances that had applied earlier fixes. Successful exploitation grants complete control over the site, exposing private data and enabling modification or deletion of content. The issue follows a related November 18 advisory covering CVE-2026-132165, which was added to the CISA Known Exploited Vulnerabilities catalog. Administrators must run update.php after applying the new patches, review access logs for signs of prior compromise on user account 1, and ensure install.php is properly restricted.

BoletimSec•Vulnerabilities & Exploits

Palo Alto Patches Kernel Flaw CVE-2026-46300 Chained with PHP2Shell for Root Access on Firewalls

Palo Alto Networks has released a fix for a Linux kernel vulnerability tracked as CVE-2026-46300, known as Fragnesia, that allows attackers with limited access to escalate to root on PAN-OS firewalls. The flaw was observed being exploited in attacks targeting internet-exposed management interfaces, often after first compromising the device via the PHP2Shell pair of PHP vulnerabilities disclosed in October. Palo Alto states that Fragnesia alone cannot open the firewall from the outside and requires prior exploitation of CVE-2026-109618 to reach root privileges. The company observed a suspected China-linked actor using the chain to compromise 24 firewalls and one internal management server. Unit 42 confirmed the findings and noted that only 0.02 percent of customer devices worldwide had exposed management interfaces, yet those devices control critical network traffic. Patches are available for PAN-OS versions 10.2, 11.1, 11.2, 12.1, and 12.2, while newer releases ship with the fix included.

安全客•Vulnerabilities & Exploits

AI Uncovers Critical Java Zero-Day CVE-2026-114938 in 3 Hours for Under $200

CISA issued an urgent advisory on November 24 directing agencies to immediately scan Java environments, prioritizing internet-facing systems, after the disclosure of CVE-2026-114938, nicknamed Java4Shell. The vulnerability is a memory corruption flaw in the OpenJDK Base64 decoder that can lead to JVM crashes, heap memory disclosure, and remote code execution under specific conditions. A security firm named Calif reported discovering the flaw and building the first working exploit in just three hours using AI, with token costs below $200. The issue affects systems with AVX-512 VBMI and BW instruction set support and has already been validated for pre-auth RCE on Keycloak, Atlassian Jira, Confluence, JFrog Artifactory, Jenkins, and PingFederate. Oracle included a fix in its November patch cycle, though exploitation requires heap layout manipulation and ASLR bypass. The discovery highlights how AI is dramatically lowering the cost and time required for vulnerability research across core infrastructure components.

Security NEXT•Vulnerabilities & Exploits

SolarWinds Releases Serv-U 2026.4 to Fix 18 Vulnerabilities Including Nine Critical Flaws

SolarWinds has published security updates for its file transfer solution Serv-U, addressing 18 product-specific vulnerabilities. Nine of these issues received the highest severity rating of Critical. The update, Serv-U 2026.4, was released on November 24, 2026. Among the critical flaws are two Linux privilege-escalation vulnerabilities that allow attackers to gain root access, and two type-confusion issues that could let domain administrators obtain system administrator rights. Three additional critical vulnerabilities stem from time-of-check to time-of-use race conditions, enabling unauthorized file reads, modifications, or code execution. The remaining critical flaws also involve file tampering and privilege escalation risks.