TAMS registration details API for admins open at https://tamsapi.gsa.gov/user/tams/api/usermgmnt/pendingUserDetails/
Two TAMS registration endpoints returned pending user details and attachment contents without any authentication. An attacker could enumerate numeric identifiers to read personal and corporate information about contractors and employees seeking access.
- Triaged in 8 hours
- Fixed in 3 months
- Disclosed after 5 months
Summary:
TAMS administrators are supposed to approve or deny all registration requests. The dashboard that shows these administrators details of a registration request calls the endpoint https://tamsapi.gsa.gov/user/tams/api/usermgmnt/pendingUserDetails/(REGISTRATION_ID), where (REGISTRATION_ID) is numeric.
This endpoint will, without authentication, return the email, address, phone, attachment IDs, address, corporate info, and user roles. It will also return their request status and denial reason if applicable.
Attachments can then be viewed unauthenticated through https://tamsapi.gsa.gov/user/tams/api/usermgmnt/getAttachmentBytes/(ATTACHMENT_ID).
Steps To Reproduce:
- Navigate to the following URL: https://tamsapi.gsa.gov/user/tams/api/usermgmnt/pendingUserDetails/2634
- For attachments, navigate to the following URL: https://tamsapi.gsa.gov/user/tams/api/usermgmnt/getAttachmentBytes/600
Recommended Mitigation:
Only allow users with valid JWT tokens for the admin role view these two endpoints.
Impact
An unauthorized attacker can view personal information about contractors and employees gaining access to TAMS.
Context
TAMS is a GSA system whose administrators are meant to approve or deny every registration request before a contractor or employee is granted access. To do that, an administrator opens a dashboard that shows the details of a pending registration request. That dashboard is backed by an API endpoint:
https://tamsapi.gsa.gov/user/tams/api/usermgmnt/pendingUserDetails/(REGISTRATION_ID)
(REGISTRATION_ID) is a numeric identifier. The endpoint returns the registration's email, address, phone, attachment IDs, corporate information and user roles, plus the request status and, where applicable, the denial reason. Attachments referenced by those IDs are served by a second endpoint:
https://tamsapi.gsa.gov/user/tams/api/usermgmnt/getAttachmentBytes/(ATTACHMENT_ID)
The feature exists so that an administrator can review a registration and decide on it. Both endpoints are part of the administrative workflow, so both should only be reachable by an authenticated administrator.
Setup
The report does not describe any account, role, tool or version used to find the issue. The only precondition that matters is the absence of one: no authenticated session and no administrator role are needed to reach either endpoint. The identifiers are plain numbers, so a request can be built by hand against the public host.
Finding it
The researcher noticed that the dashboard which displays registration details to administrators calls pendingUserDetails/(REGISTRATION_ID) with a numeric identifier, and that the attachment viewer calls getAttachmentBytes/(ATTACHMENT_ID) with another numeric identifier. The report does not describe how the endpoints were discovered. Because the identifiers are numeric, the endpoints looked like a direct object reference problem: whoever supplies the number gets the object, regardless of who they are.
Exploitation
Step 1: Read a pending registration without authentication
The researcher navigated directly to the details endpoint with a registration ID:
https://tamsapi.gsa.gov/user/tams/api/usermgmnt/pendingUserDetails/2634
No authentication was supplied. The endpoint returned the registration record for that ID: the applicant's email, address and phone, the attachment IDs, corporate information and user roles, together with the request status and the denial reason if one applied. Because the ID is numeric, other registrations can be requested the same way by changing the number.
Step 2: Fetch the attached documents without authentication
The attachment IDs returned in step 1 can be passed to the second endpoint. The researcher used attachment ID 600:
https://tamsapi.gsa.gov/user/tams/api/usermgmnt/getAttachmentBytes/600
Again without authentication, the endpoint served the attachment bytes for that ID. As with the details endpoint, the numeric ID means attachments belonging to other registrations can be requested by changing the number.
Root cause
Both endpoints accept a numeric object identifier and return the object without checking who is asking. There is no authorisation step tying the request to an administrator, and no requirement for a valid session at all. The API is reachable directly and the identifiers are numeric.
Impact
An unauthorised attacker can view personal information about contractors and employees who are seeking access to TAMS. That covers the contact and corporate details in the registration record, the request status and denial reason, and the attached documents. The exposure covers the registrations whose IDs the attacker requests.
Fix
The recommended mitigation is to allow only users holding valid JWT tokens for the admin role to view these two endpoints. In other words, both pendingUserDetails and getAttachmentBytes should require authentication and an administrator role check before any object is returned.
Variants to test
- Numeric IDs on administrative APIs. Take any endpoint that a back-office dashboard calls with an integer ID and request it directly with no session. A positive result is a full record returned for an ID you do not own.
- Attachment and file endpoints. After finding a readable record, take the file or attachment IDs it contains and request the download endpoint unauthenticated. A positive result is the file bytes coming back without a session.
- Sequential enumeration. Change the ID by one in each direction and compare responses. A positive result is a different valid record rather than an error, which confirms the objects are enumerable.
- Role downgrade. Authenticate as a low-privileged user and call the same endpoints. A positive result is administrative data returned to a non-administrator, which shows the check is missing rather than merely bypassable.
Hunting notes
This kind of bug tends to sit behind dashboards: endpoints that exist to serve an internal review or approval screen and are assumed to be reachable only through that screen. The signals during recon are numeric identifiers in API paths, hosts such as api. subdomains that serve the front end, and endpoints whose names describe administrative actions (pendingUserDetails, getAttachmentBytes). Once one such route is found, the fastest confirmation is to request it with no cookies at all and see whether a record comes back. The researcher showed that the unauthenticated response contained personal and corporate details and that the referenced attachment could also be downloaded.
A note on scope: the report gives no information about how the identifiers were first obtained, how many records exist, or what the attachments contained.
What happened, in plain words
TAMS is a system run by the U.S. General Services Administration (GSA). Contractors and employees who want access to TAMS fill in a registration request. Before anyone is let in, a TAMS administrator is supposed to look at the request and either approve it or deny it. To do that, the administrator opens a dashboard: a web page that lists pending requests and shows the details of each one.
That dashboard does not hold the data itself. It asks a separate computer program, called an API, for the details. An API is a way for one piece of software to ask another for information, a bit like a waiter taking your order to the kitchen and bringing the food back. The dashboard asks the API a question using a web address (a URL), and the API answers with the data.
The problem the researcher found is that these API addresses answer anyone who asks, with no login. Each address ends in a plain number, and the number simply says which registration or which attachment you want. Change the number, and you get a different person's data. This kind of mistake has a name: an Insecure Direct Object Reference, or IDOR. "Object" means a record in the system, such as one registration. "Direct reference" means the record is named directly by an identifier in the request, here a number. "Insecure" means the system hands the record over without checking whether the person asking is allowed to see it.
An everyday comparison: imagine a hotel where every room key is just the room number written on a card. If the front desk never checks who you are, you can write "214" on a card and walk into room 214, then "215" and walk into the next one. The rooms are real, the numbers are simple, and nothing stops you trying them in order. That is what happened here, except the rooms contain people's personal and corporate details and their uploaded documents.
Context
TAMS administrators are meant to approve or deny every registration request before a contractor or employee is granted access. To do that, an administrator opens a dashboard that shows the details of a pending registration request. That dashboard is backed by an API endpoint:
https://tamsapi.gsa.gov/user/tams/api/usermgmnt/pendingUserDetails/(REGISTRATION_ID)
An endpoint is one specific address on a server that answers one specific kind of request. Think of a large office building: the building has one street address, but inside there are many desks, and each desk handles one job. An endpoint is one of those desks. The part before the first slash after the host name, tamsapi.gsa.gov, tells you this is the API host for TAMS, a separate machine from the website people look at in a browser. The rest of the path, /user/tams/api/usermgmnt/pendingUserDetails/, is the route to the desk that deals with pending user details. usermgmnt is short for "user management".
(REGISTRATION_ID) is a numeric identifier. An identifier is simply a label that picks out one record among many, like a ticket number at a deli counter. Here it is a whole number that picks out one registration. The endpoint returns the registration's email, address, phone, attachment IDs, corporate information and user roles, plus the request status and, where applicable, the denial reason. Attachment IDs are identifiers for files the applicant uploaded. User roles describe what the person is allowed to do in the system once approved.
Attachments referenced by those IDs are served by a second endpoint:
https://tamsapi.gsa.gov/user/tams/api/usermgmnt/getAttachmentBytes/(ATTACHMENT_ID)
This is a second desk in the same building. getAttachmentBytes literally means "give me the raw contents of the attachment". (ATTACHMENT_ID) is again a number that picks out one file. The word "bytes" refers to the raw data of a file, the ones and zeros that make up a PDF or an image, which a browser can then save or display.
The feature exists so that an administrator can review a registration and decide on it. Both endpoints are part of the administrative workflow, so both should only be reachable by an authenticated administrator. Authenticated means the system knows who you are, usually because you logged in. Authorised means the system has checked that you, specifically, are allowed to do this particular thing. Here the endpoints answered without any login at all.
Setup
The report does not describe any account, role, tool or version used to find the issue. The only precondition that matters is the absence of one: no authenticated session and no administrator role are needed to reach either endpoint. A session is the state of being logged in; normally the browser holds a small piece of data, often called a cookie or a token, that it sends with every request so the server can recognise you. A token is a string of characters that acts like a stamped wristband at an event: show it and you are let back in without proving who you are again. The researcher needed none of that.
The identifiers are plain numbers, so a request can be built by hand against the public host. "Public host" means the machine is reachable from the open internet, not only from inside the organisation's network. Building a request by hand means typing the address into a browser's address bar, the same way you would type any website address. No special software is required.
Finding it
The researcher noticed that the dashboard which displays registration details to administrators calls pendingUserDetails/(REGISTRATION_ID) with a numeric identifier, and that the attachment viewer calls getAttachmentBytes/(ATTACHMENT_ID) with another numeric identifier. The report does not describe how the endpoints were discovered.
Because the identifiers are numeric, the endpoints looked like a direct object reference problem: whoever supplies the number gets the object, regardless of who they are. "Unguessable" would be something like a long random string, which you cannot simply count through.
Exploitation
Step 1: Read a pending registration without authentication
The researcher navigated directly to the details endpoint with a registration ID:
https://tamsapi.gsa.gov/user/tams/api/usermgmnt/pendingUserDetails/2634
Line by line, in plain words:
https://is the scheme, meaning the connection is encrypted in transit, so the data cannot easily be read by someone sitting on the network in between.tamsapi.gsa.govis the host, the name of the server being asked./user/tams/api/usermgmnt/pendingUserDetails/is the path, the route to the right desk inside that server.2634is the registration ID, the number that picks out one specific pending registration.
No authentication was supplied. The researcher did not log in. The endpoint returned the registration record for that ID: the applicant's email, address and phone, the attachment IDs, corporate information and user roles, together with the request status and the denial reason if one applied. Because the ID is numeric, other registrations can be requested the same way by changing the number. This step was taken first because it is the simplest possible test: ask for one record with no credentials at all and see whether the server answers. If it does, the question of who is allowed to ask has already been answered, badly.
Step 2: Fetch the attached documents without authentication
The attachment IDs returned in step 1 can be passed to the second endpoint. The researcher used attachment ID 600:
https://tamsapi.gsa.gov/user/tams/api/usermgmnt/getAttachmentBytes/600
Again, line by line:
https://tamsapi.gsa.govis the same host as before./user/tams/api/usermgmnt/getAttachmentBytes/is the route to the desk that hands out file contents.600is the attachment ID, the number that picks out one specific uploaded file.
Again without authentication, the endpoint served the attachment bytes for that ID. As with the details endpoint, the numeric ID means attachments belonging to other registrations can be requested by changing the number. This second step matters because the details endpoint only gives you the file's number, not the file. Following the number to the download endpoint turns a list of references into actual documents, which is what makes the exposure concrete.
Root cause
Both endpoints accept a numeric object identifier and return the object without checking who is asking. There is no authorisation step tying the request to an administrator, and no requirement for a valid session at all. The API is reachable directly and the identifiers are numeric. "Enumerable" means you can list or walk through the possible values one by one.
A useful way to think about it: locking the front door of a shop but leaving the loading bay open is not security, because anyone can walk round to the loading bay. The dashboard is the front door. The API address is the loading bay, and it was open.
Impact
An unauthorised attacker can view personal information about contractors and employees who are seeking access to TAMS. That covers the contact and corporate details in the registration record, the request status and denial reason, and the attached documents. The exposure covers the registrations whose IDs the attacker requests.
Fix
The recommended mitigation is to allow only users holding valid JWT tokens for the admin role to view these two endpoints. A JWT, short for JSON Web Token, is a token that carries information about who you are and what you are allowed to do, and it is signed by the server so it cannot be forged without the server's secret key. "Valid" means the server checks that signature and that the token has not expired. "For the admin role" means the token must also say the holder is an administrator. In other words, both pendingUserDetails and getAttachmentBytes should require authentication and an administrator role check before any object is returned.
Variants to test
These are the same ideas applied more widely, so you can look for the same mistake elsewhere.
- Numeric IDs on administrative APIs. Take any endpoint that a back-office dashboard calls with an integer ID and request it directly with no session. A positive result is a full record returned for an ID you do not own.
- Attachment and file endpoints. After finding a readable record, take the file or attachment IDs it contains and request the download endpoint unauthenticated. A positive result is the file bytes coming back without a session.
- Sequential enumeration. Change the ID by one in each direction and compare responses. A positive result is a different valid record rather than an error, which confirms the objects are enumerable.
- Role downgrade. Authenticate as a low-privileged user and call the same endpoints. A positive result is administrative data returned to a non-administrator, which shows the check is missing rather than merely bypassable. "Low-privileged" means an ordinary account with the fewest permissions, and "bypassable" means a check exists but can be got around.
Hunting notes
This kind of bug tends to sit behind dashboards: endpoints that exist to serve an internal review or approval screen and are assumed to be reachable only through that screen. The signals during recon are numeric identifiers in API paths, hosts such as api. subdomains that serve the front end, and endpoints whose names describe administrative actions (pendingUserDetails, getAttachmentBytes). Recon, short for reconnaissance, means looking around a system to see what it is made of before trying anything. A subdomain is a name that sits under a main domain, so tamsapi.gsa.gov is a subdomain of gsa.gov.
Once one such route is found, the fastest confirmation is to request it with no cookies at all and see whether a record comes back. The researcher showed that the unauthenticated response contained personal and corporate details and that the referenced attachment could also be downloaded.
A note on scope: the report gives no information about how the identifiers were first obtained, how many records exist, or what the attachments contained.
Glossary
- API: a way for one piece of software to ask another for data or actions, like a waiter carrying orders between a customer and a kitchen.
- Endpoint: one specific address on a server that answers one specific kind of request.
- URL: the address you type or click to reach a page or endpoint.
- Host: the server name in a URL, such as
tamsapi.gsa.gov. - Path: the part of a URL after the host that points to a particular route on the server.
- Subdomain: a name under a main domain, such as
tamsapiundergsa.gov. - Identifier (ID): a label, here a number, that picks out one record among many.
- Sequential: following one another in order, 1, 2, 3, so neighbours can be guessed.
- Enumerable: able to be walked through or listed one value at a time.
- IDOR (Insecure Direct Object Reference): a flaw where a record is named directly in a request and handed over without checking whether the requester is allowed to see it.
- Authentication: proving who you are, usually by logging in.
- Authorisation: checking that you, specifically, are allowed to do this particular thing.
- Session: the state of being logged in, kept alive by data the browser sends with each request.
- Cookie: a small piece of data a browser stores and sends back to a site, often used to recognise a logged-in session.
- Token: a string of characters that acts as proof of identity or permission, like a wristband at an event.
- JWT (JSON Web Token): a token that carries identity and role information and is signed by the server so it cannot be forged.
- Role: a label describing what a user is allowed to do, such as administrator.
- Admin role: the role that grants administrative powers, including reviewing registrations.
- Dashboard: a web page that shows data and controls for a particular job, here reviewing pending registrations.
- Attachment: a file uploaded with a request, such as a supporting document.
- Bytes: the raw data that makes up a file.
- Mitigation: a change that removes or reduces a security problem.
- Recon (reconnaissance): looking around a system to learn its structure before testing it.
- Bypassable: able to be got around, said of a check that exists but can be defeated.
- Low-privileged: an ordinary account with the fewest permissions.
- Scope: the boundary of what a test or report covers.