Skip to content
SSRF Write-up Intermediate

How I got access to local AWS info via Jira

The Atlassian OAuth plugin's IconUriServlet accepted a user-supplied URL and fetched it server-side without validation, allowing SSRF. An attacker could use this to reach internal services and the AWS instance metadata endpoint, potentially obtaining IAM credentials.

Coen Goedegebure Follow

Published on coengoedegebure.com

This article will describe how I exploited an SSRF vulnerability in an Atlassian plugin and gained access to AWS instance metadata via a local endpoint, explaining the theory and techniques along the way.

Coen Goedegebure (@CoenHimself), on coengoedegebure.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 IconUriServlet took the consumerUri request parameter and used it to make an outbound HTTP request without any validation or allow-listing.

Impact

An attacker could access internal network resources and, if Jira runs on AWS, read instance metadata including IAM role credentials, potentially leading to further compromise.

What the attacker needed

Jira (or other Atlassian product) with vulnerable OAuth…; Network access to the Jira instance; Jira hosted on AWS for metadata access

How it was found

  1. Identify the vulnerable IconUriServlet endpoint at /plugins/servlet/oauth/users/icon-uri.
  2. Send a request with the consumerUri parameter set to an external URL to confirm the server fetches it.
  3. Set consumerUri to the AWS metadata base URL to list metadata categories.
  4. Request the instance identity document via the metadata endpoint.
  5. List IAM roles via /latest/meta-data/iam/security-credentials/.
  6. Retrieve credentials for a role via /latest/meta-data/iam/security-credentials/<rolename>.

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 server-side request forgery (SSRF) bug lets an attacker make the server send requests to places the attacker cannot reach directly. Here, a Jira plugin took a URL from the user and fetched it without checking, so the attacker could ask Jira to visit internal addresses such as the cloud metadata service. That service can reveal sensitive information like temporary cloud credentials.

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.