Gadget chains in Java: how unsafe deserialization leads to RCE?
dev.to·20h·
Discuss: DEV

In this article, we’ll explain what gadget chains are and look at examples (with schemas) of how careless deserialization with native Java mechanisms can lead to remote code execution.

Intro

First, I’d like to briefly describe how I learned about the concept of a gadget chain attack.

I’m a part of the Java team at PVS-Studio, where one of our key responsibilities is developing new diagnostic rules. When we consider adding a new rule, we spend a lot of time on theoretical research. It’s necessary to thoroughly study problems that diagnostic rules must detect.

At the time of writing, we supplemented the Java analyzer with SAST warnings; they were inspired by different sources, including the OWASP Top Ten 2021. Within the [A08 — Software and Data Int…

Similar Posts

Loading similar posts...