CVE-2026-136360 — CWE-497
Joomla Extension - joomboost.com - Exposure of secret code and API keys in JoomMedia extension 1.0.0-6.1.5 - A {media} content tag that could not be rendered printed the component settings, including the cron secret code and third-party API keys, into the page.
Joomla Extension - joomboost.com - Exposure of secret code and API keys in JoomMedia extension 1.0.0-6.1.5 - A {media} content tag that could not be rendered printed the component settings, including the cron secret code and third-party API keys, into the page.
🎯 What is this vulnerability?
This vulnerability is a Sensitive Information Exposure flaw (CWE-497) in the JoomMedia extension for Joomla, specifically affecting versions 1.0.0 through 6.1.5.
The core technical defect lies in the error handling and output sanitization logic of the {media} content tag. When the JoomMedia component attempts to render a {media} tag and fails (due to invalid parameters, missing files, or configuration errors), the component does not gracefully degrade or return a generic error message. Instead, it triggers an exception or debug state that inadvertently dumps the entire component configuration array into the HTML response body.
This configuration array contains highly sensitive data, including:
1. Cron Secret Code: A unique token used to authenticate scheduled tasks (cron jobs) via the web interface.
2. Third-Party API Keys: Credentials for external services (e.g., video hosting, image processing, or CDN services) integrated with the extension.
The CVSS vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N indicates:
- AV:N / PR:N: The vulnerability is exploitable over the network without any authentication.
- AT:P: Attack complexity is low, but it requires a specific condition (the failure to render the media tag) to be triggered.
- VC:H: High impact on Confidentiality due to the exposure of secrets.
- SC:L: Low impact on Confidentiality for subsequent systems (the exposed API keys may grant access to third-party services).
- Fingerprinting: Checking the
X-Powered-Byheader or source code forjoommediareferences. - Version Enumeration: Inspecting the extension's manifest file (e.g.,
/media/com_joommedia/joommedia.xmlor similar paths, depending on Joomla version) or checking the "About" section if accessible. - Content Tag Injection: If the attacker has any ability to submit content (e.g., via a public comment form, guestbook, or if they have low-privilege user access), they can inject a malformed
{media}tag. If no write access is available, the attacker may look for existing content that already contains a broken{media}tag (e.g., a deleted video file referenced in an old article).
⚡ Attack Chain
1. Discovery & Reconnaissance
An attacker identifies a target running Joomla with the JoomMedia extension. This can be achieved via:2. Exploitation
The attacker triggers the rendering failure of the{media} tag. The exact URI depends on where the content is published.Scenario A: Public Content with Broken Tag
If an article or page already contains a {media} tag referencing a non-existent or invalid resource, the attacker simply requests that page.
# Illustrative Example: Requesting a page with a broken media tag
curl -s "https://target-joomla-site.com/index.php?option=com_content&view=article&id=123"Scenario B: Content Injection (If Write Access Exists)
If the attacker can create or edit content (e.g., as a registered user with edit rights), they inject a malformed tag.
# Illustrative Example: Submitting a comment or article with a malformed media tag
# The payload forces a rendering error
curl -X POST "https://target-joomla-site.com/index.php?option=com_content&task=edit&id=0" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "title=Test&alias=test&introtext={media}invalid_source_xyz{/media}&task=save"Resulting Response:
The HTTP response body will contain the raw PHP array or JSON dump of the component settings. The attacker parses this output to extract:
cron_secret: e.g., a1b2c3d4e5f6...api_keys: e.g., {"youtube": "AIzaSy...", "cloudinary": "abc123..."}3. Post-Exploitation
Once the secrets are extracted, the attacker can perform several high-impact actions:1. Cron Job Hijacking:
Using the exposed cron_secret, the attacker can invoke the JoomMedia cron endpoint directly. This endpoint typically performs maintenance tasks, but if it executes arbitrary code or allows parameter manipulation, it could lead to further compromise.
# Illustrative Example: Triggering the cron job with the stolen secret
curl "https://target-joomla-site.com/index.php?option=com_joommedia&task=cron&secret=a1b2c3d4e5f6..."2. Third-Party Service Abuse:
Using the exposed API keys, the attacker can:
* Upload malicious content to the victim's video hosting or CDN account.
* Exfiltrate data from connected services.
* Incur financial costs by consuming API quotas (e.g., transcoding videos).
3. Lateral Movement:
If the API keys grant access to other systems (e.g., a cloud storage bucket), the attacker can pivot to those environments.
🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
Exact Affected Versions & Upgrade
Actionable Workarounds
1. Disable the Extension: If an immediate upgrade is not possible, disable the JoomMedia extension via the Joomla Extension Manager. 2. WAF/ModSecurity Rule: Block responses that contain known sensitive patterns from the JoomMedia configuration.# ModSecurity Rule Example
SecRule RESPONSE "@selective_replace \b(cron_secret|api_key|youtube_api_key)\b" \
"id:100001,phase:4,log,drop,msg:'JoomMedia Sensitive Info Exposure Detected'"3. Access Restriction: If the {media} tag is only used in admin-only content, ensure that such content is not publicly accessible.
Detection: IoCs & Log Patterns
{media} tags where the response body size is unusually large (indicating a config dump).com_joommedia rendering failures.⚠️ Urgency
{media} tags and remove or fix them to prevent accidental exposure.
3. Medium-term: Rotate all exposed API keys and cron secrets, as they should be considered compromised.
4. Long-term: Implement a WAF rule to detect and block sensitive information exposure in HTTP responses.[🤖 CVE Professor AI Security Engine]
FOFA Query