Unrestricted access to quiesce functionality in dss.api.playstation.com REST API leads to unavailability of application
The application state endpoint accepted a PUT request that put the application into a quiesced state without any authorisation check. An attacker could repeatedly send this request to make the application return 502 errors and stay unavailable for an extended period.
- Triaged in 44 hours
- Fixed in 9 days
- Paid in 7 days
- Disclosed after 6 months
Summary by the program
Report Summary
Unrestricted access to the quiesce function via a PUT request to https://dss.api.playstation.com/api/application/state makes the application unreachable for an uncertain amount of time.
Steps To Reproduce
[Reproduction method #1]
- Burp Suite is the program required for the following method of reproduction
- Any OS platform can be used to reproduce this bug
-
Using Burp Suite, go to Proxy tab -> Intercept tab. On this pane, click on Open Browser to launch the embedded chromium browser.
-
In the chromium browser address bar, enter: https://dss.api.playstation.com/api/application/state
-
In Burp Suite, go to Proxy tab -> HTTP history and in this window pane, click on the request so that it is highlighted and press keys:
CTRL+R -
Click on the tab Repeater in Burp Suite and in the left pane labeled Request, omit the word GET and type PUT so that the first line now looks like this:
PUT /api/application/state HTTP/1.1
- Click on the first of the last two empty lines in the request and type:
Content-Type: application/json. On the last of the empty lines type:Content-Length:with a space at the end and leave this value to be filled by Burp Suite. Press ENTER twice so that two empty lines remain. - On the last empty line of the pair type the following JSON name/value pair:
{"appState":"quiesce"} - The request should appear like this: Click Send.
Within as low as 15 seconds, on refresh or on visitation to another path of the application e.g. https://dss.api.playstation.com/api/application.wadl , the application should return a 502 Bad Gateway error response.
[Reproduction method #2]
- Firefox browser is the program required for the following method of reproduction
- Any OS platform can be used to reproduce this bug
-
In the Firefox browser address bar, enter: https://dss.api.playstation.com/api/application/state
-
Once the page has loaded, press the key combination:
CTRL+SHIFT+Eto access the Network tool and click on the button labeled Reload. -
Once the Network view is populated with the GET request the browser sent, click on its entry so that it is highlighted and right-click to open a context menu and click on Edit and Resend.
-
In New Request editor that opened on the right end of the Network window, perform the following edits:
- In the box labeled Method change GET to PUT
- at the end of the Request Headers box, add the following lines:
Content-Type: application/jsonandContent-Length: 22 - In the box labeled Request Body box enter:
{"appState":"quiesce"}
- The request should look like this: Click Send.
Within as low as 15 seconds, on refresh or on visitation to another path of the application e.g. https://dss.api.playstation.com/api/application.wadl , the application should return a 502 Bad Gateway error response. +-+-+
Supporting Material/References
- Burp-Step1.png, Burp-Step2.png, Burp-Step3.png
- Firefox-Step1.png, Firefox-Step2.png, Firefox-Step3.png
- impact.png
Impact
No authorization for /api/application/state allows an attacker to disrupt the availability of the application in a sustained manner for an undisclosed amount of time through multiple PUT requests for quiescence. This affected host was unavailable for over an hour at the start of today starting at around 10:40 AM CDT UTC-5 and persisting past 11:45 CDT UTC-5 the last time I performed the request.
[7:07 PM UTC-5] I tested Reproduction method #2 and 502 response was received.
Context
The target is the PlayStation REST API surface under *.api.playstation.com. The specific host involved is dss.api.playstation.com, and the feature in question is the application state endpoint at /api/application/state. The report describes a quiesce application state: a control that, when applied, makes the application unreachable. The endpoint accepts a JSON body naming the desired state, and the report shows that a PUT request carrying {"appState":"quiesce"} is enough to take the application down.
The weakness is classified as missing authorization, with a high severity and a CVSS score of 7.5. The report was disclosed on 30 March 2021 and a bounty of 1000.00 USD was paid.
Setup
No account, role or credential is needed. The report states that any OS platform can be used, and it gives two reproduction methods with different tools:
- Method #1 requires Burp Suite, using its embedded Chromium browser, the Proxy intercept and HTTP history, and the Repeater.
- Method #2 requires the Firefox browser, using the Network tool and its Edit and Resend feature.
No versions are given for either tool. The only precondition is network access to https://dss.api.playstation.com/api/application/state.
Finding it
The researcher identified that the application state endpoint can be reached without authorization and that it accepts a state change through a PUT request. The state value quiesce is what makes the application unreachable. The report does not describe how the endpoint was first discovered; it presents the behaviour as an unrestricted access to the quiesce function.
Exploitation
Method #1: Burp Suite
- In Burp Suite, go to Proxy then Intercept, and click Open Browser to launch the embedded Chromium browser.
- In the Chromium address bar, enter:
https://dss.api.playstation.com/api/application/state
- In Burp Suite, go to Proxy then HTTP history, click the request so it is highlighted, and press
CTRL+R. - Open the Repeater tab. In the left pane labelled Request, replace the word
GETwithPUTso the first line reads:
PUT /api/application/state HTTP/1.1
- Click the first of the last two empty lines in the request and add
Content-Type: application/json. On the last empty line addContent-Length:with a trailing space, leaving the value to be filled by Burp Suite. Press ENTER twice so two empty lines remain. - On the last empty line of the pair, add the JSON name/value pair:
{"appState":"quiesce"}
- The request should appear like this, then click Send:
PUT /api/application/state HTTP/1.1
Content-Type: application/json
Content-Length: 22
{"appState":"quiesce"}
The PUT method asks the server to set the application state rather than fetch the page. The Content-Type: application/json header tells the server the body is JSON, and the Content-Length header (left for Burp to fill) frames the body. The body itself names the target state, quiesce.
Within as low as 15 seconds, on refresh or on visiting another path of the application, for example:
https://dss.api.playstation.com/api/application.wadl
the application returns a 502 Bad Gateway error response.
Method #2: Firefox
- In the Firefox address bar, enter:
https://dss.api.playstation.com/api/application/state
- Once the page has loaded, press
CTRL+SHIFT+Eto open the Network tool and click Reload. - Once the Network view shows the
GETrequest the browser sent, click its entry so it is highlighted, right-click to open the context menu, and click Edit and Resend. - In the New Request editor on the right of the Network window, make these edits:
- In the Method box, change
GETtoPUT. - At the end of the Request Headers box, add
Content-Type: application/jsonandContent-Length: 22. - In the Request Body box, enter:
- In the Method box, change
{"appState":"quiesce"}
- The request should look like this, then click Send:
PUT /api/application/state HTTP/1.1
Content-Type: application/json
Content-Length: 22
{"appState":"quiesce"}
As with method #1, within as low as 15 seconds, on refresh or on visiting another path such as https://dss.api.playstation.com/api/application.wadl, the application returns a 502 Bad Gateway error response.
Root cause
There is no authorization check on /api/application/state. The endpoint accepts a PUT that sets the application state to quiesce, and nothing in the request path stops an unauthenticated caller from doing so. The report frames this as missing authorization on the state endpoint, which is what allows the state change to be applied by anyone who can reach the host. The report does not describe the server-side implementation, so the exact location of the missing check is not stated.
Impact
Because /api/application/state has no authorization, an attacker can disrupt the availability of the application in a sustained manner for an undisclosed amount of time by sending multiple PUT requests for quiescence. The affected host was unavailable for over an hour at the start of the day, starting at around 10:40 AM CDT UTC-5 and persisting past 11:45 CDT UTC-5 the last time the researcher performed the request. At 7:07 PM UTC-5 the researcher tested reproduction method #2 and received a 502 response.
The impact is availability only: the application becomes unreachable, and the duration is not fixed by the report.
Fix
Variants to test
- Look for other state-changing endpoints on the same API surface that accept a
PUTwith a JSON body naming a state, and try setting values that reduce availability. A positive result is a502 Bad Gatewayon refresh or on another path within a short time. - Try the same
PUTwith{"appState":"quiesce"}against other hosts under*.api.playstation.com. A positive result is the same502behaviour on the other host. - Check whether the endpoint accepts other state values besides
quiesce. A positive result is any state change that alters availability or behaviour without authorization. - Repeat the request several times to see whether the effect persists. A positive result is the host staying unavailable past the first request, as the report describes for the affected host.
Hunting notes
This kind of bug tends to hide on operational or administrative endpoints that change application state, especially ones reachable without a session. During recon, a signal is an endpoint whose name suggests state control, such as /api/application/state, and a GET that returns something the browser can resend. The report shows the path from a normal GET to a PUT with a JSON body, which is a cheap thing to try on any state endpoint you find.
The report records that the application became unreachable within as low as 15 seconds, that another path (/api/application.wadl) also returned 502, and that the host stayed unavailable for over an hour. Recording timestamps, as the report does, makes the availability impact concrete.
What happened, in plain words
PlayStation runs a set of web services that other software talks to over the internet. One of those services, at dss.api.playstation.com, has a control that can put the application into a state called quiesce.. In this report the state is called quiesce, which is an old word meaning "to make quiet". When that state is applied, the application becomes unreachable and returns a 502 Bad Gateway error response.
The problem is that this control had no lock on it. Anyone who could reach the address could send the instruction to pause the application, without logging in, without an account, without any permission. The researcher showed two ways to send that instruction, one with a tool called Burp Suite and one with the Firefox browser alone, and in both cases the application became unreachable within as little as 15 seconds. The report was rated high severity with a CVSS score of 7.5, disclosed on 30 March 2021, and a bounty of 1000.00 USD was paid.
Before the steps, a few ideas that come up again and again below.
- API: an API (Application Programming Interface) is the part of a service that other programs talk to, rather than the part a person clicks on. A useful comparison is a restaurant: the menu and the waiter are the API, the kitchen is the service. You do not walk into the kitchen yourself; you tell the waiter what you want in a fixed format, and food comes back. Here the "waiter" is a web address that accepts requests and returns data.
- REST API: a common style for such APIs where each thing you can act on has its own address (a URL) and you use standard verbs to say what you want to do with it. These methods are often called HTTP verbs.
- HTTP method: the verb at the start of every web request.
GETmeans "give me this", and it is what your browser sends when you type an address and press Enter.PUTasks the server to replace the target resource with what is being sent. The difference matters enormously here: aGETonly reads, aPUTchanges something. - Endpoint: one specific address on the API, for example
/api/application/state. Think of it as one particular counter in the restaurant. - JSON: a simple text format for structured data, made of names and values in curly braces, like
{"name":"value"}. It is how the request tells the server which state it wants. - Header: extra lines of information attached to a request, separate from the body. They describe things like what format the body is in.
- Request body: the payload carried inside the request, as opposed to the address and headers around it.
- Missing authorization: the vulnerability class here. Authorization means checking whether the person making a request is allowed to do this particular thing. Missing authorization means the check is simply absent, so the server does what it is told no matter who asks. The comparison is a staff-only door with no lock: the sign says employees only, but nothing stops anyone walking through.
- Availability: one of the three classic goals of security (confidentiality, integrity, availability). Availability means the service is up and answering. This bug attacks only availability: nothing secret is stolen, nothing is altered in the data, the service is just knocked offline.
- 502 Bad Gateway: an error a server returns when it is acting as a front door for another server behind it and that server behind it is not answering. In everyday terms, the receptionist is at the desk but cannot reach anyone in the back office.
Context
The target is the PlayStation REST API surface under *.api.playstation.com. The asterisk is a wildcard meaning "any host name ending in this", so the report covers a family of hosts, not one machine. The specific host involved is dss.api.playstation.com, and the feature in question is the application state endpoint at /api/application/state.
The report describes a quiesce application state: a control that, when applied, makes the application unreachable. The endpoint accepts a JSON body naming the desired state, and the report shows that a PUT request carrying {"appState":"quiesce"} is enough to take the application down.
The weakness is classified as missing authorization, with a high severity and a CVSS score of 7.5. CVSS is a standard scoring system for how serious a vulnerability is; 7.5 sits in the high band. The report was disclosed on 30 March 2021 and a bounty of 1000.00 USD was paid.
Setup
No account, role or credential is needed. That sentence is the heart of the bug: normally a control that can switch an application off would sit behind a login, and here it does not. The report states that any OS platform can be used, meaning the operating system of your computer does not matter, and it gives two reproduction methods with different tools:
- Method #1 requires Burp Suite, using its embedded Chromium browser, the Proxy intercept and HTTP history, and the Repeater.
- Method #2 requires the Firefox browser, using the Network tool and its Edit and Resend feature.
No versions are given for either tool. The only precondition is network access to https://dss.api.playstation.com/api/application/state, in other words an ordinary internet connection.
A word on the tools before the steps. Burp Suite is a program that sits between your browser and the website and lets you look at, pause and edit every request before it is sent. Its embedded Chromium browser is a browser built into Burp so that all its traffic passes through Burp automatically. The Repeater is a Burp pane where you can take a captured request, change it, and send it again as many times as you like. Firefox's Network tool does something similar from inside the browser: it lists every request the page made, and Edit and Resend lets you change one and fire it again.
Finding it
The researcher identified that the application state endpoint can be reached without authorization and that it accepts a state change through a PUT request. The state value quiesce is what makes the application unreachable. The report does not describe how the endpoint was first discovered; it presents the behaviour as an unrestricted access to the quiesce function.
Exploitation
Method #1: Burp Suite
- In Burp Suite, go to Proxy then Intercept, and click Open Browser to launch the embedded Chromium browser. The reason for using this browser rather than your normal one is that everything it sends is visible to Burp, so the request you are about to make can be captured and edited.
- In the Chromium address bar, enter:
https://dss.api.playstation.com/api/application/state
This is a plain visit to the endpoint, the same as typing an address into any browser. It sends a GET, which only asks the server to show the current state. Nothing harmful happens yet; the point is to produce a real request that Burp can record, so you have a template to modify.
- In Burp Suite, go to Proxy then HTTP history, click the request so it is highlighted, and press
CTRL+R. HTTP history is the log of everything that passed through Burp.CTRL+Rsends the highlighted request over to the Repeater, the pane where you can edit and resend it. - Open the Repeater tab. In the left pane labelled Request, replace the word
GETwithPUTso the first line reads:
PUT /api/application/state HTTP/1.1
Line by line: PUT is the verb, now asking the server to set something rather than read it. /api/application/state is the endpoint, the specific counter being addressed. HTTP/1.1 is the version of the protocol being spoken. Changing the verb to PUT and adding the body is the whole trick: the server applies the state change and does not ask who is sending it.
-
Click the first of the last two empty lines in the request and add
Content-Type: application/json. On the last empty line addContent-Length:with a trailing space, leaving the value to be filled by Burp Suite. Press ENTER twice so two empty lines remain.Content-Type: application/jsontells the server "the body I am about to send is JSON, so parse it that way".Content-Lengthsays how many bytes the body is; leaving it blank lets Burp count for you, which avoids a mismatch. The empty line after the headers is the separator that marks where headers end and the body begins. -
On the last empty line of the pair, add the JSON name/value pair:
{"appState":"quiesce"}
This is the instruction itself. appState is the name of the setting, and quiesce is the value being requested. In plain words: "set the application state to paused".
- The request should appear like this, then click Send:
PUT /api/application/state HTTP/1.1
Content-Type: application/json
Content-Length: 22
{"appState":"quiesce"}
Reading it as a whole: the first line says what to do and where. The next two lines describe the body. The blank line separates them. The last line is the body, and 22 is simply the number of characters in it. Clicking Send delivers this to the server.
The PUT method changes the semantics from reading the state to setting it. The Content-Type: application/json header tells the server the body is JSON, and the Content-Length header (left for Burp to fill) frames the body. The body itself names the target state, quiesce.
Within as low as 15 seconds, on refresh or on visiting another path of the application, for example:
https://dss.api.playstation.com/api/application.wadl
the application returns a 502 Bad Gateway error response. The .wadl address is another path of the same application, used to check whether the whole application is down. Trying it is a way of checking that the whole application is down, not just the one page you were on. A 502 means the front door is still there but the service behind it is not answering, which is exactly what pausing the application would cause.
Method #2: Firefox
This second method exists to show the same bug can be triggered with nothing but a normal browser, no specialist tool installed. That matters for judging how easy the attack is.
- In the Firefox address bar, enter:
https://dss.api.playstation.com/api/application/state
Again, an ordinary visit, which sends a GET and gives you a real request to work from.
- Once the page has loaded, press
CTRL+SHIFT+Eto open the Network tool and click Reload. The Network tool is the list of every request the page made. Reloading makes sure the request you care about is in that list. - Once the Network view shows the
GETrequest the browser sent, click its entry so it is highlighted, right-click to open the context menu, and click Edit and Resend. This opens a copy of the request in an editor, so you can change it and send it again without retyping anything. - In the New Request editor on the right of the Network window, make these edits:
- In the Method box, change
GETtoPUT. Same reasoning as before: read becomes set. - At the end of the Request Headers box, add
Content-Type: application/jsonandContent-Length: 22. The first says the body is JSON; the second states the body is 22 bytes long, which matches the payload exactly. - In the Request Body box, enter:
- In the Method box, change
{"appState":"quiesce"}
This is the same instruction as in method #1: set the application state to paused.
- The request should look like this, then click Send:
PUT /api/application/state HTTP/1.1
Content-Type: application/json
Content-Length: 22
{"appState":"quiesce"}
It is identical in substance to the Burp version. The verb says set, the endpoint says where, the headers describe the body, and the body carries the value quiesce.
As with method #1, within as low as 15 seconds, on refresh or on visiting another path such as https://dss.api.playstation.com/api/application.wadl, the application returns a 502 Bad Gateway error response.
Root cause
There is no authorization check on /api/application/state. The endpoint accepts a PUT that sets the application state to quiesce, and nothing in the request path stops an unauthenticated caller from doing so. The report frames this as missing authorization on the state endpoint, which is what allows the state change to be applied by anyone who can reach the host. The report does not describe the server-side implementation, so the exact location of the missing check is not stated.
To put it in everyday terms: the switch that turns the lights off is on the outside wall of the building, with no keyhole and no guard.
Impact
Because /api/application/state has no authorization, an attacker can disrupt the availability of the application in a sustained manner for an undisclosed amount of time by sending multiple PUT requests for quiescence. The affected host was unavailable for over an hour at the start of the day, starting at around 10:40 AM CDT UTC-5 and persisting past 11:45 CDT UTC-5 the last time the researcher performed the request. At 7:07 PM UTC-5 the researcher tested reproduction method #2 and received a 502 response.
The impact is availability only: the application becomes unreachable, and the duration is not fixed by the report.
Fix
In plain words: check who is asking before flipping the switch, and refuse anyone who is not allowed to.
Variants to test
These are follow-up ideas in the same spirit, for anyone learning from this report. Each one names what a positive result would look like.
- Look for other state-changing endpoints on the same API surface that accept a
PUTwith a JSON body naming a state, and try setting values that reduce availability. A positive result is a502 Bad Gatewayon refresh or on another path within a short time. - Try the same
PUTwith{"appState":"quiesce"}against other hosts under*.api.playstation.com. A positive result is the same502behaviour on the other host. - Check whether the endpoint accepts other state values besides
quiesce. A positive result is any state change that alters availability or behaviour without authorization. - Repeat the request several times to see whether the effect persists. A positive result is the host staying unavailable past the first request, as the report describes for the affected host.
Hunting notes
This kind of bug tends to hide on operational or administrative endpoints that change application state, especially ones reachable without a session. A session is what a login gives you: a way for the server to recognise you on later requests. An endpoint that works without one is worth a second look, because it means the server is not checking who you are at all.
During recon, a signal is an endpoint whose name suggests state control, such as /api/application/state, and a GET that returns something the browser can resend. The report shows the path from a normal GET to a PUT with a JSON body, which is a cheap thing to try on any state endpoint you find: visit it, capture the request, change the verb, add the body, send.
The report records that the application became unreachable within as low as 15 seconds, that another path (/api/application.wadl) also returned 502, and that the host stayed unavailable for over an hour. Recording timestamps, as the report does, makes the availability impact concrete. A vague claim that "the site went down" is much weaker than a note saying it was down from 10:40 to past 11:45.
Glossary
- API: the part of a service that other programs talk to, with fixed addresses and formats, rather than the part a person clicks on.
- REST API: a style of API where each thing you can act on has its own URL and standard HTTP methods say what to do with it.
- HTTP method (verb): the word at the start of a request, such as
GET(read) orPUT(set). - GET: the method a browser uses when you visit an address; it only asks to read something.
- PUT: a method that asks the server to set a value to what you send.
- Endpoint: one specific address on an API, such as
/api/application/state. - Host: one named machine or service on the internet, such as
dss.api.playstation.com. - Wildcard (
*): a symbol meaning "anything here", so*.api.playstation.commeans every host ending in that name. - JSON: a text format for structured data made of names and values in curly braces.
- Header: an extra line of information attached to a request, separate from the body.
- Content-Type: a header saying what format the body is in, here
application/json. - Content-Length: a header saying how many bytes long the body is.
- Request body: the payload carried inside a request, as opposed to the address and headers.
- Quiesce: to make quiet; here, an application state that pauses the service so it stops answering.
- Missing authorization: a vulnerability where the server does not check whether the caller is allowed to perform an action, so anyone can.
- Unauthenticated: not logged in, with no account or credential presented.
- Session: the state a server keeps to recognise you after you log in.
- Availability: the security goal of a service being up and answering requests.
- 502 Bad Gateway: an error returned when a front-end server cannot get an answer from the service behind it.
- CVSS: a standard scoring system for the severity of a vulnerability; 7.5 is in the high band.
- Severity: a rough rating of how serious a vulnerability is, here high.
- Bounty: a payment made to a researcher for reporting a valid vulnerability.
- Burp Suite: a tool that sits between your browser and a website so you can capture, edit and resend requests.
- Repeater: the Burp pane where a captured request can be edited and sent again.
- HTTP history: Burp's log of every request that passed through it.
- Firefox Network tool: the built-in panel listing every request a page made, with an Edit and Resend option.
- WADL: a description file that lists an API's endpoints, used here as a second address to check whether the whole application is down.
- Recon: the exploratory phase of looking at a target to find interesting endpoints before testing them.