Skip to content
Business logic Disclosed report Beginner

No rate Limit on Licenses Activation

The license activation endpoint on account.mackeeper.com lacks rate limiting and does not validate the CAPTCHA on the first request, allowing an attacker to brute-force activation codes. This could let an attacker guess valid license keys, potentially causing financial loss.

akash-labade Follow

Originally disclosed on HackerOne

Bounty$300 Medium View original
  • Triaged in 6 days
  • Fixed in 7 months
  • Paid in 9 days
  • Disclosed after 8 months

Summary by the program

Introduction

A little bit about Rate Limit A rate-limiting algorithm is used to check if the user session (or IP-address) has to be limited based on the information in the session cache. In case a client made too many requests within a given time-frame, HTTP-Servers can respond with status code 429: Too Many Requests.

Description

I have identified that when License activation on account.mackeeper.com , the request has no rate limit which then can be used to loop through one request. Which can be caused to brute force the license key for mackeeper.

The first request generated for the activation code does not validate G-Captcha verification. Due to this attacker brute-force the activation code.

##Request

POST /my-licenses/enter-activation-code HTTP/1.1
Host: account.mackeeper.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://account.mackeeper.com/mylicenses
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 59
Connection: close
Cookie: mk_app_yes=mk_app_yes; ActivateMacKeeperPopUpShown5efb180de6b37b3326166ef5=1; showCookiePolicy=true; _ga=GA1.3.1268580131.1593521017; _gid=GA1.3.2072436200.1593521017; _hjid=76d1e19a-d544-4123-8d02-65f30c9901df; _hjIncludedInSample=1; _hjAbsoluteSessionInProgress=1; sid=fstrk1gg07rva675puuftotju7; aguid=d82aa8c6a8c239b88f6bdca39af1b7ad5efb37b7e99293.37291003; jwtToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ijk1YTYyYzc4N2ViYjcwYTY5OTFhNzdhMTI1ODJkZjlhIn0.eyJ1c2VyX2lkIjoiNWVmYjE4MGRlNmIzN2IzMzI2MTY2ZWY1IiwiaXNzIjoibWthcGkiLCJleHAiOjE1OTQxNTIwNjEsImhhc2giOiI2NmM4NmRjOTAxYTM2MSJ9.IDg6BJBiNowewfO4vg0P8O4yFC2SuX57RkEqod1Cr-wScfB2YqO8COt5EUwyVLT_RXECk8fPtubnrp_VxTsK6iMsrLa2FNz73uqyir9RvzYrfgs-JUH0ZzpaK63Cnd9xCGBJcUfN40d6txmlM426ey5qgX9vLICzX1WMtYEdvQ3xskfPcweJMZihceB1dq1oro2OJUahV28Y3gfOn6UzuNsfitlGbQss6pKPbDKBv5VgUoW4madD0rXo6iXuhrXs130f6pbdZ6ZRkmlyBuGm3mK3Rve6pji7sQXHMk1myo7GiDZG0tj_L_Fty68NPnvKRa9OGSfe0vnbioCCkAe6eg; loginInfo=akash-labade

csrf=38a8b676d202e1c513637e6d8ce224fe&code=ABCDEFGH12345678

##Steps To Reproduce:

  1. Go to https://account.mackeeper.com/mylicenses
  2. Click On Enter Activation code button.
  3. Intercept request using burp and send to the intruder.
  4. Add payload list and click on start attack.
  5. See You Will Get 200 ok Status Code with error "The key "ABCDEFGH12345678" does not exist".

##Solution

  • I Will Recommend You To Add A ReCaptcha for the first request too. The first Request For Activation Doesn't Validate the ReCaptcha.
  • Sort Of Something Which Requires Manual Human Interaction To Proceed Like You Can Add Captcha Like 2+2=___ so that it cannot be brute-forced.
  • Set a limit at the back-end for a particular number up-to 5 times a day user can request activation or something like that will prevent from exploiting this vulnerability

##Impact

  • If there are no rate limits on activation key verification, Users can create any number of keys by the brute-forcing attack.
  • This type of attack can result in financial loss and can lead to business risk.

The original report as published on HackerOne, by akash-labade. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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. 5 min read.

Context

MacKeeper is a macOS utility product, and the report concerns the account portal at account.mackeeper.com, specifically the licence activation feature under /mylicenses. A user who has bought a licence enters an activation code on that page, and the application checks the code against its records. If the code exists, the licence is attached to the account.

The researcher found that this verification endpoint can be called repeatedly without any rate limiting, and that the first activation request does not enforce the G-Captcha check. Together these allow an attacker to brute force activation codes.

Setup

The report does not describe any special account setup beyond a logged-in user on the portal. The researcher browsed to https://account.mackeeper.com/mylicenses in a browser, opened the activation code dialog, and intercepted the resulting request with Burp Suite, sending it to the Intruder for automated repetition. The request carries the session cookies of the logged-in user, including a jwtToken and a sid, so an authenticated session is the precondition.

Finding it

The researcher started from the general definition of rate limiting: a server-side algorithm that checks whether a session or IP address should be limited based on information in a session cache, and that answers with HTTP status 429 (Too Many Requests) when a client exceeds a given number of requests in a time frame.

Looking at the licence activation flow, the researcher observed that the activation request had no such limit, so a single request could be looped indefinitely. The second observation was that the first request generated for the activation code does not validate the G-Captcha verification. The combination means the activation code can be guessed at high speed.

Exploitation

Step 1: Open the licences page

Navigate to the licences page of the account portal:

Text
https://account.mackeeper.com/mylicenses

Step 2: Open the activation dialog

Click the button to enter an activation code. This produces the request that will be repeated.

Step 3: Intercept the request

Capture the activation request with Burp Suite and send it to the Intruder. The captured request is:

HTTP
POST /my-licenses/enter-activation-code HTTP/1.1
Host: account.mackeeper.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://account.mackeeper.com/mylicenses
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 59
Connection: close
Cookie: [redacted]

csrf=[redacted]&code=ABCDEFGH12345678

The important parts are the path /my-licenses/enter-activation-code, the form-encoded body with a csrf token and the code parameter, and the X-Requested-With: XMLHttpRequest header that marks the call as an AJAX request from the page. The Cookie header carries the authenticated session; it is redacted here because it contains session identifiers and a JWT.

Step 4: Configure and launch the Intruder attack

Add a payload list for the code parameter and start the attack. Add a payload list and start the attack; the response is HTTP 200 with the "does not exist" error.

Step 5: Read the results

Every attempt returns HTTP 200 with a body stating that the submitted key does not exist, for example:

Text
The key "ABCDEFGH12345678" does not exist

Every attempt returns HTTP 200 with a body stating that the submitted key does not exist, for example: The report states the request has no rate limit, so it can be looped.

Root cause

The endpoint that verifies activation codes has no server-side rate limit, so the number of verification attempts per session or IP address is unbounded. In addition, the first activation request does not validate the G-Captcha, so the anti-automation control that exists elsewhere in the flow does not apply to the request an attacker would actually loop.

Impact

With no rate limit on activation key verification, an attacker can brute force activation codes. The researcher notes that this can result in financial loss and business risk. The report does not quantify the key space, the request rate achieved, or any successful activation.

Fix

The researcher proposed three measures:

  1. Add a reCaptcha to the first request as well, since the first activation request does not validate the reCaptcha.
  2. Require manual human interaction to proceed, for example a simple challenge such as 2+2=___, so the flow cannot be brute forced.
  3. Enforce a back-end limit, for example up to five activation requests per user per day.

The report does not state which of these, if any, was implemented.

Variants to test

  • Apply the same loop to other code-entry endpoints on the same portal, such as password reset tokens or invitation codes. A positive result is a long run of responses that differ only by the guessed value, with no 429 and no lockout.
  • Check whether the captcha is validated only on a later step of a multi-step flow. A positive result is that the first request in the flow succeeds without a captcha token in the body.
  • Test whether the limit is per session only, by rotating the session cookie while keeping the same IP address, and vice versa. A positive result is that one of the two dimensions is not counted.
  • Compare response bodies and status codes for valid and invalid codes. A positive result is a response that clearly separates the two cases, which is what makes the brute force feasible.

Hunting notes

This kind of bug tends to sit in secondary account features: licence activation, voucher and coupon redemption, invitation codes, and password reset token entry. During recon, look for AJAX endpoints with X-Requested-With: XMLHttpRequest that take a short code parameter, and check whether the page loads a captcha widget that the request itself does not reference. The signal is a request whose body contains only a CSRF token and the guessed value, with no captcha response field.

To show impact, demonstrate the loop with a payload list and show that the responses remain distinguishable and unlimited, as the researcher did here by obtaining HTTP 200 with the "does not exist" message for every attempt.

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. 11 min read.

What happened, in plain words

MacKeeper is a utility program for Mac computers. People who buy it get a licence, and to attach that licence to their account they type an activation code on a web page. The page lives at account.mackeeper.com, under the section called /mylicenses.

When you type a code and press the button, your browser quietly sends a message to the website's server asking "is this code real?". The server answers yes or no. The researcher found two problems with that message:

  1. The server never says "you have asked too many times, slow down". The request can be looped.
  2. The first of those messages is not checked by the captcha (the little puzzle that proves a human is present). So an automated program can send it without solving anything.

Put together, a program can loop the activation request and brute force activation codes. The researcher demonstrated this with a tool called Burp Suite, which can capture a browser request and repeat it automatically with different values.

A few words before we start, because they come up constantly:

  • A server is the computer somewhere in the world that holds the website and answers requests. Your browser is the client.
  • A request is the message your browser sends to the server: "give me this page" or "check this code". The server's answer is the response.
  • An API endpoint is a specific address on the server that does one job. Think of a restaurant: the menu is the website, and each dish you can order is an endpoint. /my-licenses/enter-activation-code is the endpoint that checks activation codes.
  • A cookie is a small note the website asks your browser to keep and send back with every request, so the server can recognise you between page loads. It is like a cloakroom ticket: you show it and they know which coat is yours.
  • A token is a longer piece of text that proves who you are, often stored inside a cookie. The jwtToken in this report is one of those.
  • Rate limiting is the server's bouncer. It counts how many requests you have made in a period and, past a threshold, refuses with a special status code, 429, meaning "Too Many Requests". Without a bouncer, nothing stops a program from asking forever.
  • Brute force means guessing by trying every possibility in turn, like working through every combination on a bicycle lock instead of thinking about which numbers the owner would choose.
  • A captcha is a test that is easy for a person and hard for a program, such as reading distorted letters or answering a simple sum. G-Captcha (Google reCaptcha) is one brand of it.
  • Burp Suite is a program that sits between your browser and the website, so you can see and edit every message that passes. Its Intruder feature takes one captured request and sends it many times, each time with a different value in a chosen spot.

The setup

The researcher did not need anything special: just a normal account on the portal, logged in. That matters, because the request carries the cookies of a logged-in user, including a jwtToken and a sid. The request carries the cookies of a logged-in user, including a jwtToken and a sid.

The plan was simple:

  1. Open the licences page in a browser.
  2. Open the dialog where you type an activation code.
  3. Catch the request that the dialog sends, using Burp Suite.
  4. Send that request to the Intruder so it can be repeated automatically.

Finding it

The researcher started from the textbook definition of rate limiting: the server keeps a note of how many requests a session or an IP address has made in a given time window, and once the number is too high it replies with HTTP status 429, Too Many Requests. An IP address is the number that identifies your connection on the internet; a session is the server's memory of your logged-in visit.

Then the researcher looked at the licence activation flow and saw two things:

  • The activation request had no such limit. One request could be looped indefinitely.
  • The first request generated for the activation code does not validate the G-Captcha verification.

Either one alone is a weakness. Together they mean a program can guess codes at full speed with nothing in its way.

Exploitation

Step 1: Open the licences page

Go to the page where your licences are listed:

Text
https://account.mackeeper.com/mylicenses

This is the starting point because the activation dialog lives on this page. Opening it in a browser means the browser already holds your login cookies, which is exactly the state the attack needs.

Step 2: Open the activation dialog

Click the button to enter an activation code. This is what produces the request that will later be repeated. This produces the request that will later be repeated.

Step 3: Intercept the request

With Burp Suite in place, the request is captured before it reaches the server. It looks like this:

HTTP
POST /my-licenses/enter-activation-code HTTP/1.1
Host: account.mackeeper.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://account.mackeeper.com/mylicenses
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 59
Connection: close
Cookie: [redacted]

csrf=[redacted]&code=ABCDEFGH12345678

Line by line, in plain words:

  • POST /my-licenses/enter-activation-code HTTP/1.1: this is a POST request, meaning "here is some data for you to process", sent to the endpoint that checks activation codes. HTTP/1.1 is the version of the language browsers and servers speak.
  • Host: account.mackeeper.com: which website on that server the request is for. One server can host many sites, so the request names the one it wants.
  • User-Agent: ...Firefox/68.0...: the browser introducing itself. Servers often use this to decide what to send back.
  • Accept: */*: "I can handle any kind of answer".
  • Accept-Language: en-US,en;q=0.5: the languages the browser prefers, with a preference score.
  • Accept-Encoding: gzip, deflate: the browser is happy to receive the answer compressed, to save bandwidth.
  • Referer: https://account.mackeeper.com/mylicenses: the page the request came from. It is spelled "Referer" in the protocol, a historical misspelling that stuck.
  • Content-Type: application/x-www-form-urlencoded; charset=UTF-8: the format of the data in the body. "Form-encoded" means it looks like name=value&name=value, the same shape a plain HTML form produces.
  • X-Requested-With: XMLHttpRequest: a marker saying this call was made by the page's own JavaScript in the background, not by you clicking a link. It is a strong hint that you are looking at an API endpoint rather than a normal page.
  • Content-Length: 59: how many bytes the body contains.
  • Connection: close: close the connection after this exchange instead of keeping it open.
  • Cookie: [redacted]: the cloakroom tickets. This is where the session identifiers and the jwtToken travel. They are hidden here because anyone holding them could act as the logged-in user.
  • The blank line separates the headers from the body.
  • csrf=[redacted]&code=ABCDEFGH12345678: the body. It has two fields. csrf is a CSRF token, a random value the page puts into each form so the server can tell that the request really came from its own page and not from some other site tricking your browser. code is the activation code being checked, here the made-up value ABCDEFGH12345678.

The parts that matter for the attack are the path, the body with its csrf and code fields, and the X-Requested-With header that marks the call as a background request from the page. The CSRF token does not get in the way, because the attacker is logged in and can simply read the token from the page like any other user.

Step 4: Configure and launch the Intruder attack

In Burp's Intruder, you mark the value you want to vary. Here that is the code parameter. You then give it a payload list, a file of candidate codes to try one after another, and press start. The tool sends the request again and again, each time with the next candidate in place of the previous one.

This step is the heart of the demonstration. The report states the request has no rate limit, so it can be looped.

Step 5: Read the results

Every attempt comes back with HTTP status 200, which normally means "all fine", and a body saying the key does not exist, for example:

Text
The key "ABCDEFGH12345678" does not exist

That message is the whole trick. Every attempt comes back with HTTP status 200 and a body saying the key does not exist, for example: The report states the request has no rate limit, so the loop is not throttled.

Why it works

The endpoint that checks activation codes has no server-side rate limit, so the number of attempts per session or per IP address is unlimited. On top of that, the first activation request does not validate the G-Captcha, so the anti-automation control that exists elsewhere in the flow does not apply to the very request an attacker would loop.

What it means

With no rate limit on activation key verification, an attacker can brute force activation codes. The researcher notes that this can result in financial loss and business risk. The report does not quantify the key space, the request rate achieved, or any successful activation.

How to fix it

The researcher proposed three measures:

  1. Add a reCaptcha to the first request as well, since the first activation request does not validate the reCaptcha.
  2. Require manual human interaction to proceed, for example a simple challenge such as 2+2=___, so the flow cannot be brute forced.
  3. Enforce a back-end limit, for example up to five activation requests per user per day.

The report does not state which of these, if any, was implemented.

Other places to look

  • Apply the same loop to other code-entry endpoints on the same portal, such as password reset tokens or invitation codes. A positive result is a long run of responses that differ only by the guessed value, with no 429 and no lockout.
  • Check whether the captcha is validated only on a later step of a multi-step flow. A positive result is that the first request in the flow succeeds without a captcha token in the body.
  • Test whether the limit is per session only, by rotating the session cookie while keeping the same IP address, and vice versa. A positive result is that one of the two dimensions is not counted.
  • Compare response bodies and status codes for valid and invalid codes. A positive result is a response that clearly separates the two cases, which is what makes the brute force feasible.

Notes for your own hunting

This kind of bug tends to sit in secondary account features: licence activation, voucher and coupon redemption, invitation codes, and password reset token entry. During recon, look for AJAX endpoints with X-Requested-With: XMLHttpRequest that take a short code parameter, and check whether the page loads a captcha widget that the request itself does not reference. The signal is a request whose body contains only a CSRF token and the guessed value, with no captcha response field.

To show impact, demonstrate the loop with a payload list and show that the responses remain distinguishable and unlimited, as the researcher did here by obtaining HTTP 200 with the "does not exist" message for every attempt.

Glossary

  • API endpoint: a specific address on a server that performs one job, such as checking an activation code.
  • Brute force: guessing a secret by trying every possibility in turn until one works.
  • Burp Suite: a tool that sits between your browser and a website so you can inspect, edit and repeat requests.
  • Captcha: a test that is easy for a human and hard for a program, used to slow down automation.
  • Client: the program making a request, usually your browser.
  • Cookie: a small piece of data the browser stores and sends back with each request so the server can recognise you.
  • CSRF token: a random value placed in a form so the server can tell the request came from its own page and not from another site.
  • G-Captcha: Google reCaptcha, a brand of captcha.
  • HTTP status 200: the server's way of saying the request was handled normally.
  • HTTP status 429: the server's way of saying you have sent too many requests and should slow down.
  • Intruder: the part of Burp Suite that repeats one request many times with different values.
  • IP address: the number that identifies a connection on the internet.
  • JWT: a token, a long piece of text that proves who you are, often stored in a cookie.
  • Payload list: a file of candidate values that an automated tool tries one after another.
  • Rate limiting: a server-side control that counts requests per session or IP address and refuses once a threshold is passed.
  • Request: the message a browser sends to a server asking for a page or an action.
  • Response: the server's answer to a request.
  • Server: the computer that hosts a website and answers requests.
  • Session: the server's memory of your logged-in visit, tied to identifiers in your cookies.
  • Session cache: the store where the server keeps the counts and state used to decide whether to limit a session.
  • X-Requested-With: a header that marks a request as a background call made by the page's JavaScript rather than a normal page load.

More from Clario

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.