Skip to content
Account takeover Write-up Beginner

My First Bug Bounty Finding Was Critical: Exploiting a Weak JWT Secret for Account Takeover

The application signed its JSON Web Tokens (JWTs) with the predictable secret 'default', allowing an attacker to forge tokens. By changing the UserId claim in a token and re-signing it with that secret, the attacker could access another user's account details, leading to account takeover.

yOnly_ Follow

Published on medium.com

Cybersecurity

yOnly, on medium.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

This is the story of a first bug bounty finding that started with a JWT signing secret that looked almost too obvious and ended as a Critical account takeover with a $1,500 bounty. The work was done during an internship at a cybersecurity company, where interns were asked to get familiar with the OWASP Web Security Testing Guide (WSTG) and were given a bug bounty scope to practise on: a wildcard program on YesWeHack.

The target was a subdomain of that wildcard scope. The researcher picked it because it had a fairly complete set of features, especially registration and login, so the application's workflow could be followed end to end while applying the WSTG. The feature that matters here is the authentication flow: after registering and logging in, the application issued a JWT, and the researcher wanted to test whether it decided which account a request belonged to. The sensitive endpoint used later is a user detail API endpoint that returns user information.

Setup

  • Scope: a wildcard program on YesWeHack, used as a practice target during an internship.
  • Reconnaissance tools: VirusTotal, Subfinder, Asset-finder, httpx and katana.
  • Testing tools: Burp Suite with its JWT extension, JWT.io, and Hashcat for the manual secret-testing path.
  • Accounts: two separate accounts were registered, User A with UserId = 100184 and User B with UserId = 100185.
  • Precondition: the application signs its JWTs with HS256, so a single shared secret both creates and verifies signatures.

Finding it

After registering and logging in, one thing stood out immediately: the JWT extension in Burp Suite was able to detect the secret key used to sign the token, and the secret was simply "default".

At that point the researcher did not yet understand what this meant or why it mattered, so instead of jumping to conclusions the next step was to learn how JWT signing actually works, starting with the difference between HS256 and RS256.

HS256 is symmetric: the same secret key creates and verifies the signature. The server takes the JWT header and payload, combines them with the secret, and produces an HMAC-SHA256 signature; when the token comes back, the server recalculates the signature with the same secret and compares it with the one in the token. RS256 is asymmetric: a private key signs and a public key verifies, and only the private key must stay secret.

Because the application used HS256, the security of its JWTs depended entirely on keeping the shared secret confidential. The secret is not normally stored inside the JWT; it is used behind the scenes to generate the signature. If it is weak or predictable, an attacker can guess it by trying candidate values until one produces a valid signature.

The extension had not extracted the secret from the token. The process is closer to secret guessing and verification: since HS256 needs the secret to produce a valid signature, each candidate can be tested against the token, and the candidate whose generated signature matches the token's signature is the correct secret. This also cleared up an initial misunderstanding: the payload does not contain the secret, and anyone can decode the header and payload because Base64URL encoding is not encryption. The signature is what lets the server verify that the token was generated with the expected secret.

To check the same process could be done without the Burp extension, the researcher used Hashcat to test candidate secrets against a JWT:

Bash
hashcat -a 0 -m 16500 <jwt_token> <path/to/wordlist/jwt-signature-key-common-wordlists.txt>

For the wordlist, a publicly available collection from GitHub was used: wallarm/jwt-secrets, file jwt.secrets.list.

The real issue was not simply that a secret had been discovered, but that the application relied on a predictable secret to sign its JWTs.

Exploitation

Finding a secret key does not automatically mean a vulnerability; what matters is the impact. Having confirmed the secret was "default", the next question was what an attacker could actually do with it.

Step 1: Try vertical privilege escalation

During reconnaissance the researcher had discovered that a super_admin role existed and had found the general format used for the role-related value. Working in JWT.io on the payload, various combinations were tried to chain the weak secret into vertical privilege escalation. None of them worked: the JWT seemed to accept values only for claims already present in the original payload.

Step 2: Notice the UserId claim

The token contained a UserId. If the JWT was part of the authentication and authorisation mechanism, and the userId inside the token determined which account was being accessed, then generating a valid JWT for another user's ID could lead to a full account takeover. Rather than continuing to guess privilege-related values, the researcher decided to test this properly.

Step 3: Create two accounts and find a sensitive endpoint

Two accounts were created:

Account UserId
User A 100184
User B 100185

A sensitive endpoint returning user information was located: the user detail API endpoint, a good candidate for testing whether the JWT actually controlled which account the server returned.

Step 4: Capture User A's token

Logging in as User A and accessing the user detail endpoint returned User A's data.

User A accessing the user detail endpoint. From the original on medium.com

The JWT generated for User A was copied into JWT.io to inspect its structure.

The original JWT decoded in JWT.io. From the original on medium.com

The payload was surprisingly simple, containing only two claims: UserId and UserType. The interesting one was UserId.

Step 5: Confirm the secret in JWT.io

Before changing anything, the researcher wanted to confirm that the secret found earlier was actually valid, and entered "default" as the signing secret in JWT.io. It worked.

The JWT secret was successfully verified as "default" From the original on medium.com

That meant the payload could not only be read but also re-signed with a valid signature using the same secret.

Step 6: Change the UserId and re-sign

The UserId was changed from User A's ID to User B's:

Text
100184 → 100185
Changing the userId from User A to User B From the original on medium.com

The modified payload was encoded using the "default" secret and the newly generated JWT was copied.

Step 7: Replay the forged token

The original token in the request to the user detail endpoint was replaced with the manipulated one. The application returned User B's information.

The application returned User B’s information using the manipulated JWT. From the original on medium.com

Root cause

The application signed its JWTs with HS256 using the predictable secret "default". With a symmetric algorithm, anyone who knows the secret can produce a signature the server will accept, so the secret is the only thing separating a legitimate token from a forged one. Because the value was guessable, the signature check provided no protection: the token's payload could be edited and re-signed, and the server treated the result as legitimate.

The application accepted the forged token whose UserId claim pointed at another account. Combined with the weak secret, that turned a token belonging to the attacker's own account into a token for any other account whose ID was known. The report does not describe any additional server-side check that would have caught the mismatch.

Impact

Starting from a weak JWT secret, the researcher could take a token belonging to their own account, change the userId to another user's ID, sign it again with the "default" secret, and have the application accept it as a legitimate authentication token. In effect, the application treated the attacker as another user: a full account takeover.

The report was submitted through YesWeHack and was rated Critical, with a $1,500 bounty.

The vulnerability was rated Critical and rewarded with a $1,500 bounty From the original on medium.com

Fix

The report does not say what the application changed after disclosure. The fix implied by the finding is to stop signing JWTs with a predictable value such as "default" and to use a long, random, secret key that is kept confidential, which is what HS256 security depends on.

Variants to test

  1. Guessable HS256 secrets on other targets. Run the same Hashcat command with a common-secrets wordlist against JWTs captured from your own account. A positive result is a candidate secret that reproduces the token's signature, which you can then confirm in JWT.io.
  2. Burp JWT extension detection. Log in and let the extension analyse the token. A positive result is the extension reporting a secret, which you should verify manually before drawing conclusions.
  3. Identity claims in the payload. Decode tokens and look for claims such as UserId, UserType or role values. A positive result is a claim that maps directly to an account or privilege and is accepted when changed and re-signed.
  4. Cross-account replay. With two accounts you control, change the identity claim from one account's ID to the other's, re-sign with the confirmed secret, and send it to an endpoint that returns user data. A positive result is the response containing the second account's information.
  5. Privilege claims. Where a privileged role such as super_admin is known to exist, try changing role-related claims and re-signing. A positive result is the application honouring the elevated role; in this report none of the combinations tried worked, because only claims already present in the original payload appeared to be accepted.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 20 min read.

What happened, in plain words

A security intern was given a practice target: a real website that had agreed to let people test its security, through a platform called YesWeHack. The intern signed up for an account on that website and logged in, and the JWT extension flagged the signing secret. A Burp Suite extension that inspects login tokens had detected the secret key the website uses to sign them, and that secret was the word "default".

A login token is the little badge a website gives your browser after you log in, so it does not have to ask for your password on every page. If you can forge that badge, you can pretend to be someone else. That is what happened here: the intern edited their own badge to carry another user's account number, re-stamped it with the word default, and the website handed over the other user's information. The report was rated Critical and paid a $1,500 bounty.

This article walks through the whole story slowly, explaining every term as it comes up, so you can follow it with nothing more than a browser and a computer.

The setting: an internship, a checklist, and a practice target

The work happened during an internship at a cybersecurity company. Interns were asked to get familiar with a public checklist called the OWASP Web Security Testing Guide, or WSTG. Think of the WSTG as a long recipe book for testing whether a website is secure: it lists things to try, in a sensible order, from "can I create an account?" to "can I break the login?".

To practise, the interns were given a bug bounty scope. A bug bounty is a scheme where a company says: "if you find a security problem in our website, tell us, and we may pay you". The scope is the list of websites you are allowed to test. Testing outside the scope is not allowed, even if you mean well. The scope here was a wildcard program on YesWeHack. A wildcard program covers a whole family of addresses, for example every subdomain of one main domain, rather than a single page.

A subdomain is a smaller address inside a bigger one. If the main site is example.com, then shop.example.com and login.example.com are subdomains. Companies often have dozens of them, and each one can be built differently, so each one is a separate thing to test.

Picking a target and doing recon

The first job was to find which subdomain would be the most interesting place to practise. The intern wanted a site with a fairly complete set of features, especially registration and login, so the whole workflow could be followed from start to finish while working through the WSTG checklist.

To find candidates, the intern used several reconnaissance tools. Reconnaissance, or recon, means gathering information about a target before touching it: which addresses exist, which ones respond, what they look like. The tools named in the report are VirusTotal, Subfinder, Asset-finder, httpx and katana. In plain terms, they help you discover subdomains and check which of them are alive and what they contain. The report does not describe what each tool returned.

Eventually the intern found a subdomain that looked like a good fit and started going through the WSTG methodology. At one point the checklist called for creating an account through the registration feature and then logging in, mainly to understand how the application worked and how its authentication flow was structured.

Authentication is simply the process of proving who you are: the login step. Authorisation is the next step: what you are allowed to do once you are in. Keeping those two ideas separate matters a lot later in this story.

The finding: a token stamped with the word "default"

After logging in successfully, one thing immediately caught the intern's attention. Burp Suite, a tool that sits between your browser and the website and lets you look at every request and response, has a JWT extension. That extension was able to detect the secret key used to sign the token, and the secret was simply "default".

To understand why that is a problem, we need to unpack a few words.

A JWT, short for JSON Web Token, is a compact string that a website gives your browser after you log in. On every later request, your browser sends the token back, and the server reads it to decide who you are. You can think of it as a wristband at a festival: you get it at the entrance, you show it at every stage, and the staff trust it without calling the entrance desk every time.

A JWT has three parts, separated by dots: a header, a payload, and a signature. The header says which algorithm was used to sign it. The payload is a small bundle of facts, called claims, such as your user ID or your user type. The signature is a cryptographic stamp that lets the server check the token was really issued by it and has not been edited.

Signing is the stamping process. The server takes the header and payload, mixes them with a secret key, and runs a mathematical function over the result to produce the signature. A secret key here is just a long password that only the server is supposed to know. When the token comes back, the server repeats the calculation with the same secret and compares the result with the signature in the token. If they match, the token is genuine; if not, it has been tampered with.

At that point the intern honestly did not fully understand what the detected secret meant or why it mattered. So instead of jumping to conclusions, the next step was to step back and learn how JWT signing actually works, starting with the difference between the two commonly encountered signing algorithms, HS256 and RS256.

HS256 versus RS256, in everyday terms

HS256 is a symmetric algorithm. Symmetric means one key does both jobs: the same secret creates the signature and verifies it. A useful comparison is a wax seal and a single stamp: whoever holds the stamp can both make a seal and check one. The server takes the JWT's header and payload, combines them with the secret key, and produces a signature using HMAC-SHA256, which is the specific mathematical recipe being used. When the token comes back later, the server uses that same secret to calculate the signature again and checks whether it matches the one in the token.

RS256 works quite differently. It is an asymmetric algorithm, which uses a pair of keys: a private key for signing and a public key for verification. The private key is supposed to remain secret, while the public key can be handed out to anyone who needs to verify the token. The comparison here is a signature on a paper document: only you can produce your handwritten signature, but anyone can compare it with a sample you have published.

This difference turned out to be very important in this case. Because the application was using HS256, the security of its JWTs ultimately depended on keeping the shared secret confidential. If the secret is weak or predictable, an attacker can potentially guess it by trying a large number of candidate values until one produces a valid signature.

The secret is not inside the token

The secret itself is not normally stored inside the JWT. Instead, it is used behind the scenes to generate the signature. This is a point many beginners get wrong, and the intern did too at first.

The extension had not extracted the secret from the token. Rather, the process is closer to secret guessing and verification. Since HS256 requires the secret to generate a valid signature, a candidate secret can be tested against the token: if the signature produced with that candidate matches the signature in the JWT, the candidate is the correct secret. It is like trying keys on a lock: the lock does not tell you the key, but the right key turns.

This also explained something the intern had initially misunderstood: the JWT payload itself does not contain the secret key. Anyone can decode the header and payload of a JWT, because Base64URL encoding is not encryption. Encoding is just a way of writing data in a different alphabet so it travels safely through systems that expect text; it hides nothing. Encryption, by contrast, is meant to make data unreadable without the key. The important part of a JWT is the signature, which is what allows the server to verify that the token was generated using the expected secret.

Doing the guessing by hand with Hashcat

After understanding this, the intern wanted to see whether the same process could be performed manually instead of relying on the Burp Suite extension. It turns out it could. Tools such as Hashcat can be used to test candidate secrets against JWTs. For example:

Bash
hashcat -a 0 -m 16500 <jwt_token> <path/to/wordlist/jwt-signature-key-common-wordlists.txt>

Line by line, in plain words:

  • hashcat is the name of the program being run. Hashcat is a well-known tool for trying many candidate passwords against a piece of data until one fits.
  • -a 0 tells Hashcat which attack mode to use. Mode 0 is a straight dictionary attack: take each word from a list, one after another, and try it.
  • -m 16500 tells Hashcat what kind of data it is attacking. Mode 16500 is Hashcat's identifier for JWT signatures, so Hashcat knows how to build a signature from each candidate word and compare it with the token.
  • <jwt_token> is a placeholder for the token you captured from your own account. The angle brackets are not typed literally; they mark where your own value goes.
  • <path/to/wordlist/jwt-signature-key-common-wordlists.txt> is a placeholder for the file containing the candidate words. Again, the angle brackets are a placeholder, not part of the command.

A wordlist is simply a text file with one candidate per line. For the wordlist, the intern used a publicly available collection from GitHub: wallarm/jwt-secrets, file jwt.secrets.list. That file gathers secrets people commonly use, which is exactly what makes it useful for this kind of test.

At this point, what initially looked like a small and rather confusing finding, a JWT extension showing "default", started to make much more sense. The intern was beginning to understand that the real issue was not simply that a secret had been discovered, but that the application was relying on a predictable secret for signing its JWTs.

From a weak secret to account takeover

In bug bounty, finding a secret key like this does not automatically mean you have found a vulnerability. What really matters is the impact: what could a real attacker actually do with it? A weak secret is interesting, but the intern needed to turn it into something meaningful.

Since the secret had already been confirmed as "default", the next step was to see whether the token could be manipulated and used for something useful. The intern went to JWT.io, a free website that decodes JWTs and lets you edit the payload and re-sign it in the browser, and started playing around with the payload.

First attempt: trying to become an administrator

One of the things the intern initially had in mind was trying to chain this into a vertical privilege escalation. Privilege escalation means getting more power than you were given. Vertical means going up a level, for example from a normal user to an administrator. During reconnaissance, the intern had discovered that a super_admin role existed, and had also found the general format used for the role-related value.

A role is a label the application uses to decide what you may do: normal user, moderator, administrator, and so on. If the token carries a role, and the role can be edited, you might be able to promote yourself.

Unfortunately, none of the combinations tried worked. The JWT seemed to only accept values for claims that were already present in the original payload. In other words, the JWT seemed to accept values only for claims that were already present in the original payload.

At first, this felt like a dead end. But then the intern noticed something much more interesting: the token contained a UserId.

The idea: swap the account number

And that changed everything. If the JWT was being used as part of the application's authentication and authorisation mechanism, and the userId inside the token determined which account was being accessed, then being able to generate a valid JWT for another user's ID could potentially lead to a full account takeover.

Account takeover means logging in as someone else without knowing their password. You do not steal their password; you steal their identity as far as the website is concerned. The comparison is a cloakroom ticket: if the attendant only looks at the number on the ticket and not at who is holding it, then anyone holding your number can walk off with your coat.

So, rather than continuing to guess the privilege-related values, the intern decided to test this possibility properly.

Setting up two accounts and finding a sensitive page

First, the intern created two separate accounts:

Account UserId
User A 100184
User B 100185

Two accounts are needed because you cannot prove you can reach someone else's data unless you have someone else's data to reach. Both accounts belong to the tester, so nothing private is touched.

The intern also looked for a sensitive endpoint that returned user information. An endpoint is a specific address on a server that does one job, like a counter in a large office: one counter for registration, one for login, one for fetching your profile. An API is the general name for this way of talking to a server: you send a request to an endpoint, and it sends back data, usually in a structured format rather than a web page. The endpoint found here was the user detail API endpoint, which looked like a good candidate for testing whether the JWT actually controlled which account the server would return.

Step 1: log in as User A and look at the response

The intern started by logging in as User A and accessing the user detail endpoint.

User A accessing the user detail endpoint. From the original on medium.com

The screenshot shows User A accessing the user detail endpoint. In plain terms: the tester is logged in as the first account, asks the server for the details of that account, and gets them back. This is the normal, expected behaviour, and it establishes a baseline. A baseline is what "working correctly" looks like, so that any later difference is easy to spot.

Step 2: decode the token

The intern then copied the JWT generated for User A and put it into JWT.io to take a closer look at its structure.

The original JWT decoded in JWT.io. From the original on medium.com

JWT.io shows the three parts of the token side by side: the header, the payload and the signature. The payload was surprisingly simple. It contained only two claims: UserId and UserType. A claim is just a named fact inside the token, like a line on a form: name, value. The interesting one was obviously UserId, because that is the line that says which account the token belongs to.

Step 3: confirm the secret really is "default"

Before changing anything, the intern also wanted to confirm that the secret discovered earlier was actually valid. So the word "default" was entered as the signing secret in JWT.io.

And it worked.

The JWT secret was successfully verified as "default" From the original on medium.com

What does "it worked" mean here? JWT.io takes the token, recalculates the signature using the secret you typed, and tells you whether the result matches the signature already in the token. A match means the secret is correct. This is the same guessing-and-verification idea as before, just done by hand in a browser instead of with Hashcat.

That meant the intern could not only read the token's payload, but also generate a new valid signature using the same secret. In wristband terms: the tester now owns the stamp that the festival uses to make wristbands, so any wristband they make will pass the check at the gate.

Step 4: change the account number and re-sign

So the UserId was changed from User A's ID to User B's:

Text
100184 → 100185

Line by line: 100184 is User A's account number, the value that was in the payload. The arrow means "becomes". 100185 is User B's account number, the value the tester wants the server to believe. Nothing else in the payload was touched.

Changing the userId from User A to User B From the original on medium.com

The screenshot shows the UserId being changed from User A's ID to User B's. The intern then encoded the modified payload using the "default" secret and copied the newly generated JWT. Encoding here means JWT.io recalculates the signature over the edited header and payload, so the token is internally consistent again: the signature matches the contents, even though the contents are now a lie.

Step 5: send the forged token

Finally, the intern replaced the original token in the request to the user detail endpoint with the manipulated one.

And then, boom. The application returned User B's information.

The application returned User B’s information using the manipulated JWT. From the original on medium.com

The screenshot shows the application returning User B's information using the manipulated JWT. The tester was still sitting at their own computer, logged in with their own account, but the server read the token, believed the UserId inside it, and answered with the other account's data. That is the account takeover, demonstrated end to end.

The impact

At that moment, the impact became clear. The intern had started with what looked like a simple case of a weak JWT secret. But because that secret allowed a valid token to be generated with a different UserId, the application could effectively be made to treat the tester as another user.

In other words, the tester could take a JWT belonging to their own account, change the userId to another user's ID, sign it again using the "default" secret, and have the application accept it as a legitimate authentication token. That turned a seemingly simple JWT misconfiguration into a full account takeover vulnerability.

A misconfiguration is a setting left at a default or careless value rather than a bug in the code itself. The comparison is leaving the factory key in the lock because nobody changed it after installation.

The vulnerability was reported through YesWeHack, and the report was eventually rated Critical, with a $1,500 bounty.

The vulnerability was rated Critical and rewarded with a $1,500 bounty From the original on medium.com

The screenshot shows the vulnerability rated Critical and rewarded with a $1,500 bounty. Severity ratings like Critical are how platforms and companies rank how bad a finding is, so that fixes can be prioritised.

Why it worked, and what would have stopped it

The application signed its JWTs with HS256 using the predictable secret "default". With a symmetric algorithm, anyone who knows the secret can produce a signature the server will accept, so the secret is the only thing separating a legitimate token from a forged one. Because the value was guessable, the signature check provided no protection: the payload could be edited and re-signed, and the server treated the result as legitimate.

The application accepted the forged token whose UserId claim pointed at another account. Combined with the weak secret, that turned a token belonging to the tester's own account into a token for any other account whose ID was known. The report does not describe any additional server-side check that would have caught the mismatch.

The fix implied by the finding is to stop signing JWTs with a predictable value such as "default" and to use a long, random, secret key that is kept confidential, which is what HS256 security depends on.

The lesson

Looking back, this was a pretty interesting lesson. At first the intern was honestly just curious about why Burp Suite's JWT extension was showing "default" as the secret, and did not immediately know whether it would lead anywhere.

The important part was not stopping at the initial finding. A weak secret by itself was only the beginning. The real story started with the question: okay, but what can I actually do with this? That question eventually led from a weak JWT secret to manipulating the authentication token and, ultimately, taking over another account.

It was also a good reminder that seemingly small security mistakes can sometimes have consequences far beyond what you initially expect. In this case, using a predictable value like "default" as a JWT signing secret turned out to be enough to completely break the application's trust in its authentication tokens.

Things you could try yourself, in the same spirit

These are the same ideas, written as practice exercises. Only ever do them on a target you are authorised to test, such as a bug bounty scope or your own lab.

  1. Guessable HS256 secrets on other targets. Run the same Hashcat command with a common-secrets wordlist against JWTs captured from your own account. A positive result is a candidate secret that reproduces the token's signature, which you can then confirm in JWT.io.
  2. Burp JWT extension detection. Log in and let the extension analyse the token. A positive result is the extension reporting a secret, which you should verify manually before drawing conclusions.
  3. Identity claims in the payload. Decode tokens and look for claims such as UserId, UserType or role values. A positive result is a claim that maps directly to an account or privilege and is accepted when changed and re-signed.
  4. Cross-account replay. With two accounts you control, change the identity claim from one account's ID to the other's, re-sign with the confirmed secret, and send it to an endpoint that returns user data. A positive result is the response containing the second account's information.
  5. Privilege claims. Where a privileged role such as super_admin is known to exist, try changing role-related claims and re-signing. A positive result is the application honouring the elevated role; in this report none of the combinations tried worked, because only claims already present in the original payload appeared to be accepted.

Glossary

  • Account takeover: getting access to someone else's account without knowing their password, usually by forging or stealing their login token.
  • API: a way for one program to ask another for data or actions, by sending a request to a specific address and getting structured data back.
  • Asymmetric algorithm: a signing method that uses two different keys, one private for signing and one public for verification, such as RS256.
  • Authentication: the process of proving who you are, for example logging in.
  • Authorisation: the process of deciding what you are allowed to do once you are logged in.
  • Base64URL encoding: a way of writing data using a safe set of text characters so it can travel through systems; it hides nothing and is not encryption.
  • Baseline: the normal, expected result you record first, so later differences are easy to spot.
  • Bug bounty: a scheme where a company invites people to report security problems in its systems, often with a reward.
  • Burp Suite: a tool that sits between your browser and a website so you can inspect and modify every request and response.
  • Claim: a named fact inside a JWT payload, such as UserId or UserType.
  • Critical: the highest severity rating a finding can receive, meaning it should be fixed urgently.
  • Endpoint: a specific address on a server that performs one job, such as login or fetching a profile.
  • Hashcat: a program that tries many candidate values against a piece of data until one matches.
  • HMAC-SHA256: the specific mathematical recipe used to build a signature from data and a secret key.
  • HS256: a symmetric JWT signing algorithm where one shared secret both creates and verifies the signature.
  • Impact: what a real attacker could actually achieve with a finding, which is what decides whether it is a vulnerability.
  • JWT (JSON Web Token): a compact token with a header, a payload and a signature, used by websites to remember who you are after login.
  • JWT.io: a free website that decodes JWTs and lets you edit the payload and re-sign it in the browser.
  • Misconfiguration: a setting left at a default or careless value rather than a flaw in the code itself.
  • OWASP WSTG: the OWASP Web Security Testing Guide, a public checklist for testing whether a website is secure.
  • Payload: the middle part of a JWT, holding the claims.
  • Privilege escalation: gaining more power than you were given; vertical means going up a level, such as from user to administrator.
  • Reconnaissance (recon): gathering information about a target before testing it, such as which addresses exist and what they run.
  • Role: a label the application uses to decide what you may do, such as normal user or administrator.
  • RS256: an asymmetric JWT signing algorithm where a private key signs and a public key verifies.
  • Scope: the list of systems you are allowed to test in a bug bounty.
  • Secret key: a long password known only to the server, used to create and check signatures.
  • Severity: a ranking of how bad a finding is, used to prioritise fixes.
  • Signature: the cryptographic stamp in a JWT that lets the server check it was issued by it and not edited.
  • Signing: the process of producing a signature over data using a secret key.
  • Subdomain: a smaller address inside a larger one, such as shop.example.com inside example.com.
  • Symmetric algorithm: a signing method that uses one shared secret for both signing and verification, such as HS256.
  • Token: a small piece of data a website gives your browser after login, which your browser sends back on later requests to show who you are.
  • Vulnerability: a weakness in a system that someone could use to do something they are not supposed to do.
  • Wildcard program: a bug bounty scope that covers a whole family of addresses, such as every subdomain of one domain.
  • Wordlist: a text file with one candidate value per line, used by tools like Hashcat.
  • YesWeHack: a bug bounty platform where companies publish scopes and researchers submit reports.

More by yOnly_

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.