Skip to content
SSRF Disclosed report Intermediate CVE-2017-9506

SSRF on █████████ Allowing internal server data access

An outdated Atlassian OAuth plugin in Confluence allowed an attacker to supply internal URLs to a page-snapshot endpoint, causing the server to fetch them. This let the attacker reach internal services and read AWS instance metadata such as the internal hostname and public IP.

alyssa_herrera Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 10 hours
  • Fixed in 39 days
  • Disclosed after 19 months

Summary by the researcher

I discovered that due to an outdated atlassian software instance, I was able to exploit an SSRF vulnerability in confluence and was able to perform several actions such as bypass any firewall/protection solutions, was able to perform XSPA through assessing the response times for ports, access Internal DoD Servers and internal services.

I discuss the vulnerabilities exploited in my write which you can find here, https://medium.com/bugbountywriteup/piercing-the-veil-server-side-request-forgery-to-niprnet-access-c358fd5e249a

The report

Summary: An end point on ██████ allows an internal access to the network thus revealing sensitive data and allowing internal tunneling Description: OAuth Plugin allows you to provide a url that gives a snap shot of the web page. We can pass internal URLS and conduct SSRF.

Impact

Critical

Step-by-step Reproduction Instructions

https://███████/plugins/servlet/oauth/users/icon-uri?consumerUri=http://169.254.169.254/latest/meta-data/hostname We can see the follow data ip-172-31-12-254.█████████.compute.internal https://████████/plugins/servlet/oauth/users/icon-uri?consumerUri=http://169.254.169.254/latest/meta-data/public-ipv4 ███████

Product, Version, and Configuration (If applicable)

Jira

Suggested Mitigation/Remediation Actions

Update to recent version

Impact

An attacker can tunnel into internal networks and access sensitive internal data such as AWS meta data information.

The hacker selected the Server-Side Request Forgery (SSRF) weakness. This vulnerability type requires contextual information from the hacker. They provided the following answers:

Can internal services be reached bypassing network access control? Yes

What internal services were accessible? AWS Bucket Meta data

Security Impact CVE-2017-9506 - The IconUriServlet of the Atlassian OAuth Plugin from version 1.3.0 before version 1.9.12 and from version 2.0.0 before version 2.0.4 allows remote attackers to access the content of internal network resources and/or perform an XSS attack via Server Side Request Forgery (SSRF).

The original report as published on HackerOne, by alyssa_herrera. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the OAuth plugin's icon-uri endpoint accepted a user-supplied URL and fetched it without validating that it pointed to an external, allowed destination.

Impact

An attacker could tunnel into internal networks and access sensitive internal data such as AWS metadata information.

What the attacker needed

Access to the Confluence instance; outdated Atlassian OAuth plugin

The fix

The OAuth plugin should be updated to a recent version that fixes the SSRF issue.

How it was found

  1. Send a request to the OAuth plugin's icon-uri endpoint with a consumerUri parameter pointing to the AWS metadata hostname address.
  2. Observe the response containing the internal hostname.
  3. Send a similar request with consumerUri pointing to the AWS metadata public-ipv4 address.
  4. Observe the response containing the public IP address.

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 report has not been written yet. The Original tab links to the source.

The server had a feature that fetched a web page for you when you gave it a link. The problem was it did not check where that link pointed, so someone could give it a link to a private address inside the company network. The server then fetched that private page and showed the result, leaking internal information.

What is SSRF?

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

More by alyssa_herrera

View all

28 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

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.