Grav Form Pluginに脆弱性、アップロードしたファイルでサーバー上のコードが実行されるおそれ
Summary
Grav Form Plugin 9.2.4より前には、ファイル項目のアップロード先が検証されていない脆弱性があります。ページの作成者が、Twigテンプレートのフォルダーに.txtや.svgのファイルを書き込ませ、Webサーバーの実行権限でコードを動かされるおそれがあります。修正版の9.2.4が公開されているため、早めに更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Grav Form Plugin 9.2.4より前には、ファイル項目のアップロード先が検証されていない脆弱性があります。ページの作成者が、Twigテンプレートのフォルダーに.txtや.svgのファイルを書き込ませ、Webサーバーの実行権限でコードを動かされるおそれがあります。修正版の9.2.4が公開されているため、早めに更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| getgravgrav-plugin-form |
< 9.2.4→ 9.2.4 |
9.2.4 |
Original description The description as published by the source.
Grav Form plugin before 9.2.4 contains a code injection vulnerability that allows page authors to write uploads into Twig template folders by setting an unchecked file field destination in Form::uploadFiles(). Attackers can upload .txt or .svg files containing Twig and have them rendered as trusted templates outside the sandbox, executing code as the web server user.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com