How I Bypassed Netflix Profile Lock?
The Netflix profile lock, a four-digit PIN meant to restrict access to a profile, could be bypassed by manipulating the server's response. An attacker who knew one profile PIN could capture the success response and replay it for any other profile, gaining access without knowing that profile's PIN.
Published on infosecwriteups.com
My name is Krishnadev P Melevila, To know more about me, Just search “Who is Krishnadev P Melevila” On Google or Ask your Google Assistant.
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
Netflix accounts can hold several profiles under one subscription. Each profile can be protected with a four digit PIN, the profile lock. When someone signs in to the main account, Netflix asks "Who is watching?" and shows the list of profiles. Selecting a locked profile prompts for its PIN before the browse section opens.

Krishnadev P Melevila reported a logic flaw in that flow: the PIN check is enforced on the client side by inspecting the server response, so a user who knows one profile PIN can replay the success response for any other profile and get in without knowing its PIN. The report was disclosed on 27 December 2021.
Setup
- A Netflix account with multiple profiles, at least one of which has a profile lock set.
- Knowledge of at least one profile PIN on the account. In the write-up the author's own profile PIN is given as
1704. - An intercepting proxy (Burp) to capture and modify responses.
All profiles except guests and children had locks in the author's setup, and those were the ones the bypass targeted.
Finding it
The author describes the lock as a barrier that is only checked after the profile is chosen: the client sends the entered PIN, the server answers, and the client decides from that answer whether to open the profile. That design means the decision lives in a response the user's own browser receives and can rewrite. The author's question at the end of the write-up is exactly this: if the lock can be removed locally, what is the feature for?
Exploitation
Step 1: Sign in and reach the profile picker
Visit https://www.netflix.com/ and log in with the account. Netflix asks "Who is watching?" and lists the profiles, as in the screenshot above.
Step 2: Identify the locked profiles
Every profile except guests and children has a profile lock. The goal is to open one of those without its PIN.
Step 3: Capture a successful PIN response
Enter a PIN you already know, for example the author's own 1704, and intercept the response to that request in Burp. Copy the whole success response:
The response contains the status line HTTP/2 200 OK, an X-Originating-Url pointing at the profileLock endpoint under /api/shakti/v5185b692/, and the JSON body {"codeName":"S-Icarus-6.Alster","success":true}. The Set-Cookie value is redacted here.
Step 4: Replay the success response for another profile
Enter a wrong PIN for any other profile and intercept that request's response. Replace the response with the success response captured in Step 3. The client sees success: true and opens the profile, so the other user's profile is reachable without knowing its PIN.
Root cause
The bypass works by replacing the response to a wrong PIN with a captured success response. The report does not describe how the wrong-PIN response differs or how the browser uses it. Because the attacker controls their own proxy, they can substitute the body. The report does not describe any server-side session state or token that would have prevented the substitution, The report does not identify a root cause beyond the response substitution working.
Impact
Anyone who can log in to the main account and knows one profile PIN can open every other locked profile on that account, including profiles whose PIN they do not know. The precondition is significant: the attacker needs valid credentials for the account and one known PIN. The author describes the result as access to other user profiles without any authentication. Netflix's position was that the lock is only a barrier for children accessing mature content within an account, and that a local bypass is considered Won't Fix.
Fix
No fix was made. Netflix closed the report as Won't Fix, on the grounds that the feature is a parental barrier rather than a security boundary and that a local bypass does not qualify. If it were to be hardened, the PIN result would need to be enforced server-side, for example by issuing a server-side authorisation for the selected profile after a correct PIN and checking it on every request that serves that profile's content, so that a modified response body cannot grant access.
Variants to test
- Response body substitution on any client-side gate: intercept the failure response and replace it with a captured success body. A positive result is the protected view opening without the correct secret.
- Status code and body mismatch: change only the status line or only the JSON flag. A positive result is the client acting on one field while the server rejected the request.
- Replay across objects: capture a success response for object A and use it for object B of the same type. A positive result is B opening with A's response.
- Direct navigation after the gate: once the client believes the check passed, request the protected endpoint directly. A positive result is content returned without a server-side check.
- Cookie or token reuse: take any authorisation artefact set by the success response and present it for another profile. A positive result is the other profile's data being served.
Each of these tests the same underlying question: is the decision made on the server, or in the browser?
What happened, in plain words
Netflix lets one paid account hold several profiles, so a family can share a subscription and each person gets their own watchlist and recommendations. Each profile can be protected with a four digit PIN, called a profile lock. When you sign in to the main account, Netflix asks "Who is watching?" and shows the list of profiles. If you pick a locked profile, it asks for that profile's PIN before it lets you into the browse section.
Krishnadev P Melevila found a logic flaw in that flow. A logic flaw (also called a business logic flaw) is a bug where the program does what it was told, but the rules it follows are wrong or can be worked around. Nothing crashes and no code is broken; the design simply trusts something it should not. Here, the response to the PIN request travels through the user's own browser, where the user can rewrite it. So if you know one profile's PIN, you can capture the "yes, correct" answer and reuse it for any other profile, without ever knowing that profile's PIN.
The report was published on 27 December 2021. Netflix's response was that the lock is only meant as a barrier for children accessing mature content within an account, and that a bypass done locally like this is considered Won't Fix.

The pieces you need to understand first
Before the steps make sense, a few everyday ideas.
- A website and an API. When you use Netflix in a browser, two things talk to each other. The page you see (buttons, pictures, the profile picker) is one part. Behind it, the browser sends small messages to Netflix's servers asking for data, and the servers send data back. Those message exchanges are the API. Think of a restaurant: the menu and the waiter are the page, the kitchen is the server, and the API is the set of order slips that go back and forth. You never walk into the kitchen yourself; you write an order and the kitchen answers.
- A request and a response. A request is the message your browser sends ("here is a PIN, is it right?"). A response is the message that comes back ("yes" or "no"). Both are just text with a structure.
- HTTP status codes. Every response starts with a status line such as
HTTP/2 200 OK. The number is a quick verdict:200means "fine, here is your answer",403means "not allowed",404means "not found".HTTP/2is simply the version of the language the two sides are speaking. - Headers. Above the actual data, a response carries headers: labelled lines of extra information, like the return address on an envelope. They say things such as what type of data follows (
Content-Type), when it was sent (Date), and which server produced it (Server). - JSON. The actual data in the body is often JSON, a simple text format for labelled values.
{"success":true}means "the field named success has the value true". It is the digital equivalent of a form with tick boxes. - A cookie. A cookie is a small piece of text a server asks the browser to keep and send back with later requests, so the server can recognise you. It is like a wristband at an event: you show it once at the door, then staff recognise you by it. Cookies can carry login sessions, so they are sensitive.
- An intercepting proxy. A proxy is a program that sits between your browser and the internet and passes messages through. An intercepting proxy lets you pause each message, read it, and change it before letting it continue. Burp Suite is a well known tool for this. Think of a postal worker who is allowed to open your letters, rewrite them, and reseal them before delivery.
- Response manipulation. This is the attack class here: you do not break the server, you change the answer it gave before your own browser reads it. The browser then acts on the edited answer.
Setting up
To follow along you would need:
- A Netflix account with more than one profile, at least one of which has a profile lock turned on.
- Knowledge of at least one profile PIN on that account. In the write-up the author's own PIN is given as
1704. - An intercepting proxy such as Burp, set up so your browser's traffic passes through it.
In the author's setup every profile except the guest and children profiles had a lock, and those locked profiles were the target.
How the flaw works
The author describes the lock as a barrier that is only checked after you have chosen a profile. Your browser sends the PIN you typed, the server answers, and your browser decides from that answer whether to open the profile. The important consequence: the decision is made in a message that arrives at your own machine, and you control your own machine. If the answer says "correct", the browser opens the door, no matter which profile you were actually asking about. The author's closing question is exactly this: if the lock can be removed locally, what is the feature for?
Step by step
Step 1: Sign in and reach the profile picker
Go to https://www.netflix.com/ and log in with the account. Netflix asks "Who is watching?" and shows the list of profiles, as in the screenshot above. This step is just to get to the screen where the PIN is requested, so there is a real PIN request to watch.
Step 2: Identify the locked profiles
Every profile except guests and children has a profile lock. The goal is to open one of those without knowing its PIN. Knowing which profiles are locked tells you which ones are worth attacking.
Step 3: Capture a successful PIN response
Enter a PIN you already know, for example the author's own 1704, and intercept the response to that request in Burp. Because you know this PIN is right, the response you capture is a genuine "correct" answer. Copy the whole success response:
What each part means, in plain words:
HTTP/2 200 OKis the status line: the server accepted the request and answered normally.X-Robots-Tag: noindex, nofollowtells search engines not to index this response. It is housekeeping, not security.X-Frame-Options: DENYstops the response being embedded in another site's frame. Again, a safety header.X-Debug-Tz: GMT+5.50is a header whose purpose the report does not explain.X-Netflix.request.toplevel.uuid: 7d4b8b6b-fed5-44de-973b-1e14de56366f-422157414is an identifier for this particular request, so it can be traced in logs. A UUID is a long random-looking ID meant to be unique.X-Netflix.execution-Time: 6is a header whose purpose the report does not explain.Content-Type: application/json;charset=UTF-8says the body is JSON text.Date: Mon, 27 Dec 2021 03:48:33 GMTis when the response was produced.Content-Length: 48says the body is 48 bytes long.Via: 2 i-01d773509d78ec561 (us-west-2)andServer: api-prod-website i-00db4a31230d33cecidentify the machines that handled the request. These are internal hostnames; treat them as infrastructure detail.X-Xss-Protection,X-Content-Type-Options: nosniffandStrict-Transport-Securityare standard browser-safety headers. They tell the browser to be strict about content types and to always use encrypted connections.- The long
Access-Control-Allow-Headersline lists which custom headers a browser is allowed to send in cross-origin requests. CORS (Cross-Origin Resource Sharing) is the rule set that decides which other websites may talk to this API.Access-Control-Allow-Origin: https://www.netflix.comsays only Netflix's own site may do so from a browser. Access-Control-Allow-Credentials: truemeans cookies may be included in those cross-origin requests.Access-Control-Expose-Headerslists which response headers JavaScript on the page is allowed to read.Access-Control-Allow-Methods: GET, POSTlists the request types allowed.X-Originating-Url: http://www.netflix.com/api/shakti/v5185b692/profileLockis the address of the API endpoint that produced this answer. An endpoint is a specific address on a server that does one job. This one is the profile lock check.shaktiandv5185b692look like an internal service name and a version identifier.Set-Cookie: <REDACTED>is where the server hands the browser a cookie. The value is redacted here because cookies can carry session information and should not be published.X-Netflix.proxy.execution-Time: 16is another timing figure.{"codeName":"S-Icarus-6.Alster","success":true}is the body.codeNamelooks like an internal label for this response, andsuccess: trueis the field that changes between a wrong and a correct PIN response.
The key takeaway from this block is that the success response body is small: {"codeName":"S-Icarus-6.Alster","success":true}.
Step 4: Replay the success response for another profile
Now pick any other locked profile. Enter a wrong PIN for it and intercept that request's response. Replace the response with the success response you captured in Step 3. Your browser now receives success: true for a PIN that was actually wrong, believes the check passed, and opens the profile. The other user's profile is reachable without knowing its PIN. The author's reaction, in the write-up, is "BOOM!! We got access to the Other user profiles without any authentication."
Why it works
The bypass works by replacing the response to a wrong PIN with a captured success response. The browser simply trusts whatever body arrives, and the attacker controls the proxy that delivers it.
Who is affected, and what Netflix said
Anyone who can log in to the main account and knows one profile PIN can open every other locked profile on that account, including ones whose PIN they do not know. The precondition matters: the attacker needs valid login details for the account and one known PIN. The author frames the result as access to other user profiles without authentication.
He reported it to Netflix, and the reply was:
Hi krishnadevpmelevila,The functionality is only intended as a barrier for children accessing mature content within an account. Local bypass, such as this one, is considered Won't Fix. Your effort is appreciated and we hope that you will continue to research and submit any future security issues you find.
In other words, Netflix treats the lock as a parental barrier rather than a security boundary, and a bypass done on the user's own machine does not qualify. The author's doubt is that if the lock can be removed locally, what is the feature for?
Was it fixed?
No fix was made. The report was closed as Won't Fix. If it were to be hardened, the PIN result would need to be enforced on the server: after a correct PIN, the server would issue a permission for that specific profile and check it on every request that serves that profile's content, so that editing the response body in the browser could not grant access.
Things worth testing elsewhere
These are general patterns to try on any site with a similar gate. Each one asks the same underlying question: is the decision made on the server, or in the browser?
- Response body substitution. Intercept the failure response and replace it with a captured success body. A positive result is the protected view opening without the correct secret.
- Status code and body mismatch. Change only the status line, or only the JSON flag. A positive result is the client acting on one field while the server rejected the request.
- Replay across objects. Capture a success response for object A and use it for object B of the same type. A positive result is B opening with A's response.
- Direct navigation after the gate. Once the client believes the check passed, request the protected endpoint directly. A positive result is content returned without a server-side check.
- Cookie or token reuse. Take any permission artefact set by the success response and present it for another profile. A positive result is the other profile's data being served.
Glossary
- API: the set of message exchanges a website's page uses to ask its servers for data and actions.
- Request: the message a browser sends to a server, for example a PIN to check.
- Response: the message a server sends back to the browser.
- HTTP: the language browsers and servers use to exchange requests and responses.
- HTTP/2: a version of HTTP, shown in the status line.
- Status code: the number at the start of a response, such as
200for success or403for forbidden. - Header: a labelled line of extra information attached to a request or response.
- JSON: a simple text format for labelled values, such as
{"success":true}. - Body: the actual data part of a request or response, after the headers.
- Cookie: a small piece of text a server asks the browser to store and send back later, often used to recognise a logged-in user.
- Session: the server's memory of you being logged in, usually carried by a cookie.
- Proxy: a program that sits between your browser and the internet and passes messages through.
- Intercepting proxy: a proxy that lets you pause, read and edit messages before they continue; Burp Suite is one.
- Response manipulation: changing a server's answer on its way to the browser so the browser acts on the edited version.
- Logic flaw: a bug where the program follows its rules correctly but the rules themselves can be worked around.
- Profile lock: Netflix's four digit PIN on an individual profile within one account.
- Endpoint: a specific address on a server that performs one job, such as the profile lock check.
- UUID: a long random-looking identifier meant to be unique.
- CORS: the browser rule set that decides which other websites may call an API.
- Content-Type: a header saying what format the body is in, such as JSON.
- Set-Cookie: a response header that hands the browser a cookie to store.
- Client side: work done in the user's own browser, which the user controls.
- Server side: work done on the provider's servers, which the user cannot edit.
- Authentication: proving who you are, usually by logging in.
- Authorisation: what a logged-in user is allowed to do or see.
- Root cause: the underlying reason a vulnerability exists.
- Won't Fix: a vendor's decision to close a report without changing the product.
- Replay: reusing a captured valid response or token in a different situation.
- Redacted: removed or masked, usually to protect secrets or personal data.