Skip to content

[NEW SKILL] insecure-deserialization-review #253

@JeremyZeng77

Description

@JeremyZeng77

Proposed Skill

Skill name: insecure-deserialization-review
Category: other
Severity: critical

What It Detects

Detects dangerous deserialization of untrusted data in languages and frameworks that allow object gadget execution, unexpected type materialization, or unsafe polymorphic binding.

Why This Skill Is Needed

The repo lacks a dedicated deserialization skill, yet this remains a high-impact class across web, API, and messaging systems. Existing secure-code-review guidance is too broad to drive specific tests or remediation here.

Detection Approach

Look for unsafe object deserializers, polymorphic type binding, trusted-by-default message queues, and missing allowlists for concrete types or schemas.

Languages / Frameworks

  • java/spring
  • python

Example Vulnerable Code

ObjectInputStream ois = new ObjectInputStream(req.getInputStream());
Object obj = ois.readObject();

Example Remediation

Use schema-bound JSON/protobuf parsing with explicit type allowlists and reject unexpected class metadata or polymorphic type hints.

References

  • CWE-502
  • OWASP Deserialization Cheat Sheet

Estimated Complexity

  • Standard ($200) - Well-known vuln class, single language, straightforward detection
  • Intermediate ($350) - Multiple languages/frameworks, nuanced detection logic
  • Complex ($500) - Novel detection approach, comprehensive coverage, low FP rate

Bounty Info

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions