Non-Fiction, True Crime, Technical Forensics

Apache Struts Vulnerability Zero Day eBook

Explains the open source flaw that hackers exploit

by Solomon Sung

  • English
  • 134 pages
  • 2026
  • SamEnrico

Explains the open source flaw that hackers exploited to breach Equifax months after patch release.

Formats

Free sample

Chapter 1: The Ubiquity Paradox...--How does a company responsible for the financial identities of half the American adult population fail to apply a software update for over four months?The question sounds absurd, even malicious. It conjures images of incompetent IT staff sleeping at their desks, or a culture of negligence so profound that it borders on sabotage. But the answer—like most truths about catastrophic failures—is far more unsettling than simple incompetence. The answer begins with ubiquity, not neglect. It begins with the quiet, invisible infrastructure that powers modern life, and the dangerous assumption that if something runs everywhere, someone must be watching it.On March 7, 2017, the Apache Software Foundation released a security advisory that should have triggered immediate panic in every major corporation on Earth.

The advisory described a vulnerability in Apache Struts 2, an open-source web application framework so widely used that it had become a silent pillar of the global economy. The vulnerability carried a Common Vulnerability Scoring System (CVSS) score of 10.0—the highest possible severity rating. It allowed remote attackers to execute arbitrary code on vulnerable servers simply by sending a carefully crafted HTTP request. In plain English: anyone with an internet connection could take complete control of any server running an unpatched version of Struts.Within seventy-two hours, the proof-of-concept code had been published. Within a week, the Metasploit penetration testing framework included a fully automated exploit module.

The vulnerability was no longer a theoretical risk; it was a loaded weapon sitting on a table, and the entire internet knew exactly where the table was located.Equifax, one of three major consumer credit reporting agencies in the United States, had built its consumer dispute portal—the Automated Consumer Interview System, or ACIS—on Apache Struts. The system had been running in various forms for decades. Its business logic and data structures dated to the 1970s, though the public-facing web portal had been re-platformed multiple times, most recently onto Struts 2, which was first released in 2007. By 2017, ACIS was what software engineers call a "ship of Theseus" system: every component had been replaced so many times that no single person understood its full architecture. It was old, it was critical, and it was vulnerable.The tragedy of the Equifax breach is not that it was caused by a sophisticated zero-day exploit—an unknown vulnerability that no one could have predicted.

The tragedy is that it was caused by a known vulnerability with a published patch that went unapplied for over four months. The patch existed. The warning had been delivered. The exploit was public. And yet, on May 13, 2017, attackers walked through an open door and spent the next seventy-six days extracting the personal information of 147 million people.To understand how this happened, we must first understand what Apache Struts is, why it powers half the Fortune 500, and how a design feature intended to make web development easier became the single point of failure for the largest data breach in history.The Invisible Engine of the Internet Every time you fill out a form on a website—submitting a loan application, uploading a photo for a driver's license renewal, disputing a charge on your credit card—you are interacting with a web application framework.

A framework is a collection of pre-built software components that save developers from reinventing common functions. Instead of writing code to handle file uploads from scratch, a developer using Struts can simply call a pre-existing component. Instead of building a system to move data from a web form into a database, a developer can rely on the framework's built-in data binding.This is not a trivial convenience. Modern web applications are extraordinarily complex. A single e-commerce site might handle thousands of simultaneous users, process payments in multiple currencies, integrate with shipping carriers, manage inventory across warehouses, and personalize content based on browsing history.

Writing all of that from scratch would take years. Frameworks like Struts compress those years into weeks or months.Apache Struts emerged from the Java Server Pages (JSP) ecosystem in the early 2000s. Java had become the language of choice for enterprise applications—the systems that banks, insurance companies, credit bureaus, and government agencies relied on for mission-critical operations. Struts provided a standard way to structure these applications using the Model-View-Controller (MVC) pattern, which separates an application into three interconnected parts: the data (Model), the user interface (View), and the logic that connects them (Controller).By 2017, Struts 2 was everywhere. Tax preparation software used it.

Airline reservation systems used it. The United States Department of Defense used it. And Equifax used it for ACIS, the portal where consumers disputed errors on their credit reports.The reason Struts became so popular is also the reason it became so dangerous. Struts was designed to be powerful and flexible. It achieved that power through a language called OGNL—the Object-Graph Navigation Language.

OGNL allows developers to move data between web forms and Java objects with remarkable ease. A developer could write a single line of OGNL to take a value from an HTTP request, convert it to the appropriate data type, validate it, and store it in a database. This was a tremendous productivity boost.But OGNL had a dark side. It was designed to evaluate expressions—to treat strings as executable code. This is a feature, not a bug.

In the controlled environment of a developer's hands, evaluating expressions is how frameworks achieve their flexibility. But when user input is accidentally passed to OGNL for evaluation, the feature becomes a catastrophe.The Jakarta Multipart Parser and the Content-Type Mistake To understand the specific vulnerability that brought Equifax to its knees, we need to understand how web servers handle file uploads.When you upload a file through a web browser—a PDF for a loan application, a photo for a profile picture, a dispute letter for Equifax—your browser sends an HTTP POST request. That request has two main parts: headers and a body. The headers contain metadata about the request: what kind of browser you're using, what website you're requesting, and crucially, the Content-Type of the data being sent.For a file upload, the Content-Type header typically looks something like this:Content-Type: multipart/form-data; boundary=----Web Kit Form Boundary7MA4YWxk Tr Zu0g WThis tells the server: "I am sending a multipart message containing form data. The parts of this message are separated by the string '----Web Kit Form Boundary7MA4YWxk Tr Zu0g W'."The server then uses a parser to process this multipart message, extract the individual fields and files, and make them available to the web application.

In Struts, the component responsible for this parsing is called the Jakarta Multipart Parser.The vulnerability designated CVE-2017-5638 arose because the Jakarta Multipart parser made a catastrophic assumption: it treated the Content-Type header as safe data that could be passed directly to OGNL for processing.Here is what an attacker realized: the Content-Type header is provided by the user. The browser constructs it based on the form being submitted. An attacker could modify that header to contain anything they wanted. And if the Jakarta parser would pass that header value to OGNL, then the attacker could inject OGNL expressions directly into the header.This…

This is the end of the free sample. Get the eBook to keep going. Buy now

About this book

Explains the open source flaw that hackers exploited to breach Equifax months after patch release.

Details

Author
Solomon Sung
Publisher
SamEnrico
Language
English
Genre
Non-Fiction, True Crime, Technical Forensics
Released
2026-06-05
Pages (approx.)
134
Available as
eBook, Audiobook

Read better in the ZLOADR app

Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.

More by Solomon Sung

See all

You may also like

See all