Jackson inject bypass fix

From XuShuwenn/RedAct · View interactive version

Jackson inject bypass fix is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Harden Jackson @JacksonInject usage so JSON input cannot override injected values (e.g., security configs) and ship a verified build.

How to use this skill

Skill file

Jackson Injectable Override Hardening

This skill distills a robust workflow to fix vulnerabilities where JSON input can override dependency-injected values in Java code using Jackson @JacksonInject. It is especially applicable to security-critical configs (e.g., enabling scripting), where an attacker may craft payloads (including empty-string property names) to bypass intended injection.

Use this when you need to:

Core Workflow

1) Reconnaissance: locate vulnerable injection points

2) Choose a primary hardening strategy (prefer precise over invasive)

3) Avoid brittle or over-broad changes

4) Apply consistently across all affected modules

5) Build and package

6) Verify the fix

Implementation Snippets

A) Local annotation hardening

B) Centralized introspector hardening (alternative)

C) Defense-in-depth

Verification Checklist

Common Pitfalls and Recovery

Optional Script Usage

Use the helper script to scan a repository for @JacksonInject sites and flag any that lack useInput = OptBoolean.FALSE.

1) Run:

2) Review output:

3) After patching:

Success Criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.