API: Bug in method auth.signup , дающий возможность бесконечно звонить
- Triaged in 3 months
- Fixed in 4 months
- Paid in 4 months
- Disclosed after 13 months
Summary by the program
Отсутствие flood-контроля в api методе регистрации, что давало возможность отправлять массово смс или звонить на произвольный номер.
Summary by the researcher
В API Найдена уязвимость дающая бесконечно звонить и слать смс , лимит запросов можно было обойти.
(найдена практически такая же уязвимость , как и в репорте https://hackerone.com/reports/64963 ДАЮЩАЯ БЕСКОНЕЧНО ЗВОНИТЬ , но тут выплата 300$ , а там 500$)
На вопрос почему так ? - ответа не последовало.
UPD , ПЕРЕСМОТРЕЛИ НАГРАДУ ПЕРЕД ОТКРЫТИЕМ РЕПОРТА ПУБЛИЧНО
i die
███████████████████████████ ███████▀▀▀░░░░░░░▀▀▀███████ ████▀░░░░░░░░░░░░░░░░░▀████ ███│░░░░░░░░░░░░░░░░░░░│███ ██▌│░░░░░░░░░░░░░░░░░░░│▐██ ██░└┐░░░░░░░░░░░░░░░░░┌┘░██ ██░░└┐░░░░░░░░░░░░░░░┌┘░░██ ██░░┌┘▄▄▄▄▄░░░░░▄▄▄▄▄└┐░░██ ██▌░│██████▌░░░▐██████│░▐██ ███░│▐███▀▀░░▄░░▀▀███▌│░███ ██▀─┘░░░░░░░▐█▌░░░░░░░└─▀██ ██▄░░░▄▄▄▓░░▀█▀░░▓▄▄▄░░░▄██ ████▄─┘██▌░░░░░░░▐██└─▄████ █████░░▐█─┬┬┬┬┬┬┬─█▌░░█████ ████▌░░░▀┬┼┼┼┼┼┼┼┬▀░░░▐████ █████▄░░░└┴┴┴┴┴┴┴┘░░░▄█████ ███████▄░░░░░░░░░░░▄███████ ██████████▄▄▄▄▄▄▄██████████ ███████████████████████████
Context
VK.com exposes an API whose registration method, auth.signup, is meant to create accounts. As part of that flow the service can send an SMS or place a call to a phone number supplied by the caller, typically to deliver a confirmation code. Because the number is attacker-controlled, the method is a natural target for abuse: anyone who can call it repeatedly can turn the platform into a free SMS gateway or a call-origination service aimed at an arbitrary number.
The report is a bug bounty submission to the VK.com program on HackerOne, filed by the researcher pisarenko, classified as a violation of secure design principles, and disclosed on 13 February 2017. A bounty of 500.00 USD was paid. The program's own summary frames the issue as the absence of flood control in the API registration method, which allowed mass SMS sending or calls to an arbitrary number.
Setup
The report does not describe any accounts, roles, tooling or versions. The report states only that an API vulnerability allowed unlimited calls and SMS and that the request limit could be bypassed. No request, response, header or parameter is shown anywhere in the report.
Finding it
The researcher states that an API vulnerability was found that allows unlimited calls and SMS, and that the request limit could be circumvented. In other words, the method was rate limited in principle, but the limit was not effective: the researcher found a way around it and could keep triggering messages to a number without bound.
The researcher also notes that a practically identical vulnerability had already been reported, in report 64963, which likewise allowed unlimited calls. The comparison drawn is about the reward, not the technique: that earlier report paid 300 USD, while this one paid 500 USD. The researcher asked why the amounts differed and says no answer was given. The report was then updated to note that the reward was revised before the report was made public.
Exploitation
The report contains no step-by-step reproduction: no endpoint path beyond the method name, no parameters, no headers, no sample requests or responses, and no description of the specific bypass. What can be said from the text is limited to the following.
- The target is the API registration method.
- The method can send an SMS or place a call to an arbitrary number.
- A request limit exists on the method, and the researcher found a way to bypass it.
- With the limit bypassed, messages and calls could be triggered without bound against an arbitrary number.
The mechanics of the bypass are not disclosed in the report, so there is nothing further to reproduce here.
Root cause
The program attributes the issue to the absence of flood control in the API registration method. The researcher states that the request limit could be bypassed. The report does not identify the specific weakness in the limiting logic, so how the limit was evaded is unknown. The report does not identify the specific weakness in the limiting logic, so which property of the request the limit keyed on, and how it was evaded, is unknown.
Impact
An attacker could use the platform to send SMS or place calls to an arbitrary phone number without a practical limit. The direct consequences named in the report are mass SMS and unlimited calls. The direct consequences named in the report are mass SMS and unlimited calls to an arbitrary number. The report does not quantify volumes, costs or any further abuse such as harassment or toll fraud, and it does not state which numbers could be targeted beyond "an arbitrary number".
Fix
The program's summary points at flood control in the registration API method as the missing element, which indicates where the correction belongs, but no change is documented.
Variants to test
These are general directions suggested by the shape of this bug, not things the report tested.
- Other API methods that trigger outbound SMS or voice calls, such as login, password reset, phone verification and two-factor enrolment. A positive result is that repeated calls to the same number keep producing messages after the documented limit should have stopped them.
- Limits keyed on a property the client controls, for example a header, a device identifier or a parameter that can be varied per request. A positive result is that changing only that value resets the allowance while the target number stays the same.
- Limits applied per session or per token rather than per target number. A positive result is that fresh sessions or tokens each get a full allowance against one number.
- Limits enforced only on one path, with an alternate path to the same sending routine. A positive result is that the alternate path sends without any throttling.
Hunting notes
This class of bug hides in registration, authentication and verification flows that cause the server to send something to a user-supplied destination: SMS, voice calls, email. During recon, the signals are API methods that accept a phone number or address and whose responses indicate a message was dispatched, together with any documentation or observed behaviour about rate limits. The report states that the limit could be bypassed and that calls and SMS were unlimited, but gives no detail on how this was shown. The report itself gives no detail on how that demonstration was performed.
One point of context for readers comparing reports: the researcher explicitly linked this finding to an earlier, near-identical report on the same program that paid less, and the reward here was revised before public disclosure.
What happened, in plain words
VK.com is a large social network. Like most large websites, it offers an API: a set of addresses on its servers that programs, rather than people clicking buttons, can talk to. Think of an API as a service counter at a train station. You do not walk onto the platform yourself; you hand a request to the clerk at the counter, and the clerk does the work behind the scenes and hands you back a result.
One of those API methods is called auth.signup. Its job is to create a new account. To do that, it sends an SMS or places a call to the phone number. That is a normal and sensible design: the server sends a message to the number, you read the code, you type it back, and the account is created.
The problem is that the method can send SMS or place calls to an arbitrary number. If someone can call auth.signup over and over, they can make VK.com's servers send SMS after SMS, or place call after call, to any number they like. The person on the receiving end gets flooded with messages and calls. This kind of abuse is called flooding, and the usual defence is a rate limit (also called flood control): a rule that says "this caller may only do this a certain number of times per minute".
The researcher pisarenko found that the request limit could be bypassed, allowing unlimited calls and SMS. With the limit out of the way, the method could be used to send SMS and place calls without any practical bound. The report was filed on the VK.com bug bounty program on HackerOne (a bug bounty is a scheme where companies pay people who report security problems to them), classified as a violation of secure design principles, and disclosed publicly on 13 February 2017. A bounty of 500.00 USD was paid.
The program's own summary describes the issue as the absence of flood control in the API registration method, which allowed mass SMS sending or calls to an arbitrary number.
The pieces you need to know
Before the details, a few ideas that come up again and again.
- API method: a named action a program can ask a server to perform.
auth.signupis the name of one such action. The dot is just a naming convention, like a surname and a first name: theauthfamily, thesignupaction. - Rate limit / flood control: a cap on how often something may be done. A real-world comparison is a ticket machine that only sells one ticket per person per minute, so nobody can buy a hundred tickets and leave everyone else waiting.
- Bypass: getting around a control without breaking it outright. If the ticket machine limits you per person, and you can simply put on a hat and look like a different person, you have bypassed the limit.
- Arbitrary number: any phone number the attacker chooses, not just their own.
Setting the scene
The report does not describe any accounts, roles, tools or software versions. The report states only that an API vulnerability allowed unlimited calls and SMS and that the request limit could be bypassed. No request, response, header or parameter is shown anywhere in the report.
That last point matters for anyone hoping to repeat the test: the report tells you what the weakness was in general terms, but not the exact recipe.
Finding it
The researcher states that an API vulnerability was found that allows unlimited calls and SMS, and that the request limit could be circumvented. In plain terms: the method was rate limited in principle, but the limit was not effective. The researcher found a way around it and could keep triggering messages to a number without bound.
The researcher also notes that a practically identical vulnerability had already been reported, in report 64963, which likewise allowed unlimited calls. The comparison drawn is about the reward, not the technique: that earlier report paid 300 USD, while this one paid 500 USD. The researcher asked why the amounts differed and says no answer was given. The report was then updated to note that the reward was revised before the report was made public.
What the exploitation looked like
The report contains no step-by-step reproduction: no endpoint path beyond the method name, no parameters, no headers, no sample requests or responses, and no description of the specific bypass. What can be said from the text is limited to the following.
- The target is the API registration method.
- The method can send an SMS or place a call to an arbitrary number.
- A request limit exists on the method, and the researcher found a way to bypass it.
- With the limit bypassed, messages and calls could be triggered without bound against an arbitrary number.
The mechanics of the bypass are not disclosed in the report, so there is nothing further to reproduce here.
Why it worked
The program attributes the issue to the absence of flood control in the API registration method. The researcher states that the request limit could be bypassed. The report does not identify the specific weakness in the limiting logic, so how the limit was evaded is unknown. The report does not identify the specific weakness in the limiting logic, so which property of the request the limit keyed on, and how it was evaded, is unknown.
A useful comparison: a nightclub bouncer who counts people by their coats will let the same person in twice if they take their coat off and come back. The rule exists, but it is counting the wrong thing.
Who is affected
An attacker could use the platform to send SMS or place calls to an arbitrary phone number without a practical limit. The direct consequences named in the report are mass SMS and unlimited calls. The direct consequences named in the report are mass SMS and unlimited calls to an arbitrary number. The report does not quantify volumes, costs or any further abuse such as harassment or toll fraud, and it does not state which numbers could be targeted beyond "an arbitrary number".
The fix
The program's summary points at flood control in the registration API method as the missing element, which indicates where the correction belongs, but no change is documented.
Similar things worth testing
These are general directions suggested by the shape of this bug, not things the report tested.
- Other API methods that trigger outbound SMS or voice calls, such as login, password reset, phone verification and two-factor enrolment. A positive result is that repeated calls to the same number keep producing messages after the documented limit should have stopped them.
- Limits keyed on a property the client controls, for example a header, a device identifier or a parameter that can be varied per request. A positive result is that changing only that value resets the allowance while the target number stays the same.
- Limits applied per session or per token rather than per target number. A positive result is that fresh sessions or tokens each get a full allowance against one number.
- Limits enforced only on one path, with an alternate path to the same sending routine. A positive result is that the alternate path sends without any throttling.
Notes for people who hunt these bugs
This class of bug hides in registration, authentication and verification flows that cause the server to send something to a user-supplied destination: SMS, voice calls, email. During recon (the early stage of looking around a target to see what it offers), the signals are API methods that accept a phone number or address and whose responses indicate a message was dispatched, together with any documentation or observed behaviour about rate limits. The report states that the limit could be bypassed and that calls and SMS were unlimited, but gives no detail on how this was shown. The report itself gives no detail on how that demonstration was performed.
One point of context for readers comparing reports: the researcher explicitly linked this finding to an earlier, near-identical report on the same program that paid less, and the reward here was revised before public disclosure.
Glossary
- API: a set of addresses and actions on a server that programs can call directly, instead of a person clicking through a website.
- API method: one named action within an API, here
auth.signup. - auth.signup: the VK.com API registration method named in the report title.
- Bug bounty: a scheme in which a company pays people who report security problems to it.
- Bypass: getting around a security control without removing it, so the control still appears to be in place.
- Flood control: another name for rate limiting, a rule that caps how often an action may be repeated.
- HackerOne: the platform on which this report was filed and disclosed.
- Rate limit: a cap on how many times something may be done in a given period.
- Recon: the early stage of examining a target to learn what it offers and where to look.
- Root cause: the underlying reason a weakness exists, as opposed to its visible symptom.
- SMS gateway: a service that sends text messages on behalf of a platform; here, the platform itself is effectively turned into one.
- Token: a value that identifies a session or a caller to a server; limits keyed on tokens can be reset by obtaining new ones.
- Violation of secure design principles: a category of weakness where the design of a feature, rather than a coding slip, leaves room for abuse.