Debian dla-4151 golang-github-gorilla-csrf-dev - 安全性更新

medium Nessus Plugin ID 235057

概要

遠端 Debian 主機缺少安全性相關更新。

說明

遠端 Debian 11 主機安裝了一個套件其受到 dla-4151 公告中所提及的一個弱點影響。

- ------------------------------------------------- ------------------------------------- Debian LTS 公告 DLA-4151-1 [email protected] https://www.debian.org/lts/security/Andrej Shadura 2025 年 5 月 1 日 https://wiki.debian.org/LTS
- --------------------------------------------------------------------------

套件 golang-github-gorilla-csrf 版本1.6.2-2+deb11u1 CVE ID CVE-2025-24358 Debian 錯誤1103584

在 Go 的 gorilla/csrf 套件中發現下列弱點

在 1.7.3之前的版本中gorilla/csrf 並未根據允許清單驗證 Origin 標頭。只有在認為要求是透過 TLS 提供時才會對跨來源要求執行 Referer 標頭驗證。它會透過檢查 r.URL.Scheme 值來判斷這一點。不過此值從未填入符合 Go 規格的伺服器要求因此實際上並未執行此檢查。此弱點可讓在子網域或頂層網域上獲得 XSS 的攻擊者針對共用相同頂層網域的 gorilla/csrf 保護目標執行經驗證的表單提交。

針對 Debian 11 Bullseye此問題已在 1.6.2-2+deb11u1 版本中修正。

已重建下列 Go 套件以修復上述問題:

golang-chroma golang-github-alecthomas-chroma-devgolang-github-niklasfasching-go-org-devgolang-github-yuin-goldmark-highlighting-devgo-org hugo

建議您升級這些套件。

如需 golang-github-gorilla-csrf 的詳細安全性狀態請參閱其安全性追踪頁面
https://security-tracker.debian.org/tracker/golang-github-gorilla-csrf

有關 Debian LTS 安全公告、如何將這些更新套用至您的系統以及常見問題的詳細資訊,請參閱:https://wiki.debian.org/LTS

Tenable 已直接從 Debian 安全公告擷取前置描述區塊。

請注意,Nessus 並未測試此問題,而是僅依據應用程式自我報告的版本號碼作出判斷。

解決方案

升級 golang-github-gorilla-csrf-dev 套件。

另請參閱

http://www.nessus.org/u?bae97b12

https://security-tracker.debian.org/tracker/CVE-2025-24358

https://packages.debian.org/source/bullseye/golang-github-gorilla-csrf

Plugin 詳細資訊

嚴重性: Medium

ID: 235057

檔案名稱: debian_DLA-4151.nasl

版本: 1.1

類型: local

代理程式: unix

已發布: 2025/5/1

已更新: 2025/5/1

支援的感應器: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

風險資訊

VPR

風險因素: Medium

分數: 5.9

CVSS v2

風險因素: Medium

基本分數: 6.8

時間性分數: 5

媒介: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS 評分資料來源: CVE-2025-24358

CVSS v3

風險因素: High

基本分數: 8.8

時間性分數: 7.7

媒介: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

時間媒介: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

風險因素: Medium

Base Score: 6

Threat Score: 2.3

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

弱點資訊

CPE: p-cpe:/a:debian:debian_linux:golang-github-gorilla-csrf-dev, cpe:/o:debian:debian_linux:11.0

必要的 KB 項目: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

可輕鬆利用: No known exploits are available

修補程式發佈日期: 2025/5/1

弱點發布日期: 2025/4/14

參考資訊

CVE: CVE-2025-24358