| パッケージ | 影響を受けるバージョン | 修正済みバージョン |
|---|---|---|
| gogs.io/gogs | < 0.14.3全バージョン | 0.14.3 |
Special template of issue index pattern may cause panic.
in internal/markup/markup.go
link = fmt.Sprintf(`<a href="%s">%s</a>`, com.Expand(metas["format"], metas), m)
Issue index pattern is rendered to link with com.Expand.
However, com.Expand is not safe.
i = strings.Index(template, "}")
if s, ok := match[template[:i]]; ok {
when { is found but } not found, i comes to 1, template[:-1] will be called, and then panicked
finally, all pages than contains issue index are unavailable.
using #1 above
DoS that cause part of pages of the specify repo unavailable.
これらの製品をお使いですか?サイトをスキャンして、脆弱なバージョンが公開されていないか確認しましょう。
無料でサイトをスキャン