Skip to content

fix(data): 修正并补充 n8n 样本语义标注#55

Open
Sam-Hui-dot wants to merge 2 commits into
Tencent:mainfrom
Sam-Hui-dot:rhinobird/issue-6-n8n-semantic-review
Open

fix(data): 修正并补充 n8n 样本语义标注#55
Sam-Hui-dot wants to merge 2 commits into
Tencent:mainfrom
Sam-Hui-dot:rhinobird/issue-6-n8n-semantic-review

Conversation

@Sam-Hui-dot

@Sam-Hui-dot Sam-Hui-dot commented Jul 18, 2026

Copy link
Copy Markdown

背景

VulnGym 中部分 n8n 样本的 entry_pointcritical_operationtrace 存在语义偏差,包括入口落在非输入节点、关键操作落在静态列表或防御函数声明,以及 trace 混入无关控制流等问题。

变更内容

修正 Issue #6 指定的 6 条样本:

  • entry-00099
  • entry-00100
  • entry-00103
  • entry-00176
  • entry-00511
  • entry-00512

同时补充两条基于源码和上游修复证据的独立审计发现:

  • entry-00182
  • entry-00191

主要调整:

  • 将表达式沙箱逃逸定位到实际 evaluator 或 Function 调用。
  • 重建 Webhook responseHeaders 配置进入响应、触发 Content-Type 检测并最终跳过 CSP sandbox 的完整链路。
  • 将 Python 沙箱关键操作从静态 denylist 移到 AST 属性安全判断。
  • 补充 __objclass__ 黑名单缺口及直接 slot-wrapper 属性访问绕过证据。
  • 修正 Custom CSS XSS 样本中误入 hiddenField 分支的 trace。
  • 将修改的 entry 保守设置为 verify=0,等待维护者重新审核。

交付物

  • 更新 canonical data/entries.jsonl
  • 增加逐条语义审核报告
  • 增加字段级差异 CSV
  • 增加离线回归测试
  • 增加可选的精确 commit 源码核对

验证

  • 408 entries / 184 reports schema 校验通过
  • 仅 8 条目标 entry 相对 origin/main 发生变化
  • 64 / 64 个源码节点已根据对应 n8n commit 逐行核对
  • unittest:7 项测试全部通过,0 项跳过
  • 覆盖目标 entry 存在性、语义锚点、trace 终点、schema、统计一致性、CSV 字段覆盖和源码匹配
  • git diff --check 通过
  • 当前分支与 origin/main 无冲突

Closes #6

Correct the six Issue Tencent#6 entries and add two evidence-backed supplementary audits with review notes, a field-level CSV, and regression tests.

Signed-off-by: Sam-Hui-dot <19303092837@163.com>
Extend the webhook CSP trace, align Python annotations with upstream evidence, correct verification statistics, and harden regression coverage.

Signed-off-by: Sam-Hui-dot <19303092837@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

【2026犀牛鸟】修正 n8n 沙箱逃逸样本的入口点和关键操作语义

1 participant