Vulnerability Information
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
@tinacms/cli: Remote Code Execution via Forestry migration — unsanitised __TINA_INTERNAL__ marker in user-controlled YAML labels
Vulnerability Description
Tina is a headless content management system. @tinacms/cli versions prior to 2.4.3 contain a Remote Code Execution vulnerability in the Forestry-to-Tina migration command. The internal helper addVariablesToCode unquotes any value matching the marker "__TINA_INTERNAL__:::(.*?):::" inside the stringified collection JSON. User-supplied label and name fields from .forestry/**/*.yml are placed into that JSON without any sanitisation. An attacker who controls a Forestry-style project can therefore inject arbitrary JavaScript into the generated tina/templates.{ts,js} file. The injected code is written at module top level, so it executes the moment the developer runs tinacms dev or tinacms build, with the developer's privileges. This issue has been fixed in version 2.4.3.
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Vulnerability Title
Tina tinacms 代码注入漏洞
Vulnerability Description
Tina TinaCMS是Tina组织开源的一款完全开源的无头内容管理系统,支持 Markdown 和可视化编辑,通过 GraphQL API 让开发者像查询数据库一样查询 Markdown 内容。 Tina tinacms存在代码注入漏洞,该漏洞源于Forestry-to-Tina迁移命令中的内部辅助函数addVariablesToCode对标记值处理不当,未经清理的用户提供字段被注入JSON,导致可在生成的模板文件中注入任意JavaScript代码,攻击者可通过控制项目执行代码,导致远程代码执行。
CVSS Information
N/A
Vulnerability Type
N/A