Bypassed the subscription and got the certification
The subscription status check relied on a client-side response value that the user could change. By altering the response from '0' to '1', the attacker bypassed the subscription requirement and accessed the certification test.
infosecwriteups.com
Published on infosecwriteups.com
Bug Bounty
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
The target was a learning platform, referred to in the write-up as test.com. The platform has a certification section: a tab called certification lists a range of courses, and each course has a certification test that a user can attend. The feature under test was the subscription check that decides whether a user is allowed to attend a certification test. The write-up does not name the real site, because the author says other issues (XSS and IDOR) were also present there.
Setup
The author does not describe any account creation, role assignment or special tooling beyond an intercepting proxy. The request shown was captured with a browser running Firefox 78.0 on Linux x86_64, and the platform was an ASP.NET application behind Microsoft IIS 10.0 with Plesk. The only precondition visible in the report is a logged-in session: the captured request carries a Cookie header, and the body contains a UserID value.
Finding it
Browsing the certification page showed a list of available courses.

The author picked the Java Programming course and clicked the Java certification. The site asked the user to attend the test, so the attend button was clicked, and the site responded that a subscription was needed.

That response is the interesting part: the subscription status came back as a JSON value in the response to a status-check request, and the author was able to change it before the browser used it.
Exploitation
Step 1: Intercept the attend request
With the proxy in place, the request triggered by the attend action was captured:
POST /Service/Users.aspx/UserSubscriptionStatus HTTP/1.1
Host: www.test.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/json; charset=utf-8
X-Requested-With: XMLHttpRequest
Content-Length: 17
Origin: https://www.test.com
Connection: close
Referer: https://www.test.com/certifications/java-programming
Cookie: cookies;
{
UserID:'210125'
}
The endpoint is an ASP.NET page method (/Service/Users.aspx/UserSubscriptionStatus) called over AJAX, as shown by X-Requested-With: XMLHttpRequest and the JSON content type. The body carries only the UserID, so the server is being asked, in effect, whether that user has an active subscription. The Referer points at the Java programming certification page, confirming which course the check belongs to. The Cookie header is the session, and the UserID value is the identifier the client sends for the user.
Step 2: Read the response
The server answered with a normal 200 and a very small JSON body:
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET
X-Powered-By-Plesk: PleskWin
Date: Sat, 23 Oct 2021 07:21:46 GMT
Connection: close
Content-Length: 9
{"d":"0"}
The {"d":"0"} body is the subscription status: 0 means no subscription. The d wrapper is the standard shape ASP.NET uses when serialising the return value of a page method, so the actual decision is a single string value inside it.
Step 3: Change the value
The author changed the d value from "0" to "1" in the response and forwarded it. The client accepted the modified answer, and the author reports that the subscription was bypassed.

No server-side change was made and no request was replayed with different parameters: the only modification was to the response body on its way back to the browser.
Root cause
The subscription status was delivered to the client as a plain value in the response, and changing that value bypassed the subscription check. Because the value is a string in a JSON body, changing it is trivial for anyone with an intercepting proxy. The report does not show the client-side code, so the exact place where the value is read is not visible; the behaviour is consistent with the front end trusting the status response rather than the back end re-checking entitlement when the test is served.
Impact
An authenticated user without a subscription could bypass the subscription check by editing one character in a response. The author notes that other XSS and IDOR issues were also present on the same site, but does not detail them.
Fix
The fix implied by the finding is to enforce the subscription check on the server at the point where the test is started and where its content is served, so that the client's copy of the status value is irrelevant. The status endpoint should also be reviewed so that the subscription answer cannot be changed by the client.
Variants to test
- Other boolean status endpoints. Look for AJAX calls that return a single flag (
{"d":"0"},{"success":false},{"subscribed":0}) and change it in the response. A positive result is the UI unlocking a paid feature without any server-side change. - Numeric and string forms. Try
"1",1,trueand"true"in turn, since the client may compare loosely. A positive result is any form that unlocks the feature. - User identifier in the body. Where the request carries a
UserIDor similar, substitute another account's identifier and observe whether the status returned belongs to that account. A positive result is another user's subscription state being disclosed or reused. - Direct access after the check. With the response left untouched, request the test content or start endpoint directly. A positive result is the content being served without a subscription, which shows the check is only cosmetic.
- Cached or replayed responses. Re-send the modified response on a fresh session to see whether the client stores the unlocked state. A positive result is the feature staying unlocked after reload without the proxy.
What happened, in plain words
A security researcher was looking for a website to test. They found an online learning platform, which they call test.com in the write-up so the real name stays private. The platform has a certification section, and attending a certification test required a subscription.
The researcher opened the Java Programming course and clicked the button to attend its certification test. The site said a subscription was needed. Instead of paying, the researcher used a tool that sits between the browser and the website and lets you read and edit the traffic going both ways. They looked at the message the site sent back when it checked whether the user had a subscription. That message contained a tiny piece of data, {"d":"0"}, where 0 means "no subscription". The researcher changed the 0 to a 1 before the browser received it, and the subscription was bypassed.
Nothing on the server changed. The browser simply believed the edited answer. This kind of flaw is often classed as insecure design: the subscription status was sent to the browser as a value the visitor could edit.
The author also mentions that the same site had other problems, called XSS and IDOR, but does not describe them. That is why the real site name is not given.
The platform and the feature
A learning platform is a website where you watch lessons and take tests. This one has a tab called certification. On that page there is a list of courses, and each course has a certification test you can attend.
The feature being tested is the subscription check: the piece of the site that decides whether a visitor is allowed to attend a paid test. A subscription is a paid plan that unlocks content for a period of time.

The screenshot shows the certification page with the list of available courses.
What tools and setup were used
The author does not describe creating an account, choosing a role, or installing anything special beyond an intercepting proxy. A proxy is a program that sits between your browser and the website. Every request your browser sends passes through it, and every response coming back passes through it too. The proxy can pause a message, show it to you, let you change it, and then send it on. Think of it as a postal worker who opens your letters, lets you rewrite them, and then delivers them.
The captured request shows the browser was Firefox 78.0 on Linux. The server was a Microsoft web server, IIS 10.0, running an ASP.NET application with a control panel called Plesk. You do not need to know these products to follow the story; they only tell us what kind of software was involved.
The one thing the report shows you need is to be logged in. The captured request carries a Cookie header, and its body contains a UserID. A cookie is a small piece of text the website stores in your browser after you log in, and the browser sends it back with every request so the site knows who you are. A UserID is a number or string that identifies a particular user account.
Finding the problem
The author browsed the certification page and saw the list of courses. They picked the Java Programming course and clicked the Java certification. The site asked the user to attend the test, so the attend button was clicked, and the site replied that a subscription was needed.

The screenshot shows the message telling the user a subscription is required.
That message is the clue. The site sent a small answer back to the browser saying, in effect, "this user has no subscription", and the author could change that answer before the browser used it.
Step 1: Capture the attend request
With the proxy running, the author clicked attend and captured the request the browser sent:
POST /Service/Users.aspx/UserSubscriptionStatus HTTP/1.1
Host: www.test.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/json; charset=utf-8
X-Requested-With: XMLHttpRequest
Content-Length: 17
Origin: https://www.test.com
Connection: close
Referer: https://www.test.com/certifications/java-programming
Cookie: cookies;
{
UserID:'210125'
}
Line by line:
POST /Service/Users.aspx/UserSubscriptionStatus HTTP/1.1is the first line of an HTTP request.POSTis the method, meaning "I am sending data to the server". The path/Service/Users.aspx/UserSubscriptionStatusis the address of the piece of code being called.HTTP/1.1is the version of the language browsers and servers use to talk.Host: www.test.comsays which website the request is for. One server can host many sites, so this tells it which one.User-Agent: ...identifies the browser and operating system. Here it is Firefox 78.0 on 64-bit Linux.Accept: application/json, text/javascript, */*; q=0.01tells the server what kinds of answer the browser can handle.application/jsonis a common data format made of curly brackets, names and values.Accept-Language: en-US,en;q=0.5says the browser prefers English.Accept-Encoding: gzip, deflatesays the browser can accept compressed answers to save bandwidth.Content-Type: application/json; charset=utf-8says the data being sent in the body is JSON, encoded in UTF-8 (a way of storing text).X-Requested-With: XMLHttpRequestis a marker that says this request was made by JavaScript running inside the page, not by you typing a new address in the address bar. Such background requests are often called AJAX.Content-Length: 17is the size of the body in bytes.Origin: https://www.test.comsays which site the JavaScript that made the request came from.Connection: closeasks the server to close the connection after answering.Referer: https://www.test.com/certifications/java-programmingsays which page the request came from. Here it is the Java programming certification page, which confirms which course the check belongs to.Cookie: cookies;is where the browser sends the session cookie. The report shows the wordcookiesin place of the real value.- The blank line separates the headers from the body.
- The body is
{ UserID:'210125' }: a JSON object with one field,UserID, holding the value210125. This is the identifier the browser sends for the user. The server is being asked, in effect, "does this user have an active subscription?".
Step 2: Read the response
The server answered with a normal success code and a very small body:
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET
X-Powered-By-Plesk: PleskWin
Date: Sat, 23 Oct 2021 07:21:46 GMT
Connection: close
Content-Length: 9
{"d":"0"}
Line by line:
HTTP/1.1 200 OKis the status line.200means the request succeeded. Other common codes are404for not found and403for forbidden.Cache-Control: private, max-age=0tells browsers and caches not to store this answer for reuse.Content-Type: application/json; charset=utf-8says the answer is JSON text.Server: Microsoft-IIS/10.0names the web server software.X-Powered-By: ASP.NETandX-Powered-By-Plesk: PleskWinare extra headers that reveal the application framework and control panel. Headers starting withX-are custom ones.Date: Sat, 23 Oct 2021 07:21:46 GMTis when the server produced the answer.Connection: closemeans the connection will be closed after this answer.Content-Length: 9is the size of the body in bytes.- The body is
{"d":"0"}. This is the subscription status:0means no subscription. Thedwrapper is the standard shape ASP.NET uses when it returns the result of a page method, so the real decision is a single string value inside it.
Step 3: Change the value
The author changed the d value from "0" to "1" in the response and let it continue to the browser. The browser accepted the edited answer, and the author reports that the subscription was bypassed.

The screenshot shows the edited response with the value changed to 1.
No change was made on the server, and no request was sent again with different data. The only edit was to the answer on its way back to the browser.
Why it worked
The subscription state was sent to the browser as a plain value, and changing that value bypassed the subscription check. A value inside a JSON body is trivial to change for anyone with a proxy.
The report does not show the page's code, so we cannot see the exact line where the value is read. The behaviour fits a front end that trusts the status answer, while the back end does not re-check entitlement when the test is served.
What the impact was
A logged-in user without a subscription could bypass the subscription check by editing one character in a response. The author notes that other XSS and IDOR issues were also present on the same site but does not detail them. The report does not say how the platform checks certification results afterwards, so whether the bypass alone produces a valid certification is not established here.
How to fix it
The fix the finding points to is to enforce the subscription check on the server, at the point where the test is started and where its content is served, so that the browser's copy of the status value no longer matters. The status endpoint should also be reviewed so that the subscription answer cannot be changed by the client.
Other things to try
- Other yes/no status endpoints. Look for background requests that return a single flag such as
{"d":"0"},{"success":false}or{"subscribed":0}and change it in the response. A positive result is the page unlocking a paid feature without any server-side change. - Different forms of the value. Try
"1",1,trueand"true"in turn, because the page's code may compare loosely. A positive result is any form that unlocks the feature. - User identifier in the body. Where the request carries a
UserIDor similar, put another account's identifier in its place and see whether the status returned belongs to that account. A positive result is another user's subscription state being revealed or reused. - Direct access after the check. Leave the response untouched and request the test content or start address directly. A positive result is the content being served without a subscription, which shows the check is only for show.
- Cached or replayed responses. Send the edited response again on a fresh session to see whether the browser stores the unlocked state. A positive result is the feature staying unlocked after a reload without the proxy.
Glossary
- AJAX: a way for a web page to talk to the server in the background, without reloading the whole page.
- ASP.NET: a framework from Microsoft for building websites, often written in C#.
- Body: the part of an HTTP message that carries the actual data, after the headers.
- Cache: a place where copies of answers are stored so they can be reused without asking the server again.
- Certification: here, a paid test on the learning platform that a user can attend after subscribing.
- Cookie: a small piece of text a website stores in your browser, sent back with each request so the site can recognise you, for example after login.
- Content-Type: a header that says what format the data is in, such as JSON or HTML.
- Entitlement: the right to use a paid feature, based on a subscription or purchase.
- Header: a name and value line in an HTTP message that carries information about the request or response.
- Host: the header that names which website the request is for.
- HTTP: the language browsers and servers use to exchange requests and responses.
- IDOR: Insecure Direct Object Reference, a flaw where changing an identifier in a request gives access to another user's data.
- IIS: Microsoft's web server software.
- Insecure design: a flaw where the way a feature was planned lets users do things they should not be allowed to do, rather than a coding mistake in one line.
- Intercepting proxy: a tool that sits between browser and server, letting you read, pause and edit traffic in both directions.
- JSON: a text format for data, built from curly brackets, names and values, such as
{"d":"0"}. - Origin: a header that says which site the request came from.
- Plesk: a control panel used to manage websites and servers.
- POST: an HTTP method used to send data to the server.
- Referer: a header that says which page the request came from.
- Request: the message a browser sends to a server asking for something.
- Response: the message a server sends back.
- Session: the period during which a site remembers who you are, usually kept alive by a cookie.
- Status code: a number in the response that says how it went, such as
200for success. - Subscription: a paid plan that unlocks content for a period of time.
- User-Agent: a header that identifies the browser and operating system.
- UserID: a value that identifies a particular user account.
- UTF-8: a common way of storing text as bytes.
- XSS: Cross-Site Scripting, a flaw where an attacker can make a site run their own code in another user's browser.