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.
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.
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
- Identify the vulnerable IconUriServlet endpoint at /plugins/servlet/oauth/users/icon-uri.
- Send a request with the consumerUri parameter set to an external URL to confirm the server fetches it.
- Set consumerUri to the AWS metadata base URL to list metadata categories.
- Request the instance identity document via the metadata endpoint.
- List IAM roles via /latest/meta-data/iam/security-credentials/.
- 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.