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.
- 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
- Log into or create an account on
https://██████████/██████████ - 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
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
- Log into or create an account on the target site.
- Visit the filepush FTP URL with a specific numeric ID.
- Observe another user's FTP server details and the ability to update or delete them.
- 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.