Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

fix-druid-loophole-cve-jackson-security修复 Druid 漏洞 CVE Jackson 安全

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

2,115

周安装

89

GitHub Stars

公开资料未说明

下载量

740
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fix-druid-loophole-cve-jackson-security(修复 Druid 漏洞 CVE Jackson 安全)
来源仓库:https://github.com/wu-uk/fix-druid-loophole-cve-jackson-security
安装命令:
openclaw skills install fix-druid-loophole-cve-jackson-security
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install fix-druid-loophole-cve-jackson-security

简介

fix-druid-loophole-cve-jackson-security 用于辅助安全审计和漏洞排查。

  • 适用于 Jackson JSON 反序列化的安全检查场景。
  • 使用时不能将工具输出直接作为最终结论。
  • 涉及密钥或生产系统时,应确认最小权限和操作边界。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
jackson-security
description
Security considerations for Jackson JSON deserialization in Java applications. Covers timing of validation, raw input interception, and common deserialization attack patterns.

Jackson Deserialization Security

Key Concept: Deserialization Timing

Jackson transforms JSON text into Java objects during a single readValue() call. This transformation is not a simple data copy—Jackson interprets JSON structure, resolves types, handles special keys, and instantiates objects all within this operation.

JSON String → [Jackson Processing] → Java Object ↑ Attack surface here

Once deserialization completes, the resulting Java object contains no trace of how it was constructed. Any special JSON structures, unusual keys, or type directives that influenced object creation are no longer visible.


Why Post-Deserialization Validation Is Insufficient

Consider the lifecycle of a typical JSON endpoint:

1. HTTP request arrives with JSON body 2. Framework deserializes JSON → Java object (Jackson runs here) 3. Your code receives the Java object 4. Your code validates the object 5. Your code processes the object

Validation at step 4 examines the result of deserialization, not the process. Any malicious behavior triggered during step 2 has already executed. The Java object you're validating may appear completely normal while the attack has already succeeded.

This creates a fundamental blind spot: attacks that exploit Jackson's parsing behavior—rather than the final object state—cannot be detected by examining the deserialized object.


The Empty Key ("") Attack Vector

What Is It?

JSON permits empty strings as object keys:

{ "name": "legitimate", "": "injected value" }

This is valid JSON per RFC 8259. Jackson parses it without error.

Why Does It Matter?

Some applications and frameworks assign special meaning to empty keys:

  • Injection points: Certain Jackson configurations use "" to set values on the root object or trigger special handling
  • Property override: Empty keys may interact unexpectedly with @JsonAnySetter or custom deserializers
  • Framework behaviors: Some frameworks interpret "" as "apply to parent" or "default target"

The Visibility Problem

After deserialization, there is no standard way to know an empty key was present:

// Original JSON: {"name": "test", "": "malicious"} MyObject obj = mapper.readValue(json, MyObject.class); // obj.getName() returns "test" // Where did "" go? Depends on configuration. You cannot tell from obj.

The attack's effectiveness depends on the specific Jackson configuration and target class—but the defender examining only the resulting object cannot determine whether "" was used.


Other Structural Attack Patterns

Polymorphic Type Handling

When Jackson is configured with @JsonTypeInfo, JSON can specify which class to instantiate:

{ "@class": "com.attacker.MaliciousClass", "command": "rm -rf /" }

Jackson will attempt to instantiate whatever class is named. If the classpath contains exploitable "gadget" classes, arbitrary code execution may occur during deserialization—before your code ever runs.

The resulting object might be the expected type (if the attack class is a subtype), or deserialization might succeed partially before the damage is done.

Duplicate Keys

JSON does not prohibit duplicate keys. Jackson's default behavior: last value wins.

{ "role": "user", "role": "admin" }

Jackson produces an object where role equals "admin".

If upstream validation (like a WAF or input filter) checks only the first occurrence while Jackson uses the last, the validation and processing see different values.

Nested Injection

Deeply nested structures can bypass depth-limited validation:

{ "config": { "settings": { "internal": { "": "payload" } } } }

Simple string checks might miss patterns buried in nested structures.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.28%
按下载量换算690

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills