Skip to content
IDOR Disclosed report Beginner

IDOR: leak buyer info & Publish/Hide foreign comments

Changing the comment identifier in the curate request returned another comment with the buyer's name and email; the title also claims foreign comments could be published or hidden.

errorinhuman Follow

Originally disclosed on HackerOne

Bounty$1,250 High 7.5 View original
  • Triaged in 11 days
  • Fixed in 14 days
  • Paid in 11 days
  • Disclosed after 4 months

HI @judgeme! I noticed that the attacker can learn email users who left feedback at the time of buying.

Step to reproduce:

  1. Login to our store and install your 'Checkout Comments' addon
  2. Make fake order in or store and write a comment

███

  1. Then go to our Shopify /admin/apps/checkout-comments/extensions/checkout_comments/comments
  2. Publish our comment and Intercept request with burp. Send request to Repeater. Request example:

POST /extensions/checkout_comments/curate_comment HTTP/1.1 Host: judge.me Cookie: _judgeme_session=████████████████; _ga=GA1.2.1935027813.1637882690; _gid=GA1.2.2043288340.1637882690; _fbp=fb.1.1637882690590.2069272048; _gat_UA-28424713-2=1 User-Agent: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.7113.93 Safari/537.36 Accept: / Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: https://judge.me/extensions/checkout_comments/comments?platform=shopify&shop_domain=test-hackerone-glis.myshopify.com&page=3&offset=50 X-Csrf-Token: ████== Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With: XMLHttpRequest Content-Length: 23 Origin: https://judge.me Te: trailers Connection: close

comment_id=1&curated=ok

  1. Edit comment_id=random_id and in Response we can see buyer information (for example):

{"comment":{"id":1,"content":"classic dress watch for weddings","created_at":"over 3 years ago","product":{"title":"Dress Watch","url":"https://████.myshopify.com/products/dress-watch"},"buyer":{"name":"F F","email":"██████████@gmail.com"},"published_status":true,"published_status_text":"Published","curated":"ok"}}

██████

Video POC:

██████

Impact

Buyer information leaks and other

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Judge.me is a reviews and comments platform used by online stores, and the report concerns its Checkout Comments addon. The feature lets a merchant collect comments from buyers during checkout and then curate them from a Shopify admin page. The curation page lives at /admin/apps/checkout-comments/extensions/checkout_comments/comments inside the Shopify admin, and the actions on that page are sent to the Judge.me host judge.me under /extensions/checkout_comments/.

The report demonstrates the publish action, and its title also names hiding foreign comments. Both are driven by a comment_id parameter sent to the curation endpoint. The report shows that changing the identifier returns another comment's data, including buyer details.

Setup

To reproduce the issue the researcher needed:

  1. A store account with the Checkout Comments addon installed.
  2. The ability to place a fake order in that store and write a comment, so that a comment exists to curate.
  3. A Shopify admin session for that store, to reach the curation page.
  4. An intercepting proxy (Burp) to capture and replay the curation request.

The request carries a session cookie (_judgeme_session) and an X-Csrf-Token header, both of which are present in the captured request, so the attacker is assumed to be an authenticated merchant operating their own store.

Finding it

The researcher noticed that a merchant could learn the email addresses of users who left feedback at the time of buying. The curation request identifies the comment only by comment_id, and the response returns the full comment object, including the buyer's name and email. The identifier is a small integer, and the response for comment_id=1 returns a comment with buyer details. The same parameter drives the publish action, so the request both returns data and changes the comment's state.

Exploitation

Step 1: install the addon and create a comment

Log in to the store, install the Checkout Comments addon, place a fake order and write a comment. This produces a comment owned by the attacker's own store, which is used to capture a legitimate request.

Step 2: open the curation page and intercept

Go to the Shopify admin path:

Text
/admin/apps/checkout-comments/extensions/checkout_comments/comments

Publish the comment and intercept the resulting request in Burp. Send it to Repeater. The captured request is:

HTTP
POST /extensions/checkout_comments/curate_comment HTTP/1.1
Host: judge.me
Cookie: _judgeme_session=[redacted]; _ga=GA1.2.1935027813.1637882690; _gid=GA1.2.2043288340.1637882690; _fbp=fb.1.1637882690590.2069272048; _gat_UA-28424713-2=1
User-Agent: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.7113.93 Safari/537.36
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://judge.me/extensions/checkout_comments/comments?platform=shopify&shop_domain=test-hackerone-glis.myshopify.com&page=3&offset=50
X-Csrf-Token: [redacted]
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 23
Origin: https://judge.me
Te: trailers
Connection: close

comment_id=1&curated=ok

The body has two parameters: comment_id, which selects the comment, and curated=ok, which is the publish action. The Referer shows the shop domain and pagination of the curation page, and the X-Csrf-Token header is the anti-CSRF token for the session. The request is an XMLHttpRequest sent from https://judge.me to the same origin.

Step 3: change the identifier

Edit comment_id to a random identifier. The response returns the buyer information for that comment. For example:

The response includes the comment content, its age, the product title and URL, the buyer's name and email, and the publication state. The same request performs the curation action, and the title names publishing or hiding foreign comments. The report's impact section summarises this as buyer information leaks and other effects, and the title names both the leak of buyer information and the ability to publish or hide foreign comments.

Root cause

The curation endpoint authorises the request at the session level but does not check that the comment identified by comment_id belongs to the store making the request. The identifier is a small integer, which invites trying other values. The CSRF token and session cookie protect against cross-site request forgery and unauthenticated access, but neither binds the object to the caller, which is exactly the gap an IDOR exploits. The report does not include the server-side code, so the precise location of the missing check is not shown.

Impact

An authenticated merchant can change comment_id and read the buyer name, email, comment content, product title and product URL returned in the response. The title names the ability to publish or hide foreign comments. The report rates this as high severity with a CVSS score of 7.5, and the disclosed bounty was 1250 USD. The leak is limited to data returned by the curation endpoint and to comments that exist in the system; the report does not describe any further escalation.

Fix

The report does not state what change was made. The fix implied by the flaw is to scope every lookup and state change on comment_id to the authenticated store, rejecting identifiers that do not belong to it, and to return a generic error rather than the object when the check fails.

Variants to test

  1. Other curation actions. Try the hide action alongside publish, and any other action that takes comment_id, to see whether the ownership check is missing on all of them or only on one. A positive result is a state change on a comment from another store.
  2. Other object identifiers. Look for endpoints that take a numeric comment_id, review_id, order_id or similar and return an object with buyer or customer fields. A positive result is another store's data in the response.
  3. Bulk or list endpoints. Check whether list endpoints accept a store or shop parameter that can be swapped, as the Referer here shows shop_domain in the query string. A positive result is comments from a domain other than the caller's.
  4. Non-numeric identifiers. If identifiers are UUIDs, test whether they leak through other responses, exports or emails before assuming enumeration is impossible.

Hunting notes

This kind of bug tends to hide in multi-tenant SaaS features where a merchant-facing UI calls a shared backend with an object identifier in the body. The signals during recon are endpoints under a path like /extensions/<feature>/ that take an id parameter, responses that embed full objects rather than a status, and admin pages whose Referer carries a shop or tenant parameter. The researcher demonstrated impact by showing a response containing a buyer's name and email.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

Judge.me is a service that online shops use to collect and show reviews and comments from their customers. One of its features is called Checkout Comments: it lets a shop ask buyers to leave a comment while they are paying, and then the shop owner can look at those comments in a page inside the Shopify admin (the control panel where shop owners manage their store) and decide which ones to show publicly and which ones to hide.

A security researcher found that this "show or hide" action had a serious flaw. When the shop owner clicks publish or hide, the browser sends a small message to Judge.me's servers saying "please change the comment with this number". The servers trusted that number completely. They never checked whether the comment actually belonged to the shop that was asking. So a shop owner could change the number and the server would send back a comment's buyer details, including the buyer's name and email address.

This kind of bug has a name: IDOR, which stands for Insecure Direct Object Reference. The everyday comparison is a cloakroom. You hand in your ticket with the number 12 and get coat number 12 back. Now imagine the attendant never checks that ticket 12 is really yours, and that you can just write "13" on your ticket and walk away with someone else's coat. The number is the "direct object reference", and the fact that nobody checks who owns it is the "insecure" part.

The researcher rated this as high severity, with a CVSS score of 7.5 (CVSS is a standard scoring system where higher numbers mean more serious problems), and the disclosed bounty was 1250 USD.

Background you need first

Before walking through the steps, here are the ideas the report relies on, explained from zero.

What an API is

An API is the way one piece of software talks to another. When you click a button in a web page, the page usually does not reload; instead it quietly sends a small message to a server in the background and gets an answer back. That message is an HTTP request, and the answer is an HTTP response. Think of a restaurant: the menu and the waiter are the API. You do not walk into the kitchen yourself, you tell the waiter what you want and the waiter brings it back.

What a cookie is

A cookie is a small piece of text that a website stores in your browser so it can recognise you on the next request. When you log in, the server gives your browser a cookie containing a session identifier, and the browser sends that cookie back with every request. It is like a wristband at a festival: you show it once at the gate, and after that the staff just glance at your wrist instead of asking for your ID again. In the captured request below, the cookie named _judgeme_session is the one that proves who is logged in.

What a CSRF token is

A CSRF token (Cross-Site Request Forgery token) is a random value that the page includes in each form or request so the server can tell that the request really came from the page it served, and not from some other website trying to trick your browser. It is like a numbered claim ticket that matches the one the shop kept: if the numbers do not match, the shop refuses. In the request below it travels in the X-Csrf-Token header.

What a header is

An HTTP request is made of a first line (the method and the path), then a list of headers (extra pieces of information such as the cookie, the browser type, the language), then a blank line, then an optional body (the actual data being sent). Headers are like the labels on a parcel: who sent it, what is inside, how it should be handled.

What an intercepting proxy is

An intercepting proxy is a tool that sits between your browser and the website and lets you pause, read and edit the traffic going back and forth. Burp (Burp Suite) is one such tool. Its Repeater tab lets you take a captured request, change a value, and send it again as many times as you like, watching the response each time. It is like being able to open a letter, change a word, reseal it, and post it again.

What the vulnerability class means

An IDOR happens when a program takes an identifier supplied by the user (a number, a name, a code) and uses it to look something up, without checking that the user is allowed to access that particular thing. The fix is always the same idea: before acting, check that the object belongs to the person asking.

Setting up the test

To reproduce the issue the researcher needed four things:

  1. A store account with the Checkout Comments addon installed.
  2. The ability to place a fake order in that store and write a comment, so that there is at least one comment to work with.
  3. A Shopify admin session for that store, to reach the curation page.
  4. An intercepting proxy (Burp) to capture and replay the curation request.

The captured request carries a session cookie (_judgeme_session) and an X-Csrf-Token header, so the attacker in this scenario is a logged-in merchant operating their own store. In other words, this is not a stranger on the internet; it is a legitimate shop owner who abuses the trust the server places in them.

Finding it

The researcher noticed that a merchant could learn the email addresses of users who left feedback at the time of buying. The curation request identifies the comment only by comment_id, and the response returns the full comment object, including the buyer's name and email. Because the identifier is a small integer, changing it to another value returns another store's comment. The same parameter also controls the publish and hide actions, so the flaw is both a data leak and a state change on foreign objects.

Exploitation, step by step

Step 1: install the addon and create a comment

Log in to the store, install the Checkout Comments addon, place a fake order and write a comment. This produces a comment owned by the attacker's own store, which is used to capture a legitimate request. The reason for this step is simple: to study a request, you first need a real one to look at. By creating your own comment, you know exactly what a normal, legitimate publish action looks like, and you have a baseline to compare against later.

Step 2: open the curation page and intercept

Go to the Shopify admin path:

Text
/admin/apps/checkout-comments/extensions/checkout_comments/comments

This is the page inside the Shopify admin where the shop owner reviews the comments collected at checkout. The path is made of several parts: /admin/apps/ is the Shopify admin area for installed apps, checkout-comments is the app, extensions/checkout_comments is the specific feature inside it, and comments is the list of comments. Opening this page is how the researcher reached the interface that sends the publish and hide actions.

Publish the comment and intercept the resulting request in Burp. Send it to Repeater. The captured request is:

HTTP
POST /extensions/checkout_comments/curate_comment HTTP/1.1
Host: judge.me
Cookie: _judgeme_session=[redacted]; _ga=GA1.2.1935027813.1637882690; _gid=GA1.2.2043288340.1637882690; _fbp=fb.1.1637882690590.2069272048; _gat_UA-28424713-2=1
User-Agent: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.7113.93 Safari/537.36
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://judge.me/extensions/checkout_comments/comments?platform=shopify&shop_domain=test-hackerone-glis.myshopify.com&page=3&offset=50
X-Csrf-Token: [redacted]
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 23
Origin: https://judge.me
Te: trailers
Connection: close

comment_id=1&curated=ok

Line by line, in plain words:

  • POST /extensions/checkout_comments/curate_comment HTTP/1.1: this is the first line of the request. POST is the method used when you are sending data that will change something on the server (as opposed to GET, which just asks for a page). The path /extensions/checkout_comments/curate_comment is the address of the action on Judge.me's servers, and HTTP/1.1 is the version of the protocol being spoken. "Curate" here means "decide whether to show or hide".
  • Host: judge.me: tells the server which website the request is for. One server can host many sites, so this header says which one.
  • Cookie: _judgeme_session=[redacted]; ...: the cookies the browser is sending. The important one is _judgeme_session, which identifies the logged-in merchant. The others (_ga, _gid, _fbp, _gat_UA-28424713-2) are analytics cookies from Google Analytics and Facebook, not part of the security check.
  • User-Agent: ...: tells the server which browser and operating system made the request. Here it is Chrome 99 on Windows.
  • Accept: */*: says the browser will accept any kind of response.
  • Accept-Language: en-US,en;q=0.5: says the browser prefers English (US), with English as a fallback.
  • Accept-Encoding: gzip, deflate: says the browser can handle compressed responses, which saves bandwidth.
  • Referer: https://judge.me/extensions/checkout_comments/comments?platform=shopify&shop_domain=test-hackerone-glis.myshopify.com&page=3&offset=50: tells the server which page the request came from. Notice the query string: it names the platform (shopify), the shop domain (test-hackerone-glis.myshopify.com), and the pagination (page=3&offset=50). This is a useful clue later, because it shows the shop is identified in the URL.
  • X-Csrf-Token: [redacted]: the anti-CSRF token for this session, as explained above. The server uses it to confirm the request came from the real page.
  • Content-Type: application/x-www-form-urlencoded; charset=UTF-8: says the body is formatted like a URL query string (key=value pairs joined by &), encoded in UTF-8.
  • X-Requested-With: XMLHttpRequest: a header that browsers add when the request is made by JavaScript in the page rather than by a full page load. It is a common signal that the request is an AJAX call.
  • Content-Length: 23: the size of the body in bytes. The body comment_id=1&curated=ok is 23 characters long, which matches.
  • Origin: https://judge.me: says which site the request was sent from. Here it is the same site, judge.me, so this is a same-origin request.
  • Te: trailers: tells the server the client can handle trailing headers (a rarely used HTTP feature).
  • Connection: close: asks the server to close the connection after this response instead of keeping it open for reuse.
  • The blank line separates the headers from the body.
  • comment_id=1&curated=ok: the body. It has two parameters. comment_id=1 selects which comment to act on. curated=ok is the publish action ("curate this comment as OK", meaning show it).

The reason for capturing this request is that it is the exact message the browser sends when the shop owner clicks publish. Once you have it in Burp, you can change any part of it and send it again, which is what the next step does.

Step 3: change the identifier

Edit comment_id to a random identifier. The response returns the buyer information for that comment. For example:

This is a JSON response, which is a standard text format for structured data: curly braces hold objects, and each object has named fields. Reading it field by field:

  • "comment": the outer object, holding everything about the comment.
  • "id":1: the identifier of the comment. This is the same number that was sent in comment_id.
  • "content":"classic dress watch for weddings": the text the buyer wrote.
  • "created_at":"over 3 years ago": how old the comment is, shown in human-friendly form.
  • "product": an object describing the product the comment is about. "title":"Dress Watch" is the product name, and "url":"https://[redacted].myshopify.com/products/dress-watch" is the product page address on the shop's site.
  • "buyer": an object with the buyer's details. "name":"F F" is the buyer's name, and "email":"[redacted]@gmail.com" is the buyer's email address. This is the sensitive part: the email was never meant to be visible to another shop.
  • "published_status":true and "published_status_text":"Published": whether the comment is currently shown publicly, in both machine-readable and human-readable form.
  • "curated":"ok": the curation decision that was just applied.

The reason this step matters is that the server did not check whether comment 1 belonged to the attacker's shop. It simply looked it up and returned it. Because the identifier is a small integer, an attacker can try other values and see what the response returns. The same request performs the curation action, and the title names publishing or hiding foreign comments. The report's impact section summarises this as buyer information leaks and other effects, and the title names both the leak of buyer information and the ability to publish or hide foreign comments.

Why it works (root cause)

The curation endpoint authorises the request at the session level but does not check that the comment identified by comment_id belongs to the store making the request. In plain words: the server asks "are you a logged-in merchant?" and the answer is yes, so it lets the request through. But it never asks the second question, "is this comment yours?", which is the one that matters.

The identifier is a small integer, so other values are easy to try. The CSRF token and session cookie protect against cross-site request forgery and unauthenticated access, but neither binds the object to the caller, which is exactly the gap an IDOR exploits. The report does not include the server-side code, so the precise location of the missing check is not shown.

Impact

An authenticated merchant can change comment_id and read the buyer name, email, comment content, product title and product URL returned in the response. The title names the ability to publish or hide foreign comments. The report rates this as high severity with a CVSS score of 7.5, and the disclosed bounty was 1250 USD. The leak is limited to data returned by the curation endpoint and to comments that exist in the system; the report does not describe any further escalation.

Fix

The report does not state what change was made. The fix implied by the flaw is to scope every lookup and state change on comment_id to the authenticated store, rejecting identifiers that do not belong to it, and to return a generic error rather than the object when the check fails. In the cloakroom comparison: the attendant should check that ticket 12 belongs to you before handing over coat 12, and if it does not, should simply say "no" without revealing whose coat it is.

Variants to test

Once you understand the pattern, you can look for the same mistake in other places. These are the directions the technical write-up suggests:

  1. Other curation actions. Try the hide action alongside publish, and any other action that takes comment_id, to see whether the ownership check is missing on all of them or only on one. A positive result is a state change on a comment from another store.
  2. Other object identifiers. Look for endpoints that take a numeric comment_id, review_id, order_id or similar and return an object with buyer or customer fields. A positive result is another store's data in the response.
  3. Bulk or list endpoints. Check whether list endpoints accept a store or shop parameter that can be swapped, as the Referer here shows shop_domain in the query string. A positive result is comments from a domain other than the caller's.
  4. Non-numeric identifiers. If identifiers are UUIDs (long random-looking strings instead of small numbers), test whether they leak through other responses, exports or emails before assuming enumeration is impossible.

Hunting notes

This kind of bug tends to hide in multi-tenant SaaS features, meaning software where many different customers share the same backend, where a merchant-facing UI calls a shared backend with an object identifier in the body. The signals during recon (the early exploration phase where you look around an application to see how it is built) are endpoints under a path like /extensions/<feature>/ that take an id parameter, responses that embed full objects rather than a status, and admin pages whose Referer carries a shop or tenant parameter. The researcher demonstrated impact by showing a response containing a buyer's name and email.

Glossary

  • API: the way one piece of software talks to another, usually by sending requests and receiving responses over the internet.
  • Addon: an optional extra feature that can be installed into an existing app or platform.
  • AJAX / XMLHttpRequest: a request made by JavaScript inside a page, without reloading the whole page.
  • Body: the part of an HTTP request or response that carries the actual data, after the headers.
  • Burp Suite: a tool that sits between your browser and a website so you can capture, inspect and modify the traffic.
  • Checkout Comments: the Judge.me feature that collects comments from buyers during checkout and lets merchants curate them.
  • Cookie: a small piece of text stored by a website in your browser so it can recognise you on later requests.
  • CSRF (Cross-Site Request Forgery): an attack where another website tricks your browser into sending a request you did not intend; a CSRF token is a random value that prevents it.
  • CSRF token: a random value included in a request to prove it came from the real page and not from another site.
  • CVSS: a standard scoring system for the severity of security vulnerabilities; higher numbers mean more serious.
  • Endpoint: a specific address on a server that accepts requests, such as /extensions/checkout_comments/curate_comment.
  • Enumeration: trying values one after another (for example 1, 2, 3) to discover what exists.
  • Header: an extra piece of information attached to an HTTP request or response, such as the cookie or the browser type.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • IDOR (Insecure Direct Object Reference): a flaw where a program uses an identifier supplied by the user to look up an object without checking that the user is allowed to access it.
  • Integer: a whole number such as 1, 2 or 3.
  • Intercepting proxy: a tool that pauses traffic between your browser and a website so you can read and edit it.
  • JSON: a text format for structured data, using curly braces for objects and named fields.
  • Merchant: the owner of an online shop who uses the platform.
  • Multi-tenant SaaS: software where many different customers share the same backend, each with their own separate data.
  • Origin: the combination of scheme, host and port that a request comes from, such as https://judge.me.
  • Parameter: a named value sent with a request, such as comment_id=1.
  • POST: an HTTP method used when sending data that changes something on the server.
  • Query string: the part of a URL after the ?, made of key=value pairs.
  • Recon: the early exploration phase where you look around an application to understand how it is built.
  • Repeater: the Burp tab that lets you resend a captured request after editing it.
  • Request: a message sent from a browser (or tool) to a server asking it to do something.
  • Response: the message a server sends back after a request.
  • Root cause: the underlying reason a vulnerability exists, as opposed to its visible symptoms.
  • Session: the period during which a website remembers that you are logged in, usually tracked by a cookie.
  • Severity: how serious a vulnerability is, often expressed with a score such as CVSS.
  • Shopify admin: the control panel where a shop owner manages their store.
  • State change: a modification to data on the server, such as publishing or hiding a comment.
  • Tenant: one customer of a shared service, whose data should be kept separate from other customers'.
  • UUID: a long, random-looking identifier used instead of a small number.
  • Vulnerability: a weakness in software that can be abused to do something the designers did not intend.

More by errorinhuman

View all

4 more disclosed reports, best first.

More from Judge.me

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.