Skip to content
IDOR Disclosed report Beginner

IDOR on DoD Website exposes FTP users and passes linked to all accounts!

The application did not check whether a Push Server belonged to the requesting user, so an attacker could view and edit any user's linked FTP or sFTP credentials by changing the numeric ID in the URL. This allowed theft of FTP credentials and unauthorised modification of Push Server settings in the CMS.

cdl Follow

Originally disclosed on HackerOne

  • Triaged in 23 hours
  • Fixed in 10 days
  • Disclosed after 2.4 years

Description: https://████/██████/ is vulnerable to Insecure Direct Object Reference. The application does not validate whether or not who a Push Server belongs to thus allowing an attacker to view the credentials of any FTP / sFTP server linked to any user's account.

Impact

An attacker can view anybody's FTP server information, thus compromising the user's FTP servers. This also allows an attacker to update or edit the Push Server in the ██████████ CMS.

Step-by-step Reproduction Instructions

  1. Log into or create an account on https://██████████/██████████
  2. Now visit https://████████/█████/filepush/ftp/303/

You will be able to see my ftp server details and you will be able to update or delete it!

An attacker can bruteforce the id to see if the server gives back a valid response. The attacker can then log into the person's FTP servers with the credentials stolen using this vulnerability, giving them full access to private / confidential information!

Example: https://██████████/█████████/filepush/ftp/1/

Hostname: ██████ Username: ██████ Password: █████ Path: /from_pub/cr/████████

https://█████████/████/filepush/ftp/<ID>/

Suggested Mitigation/Remediation Actions

Check whether or the user's account should have access to the specified Push Server

The original report as published on HackerOne, by cdl. 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

The application used a sequential numeric identifier for Push Servers without verifying that the authenticated user owned the requested object.

Impact

An attacker could view any user's FTP server credentials and update or delete their Push Server settings, potentially leading to full access to private or confidential information on those FTP servers.

What the attacker needed

A free account; knowledge of a valid Push Server ID

The fix

The application should verify that the authenticated user's account is authorised to access the requested Push Server before returning or modifying its details.

How it was found

  1. Log into or create an account on the target site.
  2. Visit the filepush FTP URL with a specific numeric ID.
  3. Observe another user's FTP server details and the ability to update or delete them.
  4. Brute-force the numeric ID to find valid responses for other servers.

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.

A website used a number in the web address to decide which FTP server details to show, but never checked if the person asking actually owned that server. By changing the number, anyone could see other people's FTP usernames and passwords. This is called an Insecure Direct Object Reference (IDOR): the site trusts a user-supplied identifier without checking permission.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by cdl

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.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.