The Bug That Kept On Giving :: PaymentBypass :: Eposed Return Url
The payment server did not verify that an order was actually paid, instead trusting a return URL supplied by the payment provider. An attacker could intercept the payment status response, extract the return URL, and visit it to falsely mark the order as complete, receiving the goods without paying.
Published on crypt0g30rgy.github.io
A story of the second bug i found after my Initial payment bypass via the QR CODE.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
This is the second bug I found in the same program, jij0, after my initial payment bypass via the QR code. jij0 runs a website that offers an option to buy e-giftcards at https://jij0.be/jij0-gift, which redirects you to https://gifts.jij0.be.
The purchase flow on the gift card site runs like this: select a ticket, get taken to the cart, fill in all the details, verify the info, select payment (QR code), get a QR code, then scan the QR code to pay. The QR payment step is the vulnerable area.
The problem was that the server lacked validation and relied on the return URL that the payment provider would use when the payment was successful. The backend did not validate this URL to make sure that the order had actually been paid.
Setup
No special accounts or roles are described beyond going through the normal gift card purchase flow on gifts.jij0.be. The tooling used was Burp Suite, specifically its response interception feature, to catch and modify the payment status response.
Finding it
The issue that gave rise to this bug was that the server lacked validation and relied on the return URL that the payment provider would use when the payment was successful. The backend did not validate this URL to make sure that the order had been paid.
The issues were as follows:
gifts.jij0.medidn't validate that we indeed have paid the order.- The payment provider returned the onSuccess payment redirect URL in the JSON response (not an issue for the payment provider).
gifts.jij0.merelied on this returned URL to validate successful payment.
The best option here would be using webhooks to validate that orders have been paid.
Exploitation
Step 1: Reach the QR payment step
- Visit
gifts.jij0.be. - Select a ticket.
- Get taken to cart, fill in all the details, verify info, select payment (QR code), get QR code, scan QR to payment.
Step 2: Intercept the status request
Open Burp and intercept the request with the payment info. The request is a GET with an empty body:
GET /v1/status?authorisation=[id here]&transaction=[id here]
The request is a GET with an empty body.
Step 3: Intercept the response
Select Burp's do intercept response option. The intercepted response should contain a JSON parameter with the following structure:
{"Response":[{"IssuerTransaction":{"uuid":"[uuid]","created":"[time stamp]","updated":"time stamp","name":"jij0","description":"1291","amount":{"currency":"USD","value":"13.37"},"status":"CREATED","transaction_id":"[id]","purchase_id":"[alphanumeric id]","return_url":"https://gifts.jij0.be/complete.shtml?sessionId=id&pspEchoData=[data]&ec=[data]","qr":{"qr_data":"[base64 image data]","qr_content_type":"image/png"}}}]}
The response contains a return_url field alongside status: CREATED.
Step 4: Extract the return URL
Extract the return_url from the response:
["return_url":"https://gifts.jij0.be/complete.shtml?sessionId=id&pspEchoData=[data]"]
Step 5: Use the return URL
Now you should receive a green check to show payment complete. After several minutes you should receive email confirmation of your purchase.
I made a report and sent it to the program and after a few days it got accepted as a high severity and a bounty of €500 was awarded.

Root cause
The backend of the gift card site did not verify with the payment provider that the order had actually been paid. Instead it trusted the return_url that the payment provider returned in the status JSON response, and treated a visit to that URL as proof of a successful payment. The provider returned the onSuccess payment redirect URL in the JSON response, and the site relied on this returned URL to validate successful payment. The provider's behaviour is not itself a flaw; the mistake is on the merchant side, where the return URL was used as the validation signal rather than a webhook or a server-side status check.
Impact
Visiting the return URL gives a green check showing payment complete, and after several minutes an email confirmation of the purchase.
Fix
The report says the best option here would be using webhooks to validate orders have been paid.
Variants to test
- Intercept the status response for a pending transaction and look for a success or return URL field while the status is still unpaid.
- Try visiting the success or return URL directly without completing payment. A positive result is a confirmation page or email for an unpaid order.
- A positive result is an order fulfilled without a matching provider transaction.
What happened, in plain words
A security researcher found a way to get gift cards from an online shop without paying for them. The shop, jij0, sells e-giftcards: digital vouchers you buy online and send to someone, instead of a plastic card from a shop shelf. You pick a ticket, go through a cart, fill in your details, and pay by scanning a QR code with your phone. A QR code is that square barcode-looking image that a phone camera can read.
The shop's website had a flaw in how it decided whether you had paid. When you reach the payment step, the shop asks the payment provider (the outside company that actually handles the money) about your order. The provider sends back a bundle of information about the order, and that bundle includes a web address (a URL) that the provider would normally send you to once payment succeeds. The shop's own server trusted that address as proof of payment. So if you could read that address before paying, you could open it yourself, and the shop would show a green check and email you a confirmation.
This is the second bug the researcher found in the same program, after an earlier payment bypass involving the QR code. The report was accepted as high severity and a bounty of €500 was awarded.

Background you need first
A few ideas come up again and again below, so here they are from zero.
A website and its server. When you use a website, your browser (Chrome, Firefox, Safari) shows you pages and sends requests to a computer somewhere else called a server. The server is the part that holds the shop's data and decides what is true: which orders exist, which are paid, which gift cards have been issued. Your browser can be told to lie, but the server is supposed to check things for itself.
A URL. A URL is just a web address, like https://gifts.jij0.be/complete.shtml. The part after the ? is called the query string, and it carries small pieces of data, for example ?sessionId=id. Think of a URL as a form you hand to a clerk: the address says which desk to go to, and the query string is the scribbled note attached to it.
An API and a JSON response. An API (application programming interface) is a way for one piece of software to talk to another, rather than a page meant for human eyes. When your browser talks to the shop's API, the answer often comes back as JSON: a text format for structured data, using curly braces {} for objects, square brackets [] for lists, and "name": value pairs. It looks like a form filled in by a machine, and it is meant to be read by code, not by people.
A request and a response. Every time your browser (or a tool) asks a server for something, that is a request. The server's answer is the response. A request has a method, such as GET (please give me something) or POST (here is some data, please act on it), a path such as /v1/status, and sometimes a body, which is extra data sent along with it.
Intercepting. A tool called Burp Suite sits between your browser and the server like a postal worker who opens every letter. It can pause a request on its way out, or a response on its way back, so you can read and change it before it continues. That is what "intercept" means here: catch it in transit.
A payment provider and a return URL. Shops rarely handle card or QR payments themselves. They hand that job to a payment provider. When the payment succeeds, the provider sends the buyer's browser back to the shop at a prearranged address, the return URL, so the shop can show a thank-you page. The safe way for the shop to confirm payment is to ask the provider directly, server to server, often through a mechanism called a webhook: the provider sends the shop's server a message saying "this order is paid". The unsafe way is to trust the return URL alone, because a URL is just an address that anyone who knows it can open.
The vulnerability class. This is a payment bypass caused by missing server-side validation. The shop's server did not check with the provider that money had arrived. It relied on a value that the buyer's own browser could see and reuse. In everyday terms: a bouncer who lets you into a concert because you are holding a piece of paper that says "ticket", without checking whether the ticket was ever paid for.
How the researcher got there
The researcher had already found one payment bypass in this program through the QR code, and this is the follow-up. The program is jij0. Its website offers an option to buy e-giftcards at https://jij0.be/jij0-gift, which redirects you to https://gifts.jij0.be.
The purchase flow on the gift card site runs like this: select a ticket, get taken to the cart, fill in all the details, verify the info, select payment (QR code), get a QR code, then scan the QR code to pay. The QR payment step is the vulnerable area.
The setup
No special accounts or roles are described beyond going through the normal gift card purchase flow on gifts.jij0.be. The tooling used was Burp Suite, specifically its response interception feature, to catch and modify the payment status response.
Finding the flaw
The issue that gave rise to this bug was that the server lacked validation and relied on the return URL that the payment provider would use when the payment was successful. The backend did not validate this URL to make sure that the order had been paid.
The issues were as follows:
gifts.jij0.medidn't validate that we indeed have paid the order.- The payment provider returned the onSuccess payment redirect URL in the JSON response (not an issue for the payment provider).
gifts.jij0.merelied on this returned URL to validate successful payment.
The best option here would be using webhooks to validate that orders have been paid.
Read those three points as a chain. First, the shop's server never confirmed with the provider that money arrived. Second, the provider, quite reasonably, includes the success redirect address in the status information it sends back; that is not the provider's fault. Third, the shop took that address as the proof. Each link is harmless alone; together they let a buyer skip the payment.
Exploitation, step by step
Step 1: Reach the QR payment step
- Visit
gifts.jij0.be. - Select a ticket.
- Get taken to cart, fill in all the details, verify info, select payment (QR code), get QR code, scan QR to payment.
Why: you need a real, pending order so that the shop has something to ask the payment provider about. The order exists, but no money has moved yet.
Step 2: Intercept the status request
Open Burp and intercept the request with the payment info. The request is a GET with an empty body:
GET /v1/status?authorisation=[id here]&transaction=[id here]
Line by line:
GETis the method: the browser is asking the server to give it something, not to change anything./v1/statusis the path: the status-check endpoint of the shop's API. "v1" is just a version label in the address.?authorisation=[id here]&transaction=[id here]is the query string. It carries two identifiers, one for the authorisation and one for the transaction, separated by&. The square brackets mark where the real values would go; they are placeholders, not literal text.- The request has an empty body, which the report notes explicitly. It is just "tell me the status of this order", identified only by those two values.
Why intercept it: this is the moment the shop asks the provider about the order, so the answer that comes back is exactly the information the shop will use to decide whether you paid.
Step 3: Intercept the response
Select Burp's do intercept response option. The intercepted response should contain a JSON parameter with the following structure:
{"Response":[{"IssuerTransaction":{"uuid":"[uuid]","created":"[time stamp]","updated":"time stamp","name":"jij0","description":"1291","amount":{"currency":"USD","value":"13.37"},"status":"CREATED","transaction_id":"[id]","purchase_id":"[alphanumeric id]","return_url":"https://gifts.jij0.be/complete.shtml?sessionId=id&pspEchoData=[data]&ec=[data]","qr":{"qr_data":"[base64 image data]","qr_content_type":"image/png"}}}]}
Line by line, in plain words:
- The outermost
{ ... }is one JSON object, the whole answer. "Response"is a list (the square brackets[ ]), and inside it sits one object describing the transaction."IssuerTransaction"is that object: the details of the payment as the provider sees them."uuid","transaction_id"and"purchase_id"are identifiers: unique labels for this transaction and this purchase. They are placeholders here."created"and"updated"are timestamps, the date and time the record was made and last changed."name":"jij0"and"description":"1291"are labels attached to the transaction."amount"is a nested object with"currency":"USD"and"value":"13.37": the price of the order."status":"CREATED"is the crucial field. The transaction has been created but is not paid. If it were paid, you would expect a different status."return_url"is the address the provider would send the buyer to after a successful payment:https://gifts.jij0.be/complete.shtml?sessionId=id&pspEchoData=[data]&ec=[data]. ThesessionId,pspEchoDataandecvalues are placeholders for data the provider attaches."qr"holds the QR code itself:"qr_data"is the image encoded as base64 (a way of writing binary data as plain text), and"qr_content_type":"image/png"says it is a PNG image.
The response contains a return_url field alongside status: CREATED.
Why this step matters: without intercepting the response, you would never see the return_url, because it is not shown on the page. It is buried in machine-readable data.
Step 4: Extract the return URL
Extract the return_url from the response:
["return_url":"https://gifts.jij0.be/complete.shtml?sessionId=id&pspEchoData=[data]"]
This is the same field as above, pulled out on its own so it can be copied. It is the address of the shop's completion page, with the session and provider data attached. In everyday terms, it is the "payment successful, here is your receipt" door, and now you know where it is.
Step 5: Use the return URL
Now you should receive a green check to show payment complete. After several minutes you should receive email confirmation of your purchase.
Why this works: the shop's server relied on the returned URL to validate successful payment, so visiting it gives a green check and a confirmation email.
I made a report and sent it to the program and after a few days it got accepted as a high severity and a bounty of €500 was awarded.

Why it worked
The backend of the gift card site did not verify with the payment provider that the order had actually been paid. Instead it trusted the return_url that the payment provider returned in the status JSON response, and treated a visit to that URL as proof of a successful payment. The provider returned the onSuccess payment redirect URL in the JSON response, and the site relied on this returned URL to validate successful payment. The provider's behaviour is not itself a flaw; the mistake is on the merchant side, where the return URL was used as the validation signal rather than a webhook or a server-side status check.
A comparison: imagine a hotel where the receptionist hands every guest a card that says "room paid" at check-in, before any payment is taken, and the door lock only reads the card. Anyone who gets the card gets the room. The card printer is not at fault; the hotel should have checked the payment before printing it.
What someone could do with it
Visiting the return URL gives a green check showing payment complete, and after several minutes an email confirmation of the purchase.
How to fix it
The report says the best option here would be using webhooks to validate orders have been paid.
A webhook, explained simply: instead of the shop believing a customer who says "I paid", the payment provider itself sends the shop's server a signed message saying "this order is paid". The shop's server can then check that message before releasing the gift card. The customer's browser is never the source of truth.
Other places to look for the same pattern
- Intercept the status response for a pending transaction and look for a success or return URL field while the status is still unpaid. A positive result is a URL that, when visited, marks the order complete.
- Try visiting the success or return URL directly without completing payment. A positive result is a confirmation page or email for an unpaid order.
- A positive result is an order fulfilled without a matching provider transaction.
These are variations on one question: does the shop decide that you paid based on something your own browser can see or say, rather than on a check with the payment provider?
Glossary
- API: a way for software to talk to other software, usually exchanging structured data rather than web pages.
- Base64: a way of writing binary data, such as an image, as plain text characters.
- Bounty: a reward, usually money, paid by a company to a researcher who reports a security flaw.
- Burp Suite: a tool that sits between your browser and a server so you can pause, read and change requests and responses.
- E-giftcard: a digital voucher bought online and delivered electronically instead of as a physical card.
- GET: an HTTP method meaning "give me this", used for requests that only read data.
- HTTP: the language browsers and servers use to exchange requests and responses.
- Intercept: to catch a request or response in transit and hold it so it can be inspected or altered.
- JSON: a text format for structured data, using objects
{}, lists[]and"name": valuepairs. - Payment bypass: getting an order fulfilled without actually paying for it.
- Payment provider: an outside company that handles the actual money movement for a shop.
- Query string: the part of a URL after the
?, carrying small pieces of data asname=valuepairs. - QR code: a square barcode-like image that a phone camera can read, often used to start a payment.
- Request: a message your browser or tool sends to a server asking for something or sending data.
- Response: the server's answer to a request.
- Return URL: the web address a payment provider sends the buyer to after a successful payment.
- Server-side validation: checking something on the server, where the user cannot tamper with it, rather than trusting what the browser sends.
- Status: a field describing the current state of a transaction, for example created or paid.
- Transaction: one record of a payment attempt, with its own identifiers, amount and status.
- URL: a web address, optionally with a query string carrying data.
- UUID: a long identifier meant to be unique, used to label a record such as a transaction.
- Webhook: a message sent automatically from one server to another when something happens, used here so the provider tells the shop directly that an order is paid.