🛡️ CVE-2026-45009 — phpmyfaq

🟡 CVSS 4.3 — Medium ✅ No Known Exploit CWE-863 NVD
4.3
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

phpMyFAQ: Ordinary Authenticated User Can Access Admin-Only API Endpoints Due to Insufficient Authorization Check in phpMyFAQ

Summary

A review of phpMyFAQ-main uncovered an authorization issue in the admin-api routes.

Several backend endpoints only check whether the caller is logged in. They do not verify that the caller actually has backend or administrative privileges. As a result, a normal frontend user can access API endpoints that are clearly intended for administrative use.

During local reproduction, a regular user account was able to request /admin/api/index.php/dashboard/versions and receive a successful response from the backend management API.

This issue does not appear to give direct write access in the affected paths that were confirmed, so it should be treated as a backend information disclosure and privilege boundary failure rather than full admin compromise.

Details

The access control split is visible in the controller base class:

```php

public function userIsAuthenticated(): void

{

if (!$this->currentUser->isLoggedIn()) {

throw new UnauthorizedHttpException('Unauthorized access.');

}

}

protected function userHasPermission(PermissionType $permissionType): void

{

// permission-based check

}

```

The problem is that several Administration\Api controllers use the weaker check even though the routes sit under the backend API namespace.

For example, phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/DashboardController.php exposes:

```php

#[Route(path: 'dashboard/versions', name: 'admin.api.dashboard.versions', methods: ['GET'])]

public function versions(): JsonResponse

{

$this->userIsAuthenticated();

...

}

```

The same pattern appears in other backend-facing controllers, including:

  • LdapController
  • ElasticsearchController
  • OpenSearchController
  • UpdateController

That matters because these endpoints are not part of the normal frontend feature set. They expose backend operational data such as version checks, upgrade state, LDAP configuration, health checks, and search backend status.

Three examples that stand out from an impact perspective are:

1. GET /admin/api/index.php/ldap/configuration

This can expose LDAP server configuration, mapping settings, group settings, and general authentication-related options. Even with secrets masked, this is still useful internal infrastructure information.

2. GET /admin/api/index.php/elasticsearch/statistics

If Elasticsearch is enabled, this can expose index names and search backend statistics that should normally stay in the admin area.

3. GET /admin/api/index.php/health-check

This is part of the update and maintenance workflow and can reveal operational state that ordinary users should not be able to inspect.

In other words, the issue is not that guests can reach the backend. The issue is that any ordinary authenticated user can cross the frontend/backend privilege boundary.

PoC

I reproduced this against a local Docker deployment of the project.

First, an unauthenticated request to the backend API is rejected:

```http

GET /admin/api/index.php/dashboard/versions HTTP/1.1

Host: 127.0.0.1

Accept: application/json

```

Response:

```http

HTTP/1.0 401 Unauthorized

Content-Type: application/problem+json

{

"type": "http://127.0.0.1/problems/unauthorized",

"title": "Unauthorized",

"status": 401,

"detail": "Unauthorized access.",

"instance": "/dashboard/versions"

}

```

Logged in with a normal frontend account:

  • username: user1
  • password: User12345!

After login, the same request was sent with the user session cookie:

```http

GET /admin/api/index.php/dashboard/versions HTTP/1.1

Host: 127.0.0.1

Cookie: PHPSESSID=<regular-user-session>

Accept: application/json

```

Response:

```http

HTTP/1.0 200 OK

Content-Type: application/json

{"success":"Latest version available: phpMyFAQ 4.1.1"}

```

That is enough to show that a non-admin account can call at least one backend management endpoint successfully.

Impact

The main impact is unauthorized access to backend-only operational information.

Depending on which optional features are enabled in a real deployment, this may let a normal user learn:

  • upgrade and version status
  • maintenance or health-check information
  • LDAP environment details
  • Elasticsearch or OpenSearch backend status and statistics
  • internal administrative diagnostics

This was rated as Medium severity.

It was not categorized as High severity because the testing done did not confirm a direct administrative state change through the affected read-oriented endpoints. Still, this is a real privilege separation failure. A frontend account should not be able to query backend admin APIs simply because it has a valid session.

Remediation

The suggested approach should fix this in two layers.

1. Replace userIsAuthenticated() with explicit permission checks on backend endpoints that are intended for administrators only.

2. Re

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality low, integrity none, availability none.

Weakness class

CVE-2026-45009 is classified as CWE-863: Incorrect Authorization. An authorisation check runs but reaches the wrong conclusion, permitting actions it should refuse.

Affected software

CVE-2026-45009 is recorded against 3 packages.

  • phpmyfaq/phpmyfaq (fixed in 4.1.2)
  • thorsten/phpmyfaq (fixed in 4.1.2)
  • unknown

Timeline and source

Published on 15 May 2026 and last revised on 9 June 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Package)
www.vulncheck.com (Web)

Details

Severity Medium
CVSS Score 4.3
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
CWE CWE-863
Public Exploit ✅ No
Source NVD
Published 2026-05-15
Updated 2026-08-12
Modified 2026-06-09
Fix URL N/A

Affected Packages

Software From version Fixed in
phpmyfaq/phpmyfaq 4.1.2
thorsten/phpmyfaq 4.1.2
unknown

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in phpmyfaq

CVE-2026-45009 is rated CVSS 4.3 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.