Instatic に保存型クロスサイトスクリプティングの脆弱性、0.0.14で修正
Summary
Instaticの0.0.14より前の版には、編集者が危険なURLを仕込めてしまう保存型のクロスサイトスクリプティングの脆弱性があります。OwnerやAdminが管理画面のエディタでその要素を操作すると、スクリプトが実行され、管理APIを通じて保護されたデータの読み取りや管理者アカウントの作成、プラグインの導入が行われるおそれがあります。修正版は0.0.14です。CVSSは8.7で、早めの更新が必要です。
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.
Instaticの0.0.14より前の版には、編集者が危険なURLを仕込めてしまう保存型のクロスサイトスクリプティングの脆弱性があります。OwnerやAdminが管理画面のエディタでその要素を操作すると、スクリプトが実行され、管理APIを通じて保護されたデータの読み取りや管理者アカウントの作成、プラグインの導入が行われるおそれがあります。修正版は0.0.14です。CVSSは8.7で、早めの更新が必要です。
Original description The description as published by the source.
Instatic is an open source visual content management system for building static websites. Prior to 0.0.14, isSafeUrl() and safeUrl() in src/core/html-sanitize/index.ts remove tabs, newlines, carriage returns, and characters handled by String.prototype.trim(), but leave other leading C0 control characters that browsers discard before parsing a URL scheme. A low-privileged editor can place a dangerous URL behind one of those controls in a URL property or custom HTML attribute, allowing src/core/publisher/escapeProps.ts and the shared URL sanitizer to emit it into rendered content. When an Owner or Admin activates the element in the same-origin admin editor canvas, script executes with the victim's application authority and can drive admin APIs to read protected data, create an owner account, or install a plugin. This issue is fixed in version 0.0.14.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- web github.com