CVE-2024-13267·PHP vulnerability
Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection') vulnerability in Drupal Opigno TinCan Question Type allows PHP Local File Inclusion.This issue affects Opigno TinCan Question Type: from 7.X-1.0 before 7.X-1.3.
- Severity
- high
- Software
- PHP
- Fixed in
- 7.x-1.3
- Published
- 2025-01-09
Affected versions
From: 7.x-1.0
Until: 7.x-1.3
Fixed in: 7.x-1.3
How to fix this CVE
Update the Drupal Opigno TinCan Question Type module to version 7.x-1.3 or later to patch the static code injection vulnerability that enables local file inclusion attacks. Organizations running versions 7.x-1.0 through 7.x-1.2 should prioritize this update to prevent unauthorized access to sensitive files on the server. After updating, verify the module version in your Drupal admin interface and clear all caches to ensure the patched code is active.
sudo dnf update phpDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST|GET requests to Drupal administrative endpoints with parameters containing file inclusion payloads: (\.\./?|php://|file://|/etc/passwd|/proc/self)WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Block HTTP requests containing directory traversal sequences (../) or PHP stream wrappers (php://, file://, data://) in URI paths and POST parameters. Implement strict input validation on Opigno question type submission handlers to reject code containing include/require statements or suspicious directives.How to check if you are affected
- Step 1: Check your Drupal Opigno module version by running: drush pm:list | grep tincan (or navigate to /admin/modules in Drupal UI and search for 'TinCan')
- Step 2: Verify if the module is in use by checking active questions or quiz content that reference TinCan Question Type in your Drupal database
- Step 3: Search application logs for file inclusion attempts by looking for patterns like '../', 'include', 'require', or PHP wrapper schemes (php://, file://) in request URIs: grep -r 'tincan\|include\|require' /var/log/apache2/access.log
- Step 4: After patching, confirm the module version matches 7.x-1.3 or higher: drush pm:info tincan_question_type
FAQ
What is CVE-2024-13267?
CVE-2024-13267 is a static code injection vulnerability in the Drupal Opigno TinCan Question Type module that allows attackers with login credentials to inject malicious directives into statically saved code, leading to local file inclusion and potential server compromise. This vulnerability requires authenticated access but grants high-impact capabilities including confidentiality, integrity, and availability breaches.
Is CVE-2024-13267 being actively exploited?
No, CVE-2024-13267 is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog, and no public exploits are documented. However, the vulnerability should still be addressed promptly given its high CVSS score of 7.5 and the access it grants to authenticated users.
What versions of Opigno TinCan Question Type are affected by CVE-2024-13267?
Versions 7.x-1.0 through 7.x-1.2 are vulnerable; version 7.x-1.3 and later contain the fix. Users should verify their installed module version in the Drupal modules administration page.
How do I check if my server is vulnerable to CVE-2024-13267?
Run: drush pm:info tincan_question_type | grep Version. If the version is between 7.x-1.0 and 7.x-1.2, your system is vulnerable. You can also check the modules table in your Drupal database: mysql -e 'SELECT name, version FROM drupal.system WHERE name="tincan_question_type";'
Does Defensia detect CVE-2024-13267?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Opigno TinCan Question Type module is active on a monitored Drupal server, CVE-2024-13267 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-13267. Free for 1 server.
Get started free