Sitemap
InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. Subscribe to our weekly newsletter for the coolest infosec updates: https://weekly.infosecwriteups.com/

Bug Bounty
Hacker
Testing
AI
Information Security

Business Logic Error - Bypassing Payment with Test Cards

--

Business logic bugs are sneaky. They’re not about crashing servers or SQLi, but about using an app exactly as intended but in a way that breaks the business.

During reconnaissance I observed that many YWH/HackerOne programs implement some rudimentary checks to filter payment test card credentials on production environment.

While carrying out a Bug hunt on Spacelift on YWH, I attempted the payment flow using test card credentials against the production checkout and guess what? The gateway accepted the test card, indicating the payment integration was operating in test mode or insufficiently validating live tokens.

Why is this an issue?

Any platform that allows test card credentials to go through without any checks to confirm whether the details are real shows a serious flaw.

Observing this and comparing it with other sites, I notice the business logic assumed any “attempted” payment was valid, without verifying the actual transaction status of the card.

Get Umanhonlen Gabriel’s stories in your inbox

Join Medium for free to get updates from this writer.

Tips:

Always check for simple test credential validation on production environments. Some programs may consider it a flaw, while others may not. However, this remains a crucial logic issue worth verifying in every target.

{Sample of a secure payment gateway.}

Press enter or click to view image in full size

Reference:

https://shahjerry33.medium.com/business-logic-errors-art-of-testing-cards-4907cfb46a57

Feel Free to connect with me on LinkedIn or X :

https://www.linkedin.com/in/umanhonlen/

https://x.com/sudosu01

Bug Bounty
Hacker
Testing
AI
Information Security

--

--

InfoSec Write-ups
InfoSec Write-ups

Published in InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. Subscribe to our weekly newsletter for the coolest infosec updates: https://weekly.infosecwriteups.com/

Umanhonlen Gabriel
Umanhonlen Gabriel

Written by Umanhonlen Gabriel

You are the strength behind the system. | Cyber Security Professional & Security Researcher