The Chameleon Attack: Breaking Apache StreamPipes with Recursive
Apache StreamPipes reused the same data transfer object for both reading and updating user profiles, so a user could take their own valid profile JSON, recursively inject an admin role into nested privilege fields, and send it back to escalate privileges. The attacker could gain administrative access.
Published on medium.com
In the world of Industrial IoT (IIoT), we often assume that security breaches require complex buffer overflows or advanced cryptography cracking. However, CVE-2025–47411 in Apache StreamPipes proves that sometimes, the most critical flaws are purely architectural.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application reused a single DTO for both output and input, allowing clients to set fields such as roles that should never be writable.
Impact
A low-privileged user could escalate to administrator, gaining full control over the StreamPipes instance.
What the attacker needed
A valid low-privileged account
The fix
The application should use separate DTOs: one for responses that includes roles, and one for requests that excludes privileged fields.
How it was found
- Request your own profile with GET /users/self to obtain a valid JSON object containing your current low privileges.
- Recursively search that JSON for keys named roles, authorities, or privileges and add ROLE_ADMIN to the list values.
- Send the mutated object back with PUT /users/self; because the structure is unchanged, validation passes and the admin role is applied.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you update your profile, the server should only accept fields you are allowed to change, like your display name. Here, the server accepted the whole profile object, including hidden permission fields, so a user could quietly add themselves to the admin group. This is called mass assignment: the server blindly copies user-supplied data into its internal objects.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.