Skip to main content
QUICK REVIEW

[Paper Review] ODDFUZZ: Discovering Java Deserialization Vulnerabilities via Structure-Aware Directed Greybox Fuzzing

Sicong Cao, Biao He|arXiv (Cornell University)|Apr 9, 2023
Security and Verification in ComputingComputer Science3 citations
TL;DR

ODDFuzz is a hybrid vulnerability discovery framework that combines lightweight static taint analysis with structure-aware directed greybox fuzzing to efficiently identify and validate Java deserialization gadget chains. It discovers 16 out of 34 known gadget chains and uncovers six previously unknown, exploitable chains, five of which were assigned CVEs.

ABSTRACT

Java deserialization vulnerability is a severe threat in practice. Researchers have proposed static analysis solutions to locate candidate vulnerabilities and fuzzing solutions to generate proof-of-concept (PoC) serialized objects to trigger them. However, existing solutions have limited effectiveness and efficiency. In this paper, we propose a novel hybrid solution ODDFUZZ to efficiently discover Java deserialization vulnerabilities. First, ODDFUZZ performs lightweight static taint analysis to identify candidate gadget chains that may cause deserialization vulner-abilities. In this step, ODDFUZZ tries to locate all candidates and avoid false negatives. Then, ODDFUZZ performs directed greybox fuzzing (DGF) to explore those candidates and generate PoC testcases to mitigate false positives. Specifically, ODDFUZZ applies a structure-aware seed generation method to guarantee the validity of the testcases, and adopts a novel hybrid feedback and a step-forward strategy to guide the directed fuzzing. We implemented a prototype of ODDFUZZ and evaluated it on the popular Java deserialization repository ysoserial. Results show that, ODDFUZZ could discover 16 out of 34 known gadget chains, while two state-of-the-art baselines only identify three of them. In addition, we evaluated ODDFUZZ on real-world applications including Oracle WebLogic Server, Apache Dubbo, Sonatype Nexus, and protostuff, and found six previously unreported exploitable gadget chains with five CVEs assigned.

Motivation & Objective

  • Address the limited effectiveness and efficiency of existing solutions in discovering Java deserialization vulnerabilities.
  • Overcome the high false-positive and false-negative rates in purely static analysis due to runtime polymorphism and complex data flows.
  • Improve fuzzing efficiency by guiding test generation toward specific sinks rather than relying on coverage-driven exploration.
  • Ensure generated testcases are structurally valid by modeling gadget chain constraints as trees during fuzzing.
  • Automatically validate candidate gadget chains from static analysis to reduce manual effort and increase exploitability detection.

Proposed method

  • Performs lightweight static taint analysis to identify candidate gadget chains with high recall, minimizing false negatives.
  • Models the data constraints of gadget chains as a tree structure to guide structure-aware seed generation in fuzzing.
  • Employs a hybrid feedback mechanism combining code coverage and sink reachability to prioritize mutations.
  • Introduces a step-forward mutation strategy that incrementally modifies seeds toward target sinks, improving directed exploration.
  • Uses directed greybox fuzzing to efficiently reach security-sensitive sink methods while maintaining test input validity.
  • Validates discovered chains by generating PoCs that trigger actual exploit behavior in target applications.

Experimental results

Research questions

  • RQ1Can a hybrid approach combining static analysis and directed fuzzing outperform purely static or coverage-driven fuzzing in discovering Java deserialization vulnerabilities?
  • RQ2How effective is structure-aware seed generation in maintaining the validity of complex, multilevel serialized objects during fuzzing?
  • RQ3To what extent does the step-forward mutation strategy improve the efficiency of reaching target sinks compared to random or coverage-driven mutations?
  • RQ4Can ODDFuzz discover previously unknown, exploitable gadget chains in real-world applications beyond known repositories like ysoserial?
  • RQ5How does ODDFuzz compare to state-of-the-art baselines in terms of recall and precision for gadget chain detection?

Key findings

  • ODDFuzz discovered 16 out of 34 known gadget chains in the ysoserial repository, significantly outperforming two state-of-the-art baselines that identified only three each.
  • In real-world applications including Oracle WebLogic Server, Apache Dubbo, Sonatype Nexus, and protostuff, ODDFuzz uncovered six previously unknown, exploitable gadget chains.
  • Five of the newly discovered vulnerabilities were assigned CVE identifiers, confirming their exploitability and severity.
  • The structure-aware seed generation method ensured high validity of generated testcases, reducing the need for manual input repair.
  • The hybrid feedback and step-forward mutation strategy significantly improved the speed and success rate of reaching target sinks compared to traditional coverage-guided fuzzing.
  • The lightweight static taint analysis achieved high recall by minimizing false negatives, enabling comprehensive candidate discovery before directed fuzzing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.