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-35196 β€” Second CVE still Remote Code Execution | Kitploit
Tools/GitHubGitHub/kx00007/cve-2026-35196
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubkx00007/cve-2026-35196

CVE-2026-35196

Second CVE still Remote Code Execution

View Repository
236 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.

    951
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

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

    392
  • 5

    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.

    344
  • 6

    ARTEX

    baarai/artex

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

    336

Explore all tools

Browse our collection of tools

View all tools β†’
Share

CVE-2026-35196 Β· Chamilo LMS Β· OS Command Injection β†’ RCE


CVE CVSS CWE Auth Type Shell



Researcher: K
Disclosure Type: Responsible Disclosure
Status: Patched Affected Product: Chamilo LMS < 2.0 (Confirmed on v1.11.32)


πŸ“‹ Vulnerability Summary

FieldDetails
ProductChamilo LMS
Affected Version< 2.0 (Confirmed on v1.11.32)
VulnerabilityOS Command Injection
CWECWE-78 β€” Improper Neutralization of Special Elements used in an OS Command
CVSSv3.1 Score8.8 (HIGH)
VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Auth RequiredYes (any authenticated user with a poisoned session)
Exploit TypeAuthenticated Remote Code Execution
Vulnerable Filemain/inc/ajax/gradebook.ajax.php

πŸ” Description

A critical OS Command Injection vulnerability exists in the export_all_certificates action of main/inc/ajax/gradebook.ajax.php within Chamilo LMS v1.11.32.

The application retrieves a course code via api_get_course_id(), which reads directly from $_SESSION['_cid']. This session-derived value is concatenated unsanitized into a shell_exec() call β€” no escapeshellarg(), no whitelist validation, no type enforcement.

An attacker who can manipulate or poison their session's _cid variable (via session poisoning, IDOR chaining, or other session manipulation primitives) can inject arbitrary shell metacharacters and achieve full remote code execution as the web server user (www-data).


🧩 Root Cause Analysis

Vulnerable File: main/inc/ajax/gradebook.ajax.php
Vulnerable Function: export_all_certificates

When a user triggers the export_all_certificates action, the script attempts to run a background process for processing certificates:

$courseCode = api_get_course_id(); // Retrieves the value from $_SESSION['_cid']
$sessionId = api_get_session_id();
// ...
$commandScript = api_get_path(SYS_CODE_PATH).'gradebook/cli/export_all_certificates.php';
$userList = implode(',', $userList);

// Flaw: Variables like $courseCode are passed directly to the shell without escapeshellarg()
shell_exec("php $commandScript $courseCode $sessionId $categoryId $userList > /dev/null &");

Because the application implicitly trusts the contents of the session variables and fails to properly escape them before sending them to the system shell, an attacker with a manipulated session can append and execute malicious commands. For example, if _cid contains "; touch /tmp/remote_code_by_k; #", the command interpreted by the bash/sh shell becomes:

php /var/www/chamilo/main/gradebook/cli/export_all_certificates.php ; touch /tmp/remote_code_by_k; # ... > /dev/null &

The shell executes the CLI script, followed by the injected payload, and ignores the rest of the intended command string.

πŸ’£ Proof of Concept

  1. Session Poisoning: The attacker must first influence the $_SESSION['_cid'] variable. This can be achieved by chaining this flaw with a session poisoning vulnerability or by manipulating the course code value through an IDOR or insecure parameter handling elsewhere in the application to update their session context.
  2. Payload Injection: Set the _cid session variable to: "; [MALICIOUS_COMMAND]; #"
  3. Execution: Send a GET request to: /main/inc/ajax/gradebook.ajax.php?a=export_all_certificates&cat_id=1 with the poisoned session cookie.
  4. Result: The server blindly executes the injected command with the privileges of the web application user (www-data).

πŸ“Š Impact Analysis

DimensionImpact
ConfidentialityFull read access β€” source code, configs, DB credentials, /etc/passwd
IntegrityArbitrary file write, webshell deployment, database manipulation
AvailabilityService disruption, filesystem destruction, ransomware deployment
ScopeWeb server process (www-data); lateral movement potential via credential exposure

πŸ›‘οΈ Recommendations

  • Apply escapeshellarg(): Wrap all user-derived variables (like $courseCode, $sessionId, and $userList) with PHP's escapeshellarg() before passing them to shell_exec() to neutralize arbitrary OS metacharacters.
  • Strict Session Validation: Ensure variables stored in the session state (e.g., $_SESSION['_cid']) are rigidly typed and sanitized so that potential "Session Poisoning" or IDOR chaining attacks are blocked at the entry point.
  • Enforce Least Privilege: Configure the web server service ( www-data) with restrictive filesystem write permissions and limit application access to essential Linux shell binaries to mitigate post-exploitation capabilities.

πŸ§ͺ Environment

ComponentDetails
OSUbuntu Server (Docker)
Web ServerApache / Nginx
PHP7.x / 8.x
AppChamilo LMS v1.11.32-v2.0
Shell/bin/sh β†’ bash

πŸ“Ž References

  • Chamilo LMS Official Repository
  • CWE-78: OS Command Injection
  • OWASP: Command Injection
  • CVE-2026-29041 β€” Prior Chamilo RCE (CWE-434, CVSS 8.8) by same researcher

πŸ‘€ Researcher

Handle  : K
GitHub  : https://github.com/kx00007
Focus   : Server-Side Vulnerability RCE, CVE Hunting, Vulnerability Research, Exploit Development
Prior   : CVE-2026-29041 (Chamilo LMS β€” Authenticated RCE via File Upload)

⚑Try Harder.

Download Tool