Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2020-15247— Twig Sandbox Escape by authenticated users with access to editing CMS templates when safemode is enabled.

CVSS 5.2 · Medium EPSS 0.15% · P35
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2020-15247

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Twig Sandbox Escape by authenticated users with access to editing CMS templates when safemode is enabled.
Source: NVD (National Vulnerability Database)
Vulnerability Description
October is a free, open-source, self-hosted CMS platform based on the Laravel PHP Framework. In October CMS from version 1.0.319 and before version 1.0.469, an authenticated backend user with the cms.manage_pages, cms.manage_layouts, or cms.manage_partials permissions who would normally not be permitted to provide PHP code to be executed by the CMS due to cms.enableSafeMode being enabled is able to write specific Twig code to escape the Twig sandbox and execute arbitrary PHP. This is not a problem for anyone that trusts their users with those permissions to normally write & manage PHP within the CMS by not having cms.enableSafeMode enabled, but would be a problem for anyone relying on cms.enableSafeMode to ensure that users with those permissions in production do not have access to write & execute arbitrary PHP. Issue has been patched in Build 469 (v1.0.469) and v1.1.0.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L
Source: NVD (National Vulnerability Database)
Vulnerability Type
授权机制缺失
Source: NVD (National Vulnerability Database)
Vulnerability Title
October CMS 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
October CMS是一套基于PHP和Laravel Web应用程序框架的开源内容管理系统(CMS)。 October 1.0.319和1.0.470之前版本存在安全漏洞,该漏洞源于启用的enableSafeMode能够编写特定的Twig代码来逃避Twig沙箱并执行任意的PHP。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
octobercmsoctober >= 1.0.319, < 1.0.469 -

II. Public POCs for CVE-2020-15247

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2020-15247

登录查看更多情报信息。

Same Patch Batch · octobercms · 2020-11-23 · 5 CVEs total

CVE-2020-152467.5 HIGHLocal File Inclusion by unauthenticated users
CVE-2020-262315.2 MEDIUMBypass of fix for CVE-2020-15247, Twig sandbox escape
CVE-2020-152484.0 MEDIUMPrivilege escalation by backend users assigned to the default "Publisher" system role
CVE-2020-152492.8 LOWStored XSS by authenticated backend user with access to upload files

IV. Related Vulnerabilities

V. Comments for CVE-2020-15247

No comments yet


Leave a comment