Skip to content
SSRF Write-up Intermediate

How an SSRF in a Workflow Tool Led to AWS Credentials and S3 Data Access

A workflow automation platform allowed users to configure HTTP requests executed by the backend without restricting destinations. An attacker could reach the AWS Instance Metadata Service, obtain temporary IAM credentials, and use them to list S3 buckets and read an object.

KamleshChausali Follow

Published on kamleshchausali.medium.com

Workflow automation tools make it easier to connect different services and automate tasks. They allow users to create pipelines, connect different components, and perform operations without having to write everything from scratch.

KamleshChausali, on kamleshchausali.medium.com

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

The application did not adequately restrict user-controlled URLs from reaching internal or link-local addresses, and allowed custom HTTP methods and headers, enabling the full IMDSv2 token flow.

Impact

The temporary IAM credentials could list accessible S3 buckets and read an object from an accessible bucket; the impact was limited to the permissions of the IAM role, and no write or delete operations were attempted.

What the attacker needed

Access to the workflow builder; ability to create or edit a pipeline; HTTP request node available

The fix

The application should restrict outbound destinations to an allowlist, block internal and link-local addresses, validate DNS resolution and redirects, apply network-level egress controls, enforce IMDSv2, and follow least-privilege IAM practices.

How it was found

  1. Create a pipeline with an HTTP request node and confirm requests are executed by the backend.
  2. Send a GET request to the AWS metadata endpoint and observe a 405 Method Not Allowed response.
  3. Change the method to PUT and add the required TTL header to obtain an IMDSv2 session token.
  4. Use the session token in the metadata request header to access the metadata endpoint.
  5. Request the IAM security credentials path to identify the attached role.
  6. Request the credentials endpoint for that role to retrieve temporary IAM credentials.

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.

A workflow tool let users set up web requests that the server would make for them. The server could be tricked into contacting a special internal address that holds cloud credentials, and those credentials gave access to cloud storage. This is called server-side request forgery (SSRF): making a server send requests to places the user shouldn't be able to reach.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.