10 KiB
10 KiB
title, system_id, category, advisory_mode, published_date, updated_date, severity, exploit_status, source_confidence, verification_status, verification_mode, artifact_mode, last_run_id, target_types, allow_public_validation, authorization_prerequisite, minimal_validation, aliases, affected_versions, fixed_versions, entity_refs, secure_code_topics, primary_source
| title | system_id | category | advisory_mode | published_date | updated_date | severity | exploit_status | source_confidence | verification_status | verification_mode | artifact_mode | last_run_id | target_types | allow_public_validation | authorization_prerequisite | minimal_validation | aliases | affected_versions | fixed_versions | entity_refs | secure_code_topics | primary_source | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DOM Clobbering Gadget found in astro's client-side router that leads to XSS | astro | frameworks | core | 2024-10-14T20:02:21Z | 2025-11-27T08:16:37.087731Z | low | unknown | official | triage-manual | synthetic | synthetic |
|
yes, with ownership or explicit authorization | asset ownership proof or explicit written authorization | read-only probe, controlled payload, reversible test |
|
|
|
|
|
https://github.com/withastro/astro/security/advisories/GHSA-m85w-3h95-hcf9 |
DOM Clobbering Gadget found in astro's client-side router that leads to XSS
本地实证状态
- 实证状态:
triage-manual - 实证方式:
synthetic - Artifact 模式:
synthetic - 最近运行:
- - 浏览器证据:
missing - Run Bundle:
-
事件层
- Canonical ID:
astro--CVE-2024-47885 - 系统:
astro - 严重度:
low - 来源置信度:
official - 官方主源: https://github.com/withastro/astro/security/advisories/GHSA-m85w-3h95-hcf9
- 影响版本:
introduced=3.0.0, fixed<4.16.1 - 修复版本:
4.16.1
对象与版本映射
- Advisory Scope:
module - 影响对象:
astro - Entity Refs:
astro, astro--module--astro - 版本置信度:
high - 版本缺口:
- - 版本证据源:
https://github.com/withastro/astro/security/advisories/GHSA-m85w-3h95-hcf9, https://nvd.nist.gov/vuln/detail/CVE-2024-47885, https://github.com/withastro/astro/commit/a4ffbfaa5cb460c12bd486fd75e36147f51d3e5e, https://github.com/withastro/astro, https://github.com/withastro/astro/blob/7814a6cad15f06931f963580176d9b38aa7819f2/packages/astro/src/transitions/router.ts#L135-L156
受控验证流程
- Workflow ID:
astro--CVE-2024-47885--workflow - 漏洞家族:
xss - 入口面:
web-ui-render-path - 需要角色:
editor-or-admin - 触发向量: 对
xss家族入口投递最小化、可审计、可回滚的受控输入,比较修复前后差异。 - 请求/页面入口:
/admin/editor, /preview, /rendered-content - 输入形态: 受控 HTML/Markdown/富文本输入,观察渲染上下文是否失去编码或净化。
- 预期不安全行为: 输入在目标上下文执行或被浏览器解释为主动内容。
其他来源
- https://nvd.nist.gov/vuln/detail/CVE-2024-47885
a4ffbfaa5c- https://github.com/withastro/astro
7814a6cad1/packages/astro/src/transitions/router.ts (L135-L156)
证据点与补丁验证
服务端证据点
- 应用日志中的命中路径、鉴权决策和异常栈
- 反向代理或边界层日志中的请求头、来源 IP 与路由决策
- 插件/扩展管理日志、安装日志与版本清单
浏览器证据点
- 基线截图与攻击后截图的 DOM/视觉差异
- console、network 与 response metadata 中的异常信号
数据库/文件系统证据点
- 数据库中新增/越权读取的测试数据
- 文件系统中新增上传样本、缓存条目或越权读取痕迹
- 插件目录、主题目录或扩展配置表中的测试样本
检测信号
- WAF / reverse proxy 异常日志、访问日志和告警
- 应用审计日志中的权限错误、重定向异常、模板渲染或上传落盘事件
补丁验证步骤
- 确认目标版本从
introduced=3.0.0, fixed<4.16.1升级或回移到4.16.1。 - 保留同一组受控输入,在修复前后分别执行并比对响应、日志与浏览器证据。
- 确认修复后仅保留预期业务行为,不再触发越权、回显、异常渲染或错误请求。
- 补充
xss族自动化回归,避免同类路径在插件、主题或代理链中回归。
实验安全备注
- 只使用回环地址、哨兵目标、无害样本或可回滚测试数据。
- 禁止造成持久破坏、越权下载真实数据或不可回滚 side effect。
- 如需浏览器证据,保留 baseline / proof 两份快照以及 console / network 记录。
实验层
- 仅用于自有资产、测试环境或已明确授权目标。
- 允许公网可达目标,但必须满足资产归属或明确授权前提。
- 最小化验证方式: 最小化验证、只读探测、可审计回显、受控注入。
- 若该案例涉及插件、模块或扩展,应同时检查供应链与升级策略。
- 禁止场景: 无归属证明或无明确授权的公网目标;知名公共网站或与测试无关的第三方资产;会造成持久破坏、数据越权下载或不可回滚影响的动作
修复示例
- javascript-typescript:authz-server-side-recheck
- nodejs:authz-server-side-recheck
- java:authz-server-side-recheck
- php:authz-server-side-recheck
- python:authz-server-side-recheck
- ruby:authz-server-side-recheck
- csharp:authz-server-side-recheck
- go:authz-server-side-recheck
- javascript-typescript:csp-trusted-types
- nodejs:csp-trusted-types
- java:csp-trusted-types
- php:csp-trusted-types
- python:csp-trusted-types
- ruby:csp-trusted-types
- csharp:csp-trusted-types
- go:csp-trusted-types
- javascript-typescript:xss-output-encoding
- nodejs:xss-output-encoding
- java:xss-output-encoding
- php:xss-output-encoding
- python:xss-output-encoding
- ruby:xss-output-encoding
- csharp:xss-output-encoding
- go:xss-output-encoding
- javascript-typescript:dom-sink-hardening
- nodejs:dom-sink-hardening
- java:dom-sink-hardening
- php:dom-sink-hardening
- python:dom-sink-hardening
- ruby:dom-sink-hardening
- csharp:dom-sink-hardening
- go:dom-sink-hardening
- javascript-typescript:plugin-extension-trust-policy
- nodejs:plugin-extension-trust-policy
- java:plugin-extension-trust-policy
- php:plugin-extension-trust-policy
- python:plugin-extension-trust-policy
- ruby:plugin-extension-trust-policy
- csharp:plugin-extension-trust-policy
- go:plugin-extension-trust-policy
- javascript-typescript:dependency-upgrade-policy
- nodejs:dependency-upgrade-policy
- java:dependency-upgrade-policy
- php:dependency-upgrade-policy
- python:dependency-upgrade-policy
- ruby:dependency-upgrade-policy
- csharp:dependency-upgrade-policy
- go:dependency-upgrade-policy