> For the complete documentation index, see [llms.txt](https://0xss0rz.gitbook.io/0xss0rz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://0xss0rz.gitbook.io/0xss0rz/pentest/web-attacks/price-checkout-manipulation-methods.md).

# Price / Checkout Manipulation Methods

Ecommerce website exploitation

[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Y8Y41FQ2GA)

## Credit Cards

{% content-ref url="/pages/p0ktkcQ1g2hP8F0L6uZ9" %}
[Testing Credit Cards](/0xss0rz/pentest/web-attacks/testing-credit-cards.md)
{% endcontent-ref %}

Test cards are valid card credentials and function as fake credit cards that don't incur any charges; that's why they should only be accepted in development environments.

However, **it may be possible that these are still accepted in production**

## Price Tampering

<figure><img src="https://4199783661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFF3hT6DtJlHn9jAel9%2Fuploads%2FlZVrFyFcpY2Na7XtIadU%2F1741036578-image_1.avif?alt=media&amp;token=6bd023ad-dbc9-469f-88a2-f767a4ac71ae" alt=""><figcaption></figcaption></figure>

## Quantity Tampering

• If the product price parameter cannot be changed, change the quantity of products:

&#x20;• items\[1]\[quantity]= 1 –> 234 EUR&#x20;

• items\[1]\[quantity]= 0.1 –> 23.4 EUR&#x20;

• Congratulations, you bought the order for 10% of the price!

Try to add an item to your basket with:

* A negative quantity
* A decimal quantity
* And a quantity set to 0

Observe any changes to the final order price

<figure><img src="https://4199783661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFF3hT6DtJlHn9jAel9%2Fuploads%2FHfE0N7ipak4zHfNRJO74%2Fimage.png?alt=media&amp;token=760f1a5f-8803-462e-bbae-1ceb34c88144" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4199783661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFF3hT6DtJlHn9jAel9%2Fuploads%2FEV9jjMl1oog2YGE7nQc5%2F1741036690-image_3.avif?alt=media&amp;token=66d6c506-8903-42cf-98f5-50caa5f5cffb" alt=""><figcaption></figcaption></figure>

## Method 2

* Add 2 products to the basket – let’s consider a single product is $40&#x20;
* If the request is processed in this way: `{“items”:{“laptop”:1,”mobile”:1}}`&#x20;
* Change the JSON body to: `{“items”:{“laptop”:4,”mobile”:-2}}`&#x20;
* The cost will become $20 for 2 items: 4 \* $40 – 2 \* $70 = $160 – $140 = $20

<figure><img src="https://4199783661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFF3hT6DtJlHn9jAel9%2Fuploads%2FoTug5MqgHtGR6CzCqtX4%2Fimage.png?alt=media&amp;token=cf2ff0d1-650b-4e00-ba8d-1451fed7d796" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4199783661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFF3hT6DtJlHn9jAel9%2Fuploads%2FIpVnwUE2qN0bxEHiRfvA%2Fimage.png?alt=media&amp;token=2e85cc32-6dfc-4473-b863-25d31f14baa1" alt=""><figcaption></figcaption></figure>

## Method 3

* Select any item to purchase
* Select PayPal as a payment method, intercept all the requests
* Until you got a parameter called ‘amount’ from PayPal&#x20;
* Manipulate with the price and change it to 0.01$
* Pay, and wait for the confirmation

## Coupons

### Fuzzing

Most Common Coupons Codes

{% embed url="<https://github.com/sbrws/FuzzCoupons>" %}

{% embed url="<https://gist.github.com/ethagnawl/9dc6feccbb7ac4bc5527aca6a50ed39b>" %}

### Race Conditions

{% content-ref url="/pages/NDoL5sj4wVwGUFASAXJr" %}
[Race Conditons](/0xss0rz/pentest/web-attacks/race-conditons.md)
{% endcontent-ref %}

Redeem the same coupon multiple times

<figure><img src="https://4199783661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFF3hT6DtJlHn9jAel9%2Fuploads%2FjEXcuKojKFVhN4rSC4tg%2Fimage.png?alt=media&amp;token=879f63cf-d0a3-4c70-97ba-6e5c8c68c761" alt=""><figcaption></figcaption></figure>

If you have multiple coupon, try COUPON1 COUPON2 COUPON1 COUPON2 etc.

<figure><img src="https://4199783661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFF3hT6DtJlHn9jAel9%2Fuploads%2Fg6M30dZRS9SdAkaxPEYF%2Fimage.png?alt=media&amp;token=1ba11ae2-3c1c-40e6-abdc-b379cb202287" alt=""><figcaption></figcaption></figure>

### **Lack of expiration**

Seasonal coupons (such as limited promotions, Black Fridays, etc.) are all temporary coupons. Even in this scenario, if no validation is performed on the coupon, you should be able to use coupons and discounts that were issued a few months or even years ago.

## Currency Confusion

Inspect the request before payment finalization and see if you can alter the currency

<figure><img src="https://4199783661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFF3hT6DtJlHn9jAel9%2Fuploads%2FQK7rNzB4KNtwEesmHccp%2Fimage.png?alt=media&amp;token=a3c0f6cf-4d62-41ae-bd33-145714e05394" alt=""><figcaption></figcaption></figure>

## Interesting Books

{% content-ref url="/pages/VVT5FQq9z62bWoNAWCUS" %}
[Interesting Books](/0xss0rz/interesting-books.md)
{% endcontent-ref %}

{% hint style="info" %}
**Disclaimer**: As an Amazon Associate, I earn from qualifying purchases. This helps support this GitBook project at no extra cost to you.
{% endhint %}

* [**The Web Application Hacker’s Handbook**](https://www.amazon.fr/dp/1118026470?tag=0xss0rz-21) The go-to manual for web app pentesters. Covers XSS, SQLi, logic flaws, and more
* [**Bug Bounty Bootcamp: The Guide to Finding and Reporting Web Vulnerabilities**](https://www.amazon.fr/dp/1718501544?tag=0xss0rz-21) Learn how to perform reconnaissance on a target, how to identify vulnerabilities, and how to exploit them
* [**Real-World Bug Hunting: A Field Guide to Web Hacking**](https://www.amazon.fr/dp/1593278616?tag=0xss0rz-21) Learn about the most common types of bugs like cross-site scripting, insecure direct object references, and server-side request forgery.

## Resources

{% embed url="<https://www.intigriti.com/blog/news/top-5-price-manipulation-vulnerabilities-ecommerce>" %}

{% embed url="<https://soroush.me/downloadable/common-security-issues-in-financially-orientated-web-applications.pdf>" %}

## [Earn Free Crypto / BTC with Cointiply](https://cointiply.com/r/pkZxp)

[**Play Games Earn Cash Rewards**](https://cointiply.com/r/pkZxp)

<figure><img src="https://4199783661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFF3hT6DtJlHn9jAel9%2Fuploads%2FtT3srZzbUxV8iN6zjNrl%2Fimage.png?alt=media&amp;token=962e4759-e8b9-4e26-b998-6df524fdfaf8" alt=""><figcaption></figcaption></figure>
