深刻度 中
Arbitrary log line injection in github.com/gin-gonic/gin
github.com/gin-gonic/gin(ライブラリ)の脆弱性です。深刻度は「中」です。修正版は 1.6.0 です。
- 対象
- github.com/gin-gonic/gin(ライブラリ)
- CVE 番号
- CVE-2020-36567
- 深刻度
- 中
- 影響を受けるバージョン
- 1.6.0 未満
- 修正版
- 1.6.0
- 公開日
- 情報の更新日
- 出典
- OSV.dev(GitHub Advisory を含む OSS 脆弱性データベース)
どのような脆弱性ですか
日本語解説は確認中です。
The default Formatter for the Logger middleware (LoggerConfig.Formatter), which is included in the Default engine, allows attackers to inject arbitrary log entries by manipulating the request path.(原文の抜粋です。全文は下の参考情報から確認できます)
どう対応すればよいですか
github.com/gin-gonic/gin を、修正版の 1.6.0 以降に更新してください。
更新の前に、サイトのバックアップを取っておくと、不具合が出たときに戻せます。
参考情報
github.com/gin-gonic/gin のほかの脆弱性
- Gin Web Framework does not properly sanitize filename parameter of Context.FileAttachment function
- Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin
- Improper input validation in github.com/gin-gonic/gin
- Gin's default logger allows unsanitized input that can allow remote attackers to inject arbitrary log lines
あなたのサイトは影響を受けていますか
Cyber Shield Guard は、サイトで使っているプラグインとテーマを脆弱性データベースと毎日突き合わせ、該当があれば通知します。登録したサイトが対象かどうかを確かめられます。