Moderate severityNVD Advisory· Published Feb 24, 2012· Updated Apr 29, 2026
CVE-2012-1207
CVE-2012-1207
Description
Directory traversal vulnerability in frontend/core/engine/javascript.php in Fork CMS 3.2.4 and possibly other versions before 3.2.5 allows remote attackers to read arbitrary files via a .. (dot dot) in the module parameter to frontend/js.php.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
forkcms/forkcmsPackagist | < 3.2.5 | 3.2.5 |
Affected products
1Patches
11 file changed · +11 −0
frontend/core/engine/javascript.php+11 −0 modified@@ -194,6 +194,17 @@ private function setLanguage($value) */ private function setModule($value) { + $modules = (array) FrontendModel::getModules(); + + if(!in_array((string) $value, $modules)) + { + // when debug is on throw an exception + if(SPOON_DEBUG) throw new FrontendException('Invalid file.'); + + // when debug is of show a descent message + else exit(SPOON_DEBUG_MESSAGE); + } + $this->module = (string) $value; } }
Vulnerability mechanics
Synthesis attempt was rejected by the grounding validator. Re-run pending.
References
8- github.com/forkcms/forkcms/commit/a9986b86c53de0582248b39605660fbba0c21a29nvdPatchWEB
- packetstormsecurity.org/files/109709/Fork-CMS-3.2.4-Cross-Site-Scripting-Local-File-Inclusion.htmlnvdExploitWEB
- www.securityfocus.com/bid/51972nvdExploit
- github.com/advisories/GHSA-4x28-j85r-668qghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2012-1207ghsaADVISORY
- www.fork-cms.com/blog/detail/fork-cms-3-2-5-releasednvdWEB
- exchange.xforce.ibmcloud.com/vulnerabilities/73169nvdWEB
- web.archive.org/web/20120401204340/http://www.securityfocus.com/bid/51972ghsaWEB
News mentions
0No linked articles in our index yet.