Unauthenticated team "income/payments" export ignores donor privacy settings (hide_giving, hide_from_lists) and uses frozen visibility, exposing donat
The team income/payments export endpoint decided whether to reveal a donor using only the payment's frozen visibility flag, ignoring the donor's hide_giving and hide_from_lists settings and the recipient's opt-in gate. An unauthenticated attacker could retrieve donor identity, exact amount and date for donations the donor had opted out of listing or had since changed to private or secret.
- Triaged in 47 hours
- Fixed in 11 days
- Paid in 11 days
- Disclosed after 11 days
Liberapay lets teams publish the list of donors who chose to donate publicly (donation
visibility = 3). That public list is served by www/%username/income/payments.spt. The problem
is that this endpoint decides whether to reveal a donor using only the payment's frozen
visibility flag, and ignores the two donor privacy controls that every other public surface honors
(hide_giving, hide_from_lists) as well as the recipient's opt‑in gate. As a result an
unauthenticated attacker can retrieve donor identity + exact amount + date for donations that the
donor has explicitly opted out of public listings for, or has since changed to private/secret.
The privacy model it should follow
The canonical public patron list on the team's profile page (www/%username/index.html.spt) gates
each donor on all of the following:
index.html.spt:32— recipient opted in:if patron_visibilities & 4:index.html.spt:42—AND tip.visibility = 3index.html.spt:45—AND NOT tipper_p.hide_givingindex.html.spt:46—AND tipper_p.hide_from_lists = 0- it also reads the current visibility from
current_tips.
Root cause (code)
www/%username/income/payments.spt:
-
:33participant = get_participant(state, restrict=False)→ unauthenticated. -
:34only constraint isif participant.kind != 'group'(teams only). -
:51‑53selectspayer.id,payer.username,payer.public_name. -
:62the only donor‑identity gate:SQL LEFT JOIN participants payer ON payer.id = pi.payer AND pt.visibility = 3
It omits hide_giving, omits hide_from_lists, omits the recipient patron_visibilities & 4
gate, and reads pt.visibility = payin_transfers.visibility, which is set once at payment
time (liberapay/payin/common.py:752, abs(visibility)) and is never updated afterwards
(none of the four UPDATE payin_transfers statements touch the visibility column; changing a
donation's visibility via set_tip_to / the giving page only INSERTs a new tips row). So the
per‑payment visibility is frozen forever.
Two concrete consequences, each a privacy violation:
- Opt‑out ignored. A donor who set
hide_from_lists = 1(explicit "exclude me from public lists") orhide_givingis still fully listed here — name + exact per‑payment amount + date — even though the team's own profile page excludes them. - Downgrade ignored (strongest case). A donor who made a public donation and later changed
that donation to private or secret disappears from the profile page and from
/<team>/patrons/public.csv(both readcurrent_tips.visibility), but their historical public payments remain exposed here because this endpoint reads the frozenpayin_transfers.visibility. The donor took a deliberate privacy action and reasonably believes it is now hidden everywhere.
Proof — unauthenticated disclosure surface (confirmed live 2026‑07‑21)
GET https://liberapay.com/GIMP/income/payments.json HTTP/2
Host: liberapay.com
(no Cookie, no session)
→ HTTP 200, JSON array (45 KB). Public‑donation entries return
"payer_id": <int>, "payer_username": "<username>", "payer_public_name": "<real name>" plus
amount, unit_amount, period, n_units, date, payment_method. Non‑public entries return
payer_id/username/public_name = null, confirming the sole gate is pt.visibility = 3.
(Real donor identities were returned; they are redacted in evidence/income-payments-disclosure.md.)
/<team>/income/payments.csv returns the entire history in one request (per_page defaults to
None for CSV, no pagination cap).
Full end‑to‑end PoC for the privacy bypass (donor account + one small donation)
- Register free account A.
- As A, make a public (
visibility=3) donation to any team and complete the payment (any small amount). - As A, either (a) set the donation's visibility to secret on
/<A>/giving/, or (b) enable "Hide me from public lists" (hide_from_lists) in privacy settings. - Verify A no longer appears on
https://liberapay.com/<team>/(profile) nor inhttps://liberapay.com/<team>/patrons/public.csv. - Fetch
https://liberapay.com/<team>/income/payments.jsonunauthenticated → account A is still listed with username, exact amount, and date.
Impact
Unauthenticated third‑party disclosure of donor identity, exact donation amount, and dates for a
team's public donors, bypassing the donor's explicit hide_giving / hide_from_lists opt‑outs and
continuing to expose donations the donor has since made private or secret. Donation relationships
and amounts are the platform's core privacy asset.
Remediation
Make the query match the profile page's model:
LEFT JOIN participants payer
ON payer.id = pi.payer
AND pt.visibility = 3
AND payer.hide_giving IS NOT TRUE
AND payer.hide_from_lists = 0
and gate the endpoint on the recipient's patron_visibilities & 4, and filter on the current
tip visibility (join current_tips) rather than the frozen payin_transfers.visibility, so that a
donor's later privacy change is honored here as it is everywhere else.
Context
Liberapay is a donation platform built around teams and recurring or one-off payments. Teams can publish a list of donors who chose to donate publicly, meaning the donation's visibility is 3. That public list is served by the template www/%username/income/payments.spt, which is reachable as /income/payments.json and /income/payments.csv under a team's path.
The report is about that endpoint. It is supposed to reveal a donor only when the donor has agreed to be shown publicly. Instead it decides on a single frozen flag and ignores the donor's privacy settings and the recipient's opt-in gate, so an unauthenticated visitor can pull donor identity, exact amount and date for donations the donor has opted out of or has since made private or secret.
Setup
The proof of concept needs no special tooling and no privileged account:
- A free Liberapay account, referred to as account A, to act as the donor.
- Any team to donate to, with a small donation.
- The ability to send plain HTTP requests without a session, for example with a client that can issue a raw request.
The disclosure surface itself was confirmed live on 2026-07-21 against liberapay.com with no cookie and no session. The report compares the endpoint's source with the profile page's source.
Finding it
The researcher started from the privacy model that the canonical public patron list on a team's profile page (www/%username/index.html.spt) follows. That page gates each donor on all of the following:
index.html.spt:32: the recipient opted in,if patron_visibilities & 4:index.html.spt:42:AND tip.visibility = 3index.html.spt:45:AND NOT tipper_p.hide_givingindex.html.spt:46:AND tipper_p.hide_from_lists = 0- it reads the current visibility from
current_tips.
Against that model, www/%username/income/payments.spt looked wrong. Its only donor-identity gate is a join on the payment's frozen visibility flag, and it does not consult hide_giving, hide_from_lists, the recipient's patron_visibilities & 4 gate, or the current tip visibility. The two surfaces therefore disagree about who should be listed, and the disagreement is exactly where the privacy controls live.
Exploitation
Step 1: Confirm the endpoint answers without authentication
The researcher requested the JSON export for a team with no cookie and no session:
GET https://liberapay.com/GIMP/income/payments.json HTTP/2
Host: liberapay.com
(no Cookie, no session)
The response was HTTP 200 with a JSON array of about 45 KB. Entries for public donations returned "payer_id": <int>, "payer_username": "<username>", "payer_public_name": "<real name>" together with amount, unit_amount, period, n_units, date and payment_method. Entries for non-public donations returned payer_id/username/public_name = null, which confirms that the sole gate is pt.visibility = 3. Real donor identities were returned; they are redacted in evidence/income-payments-disclosure.md.
The CSV variant returns the entire history in one request, because per_page defaults to None for CSV and there is no pagination cap:
/<team>/income/payments.csv
Step 2: Reproduce the privacy bypass end to end
The researcher's full proof of concept uses a donor account and one small donation:
- Register free account A.
- As A, make a public (
visibility=3) donation to any team and complete the payment (any small amount). - As A, either (a) set the donation's visibility to secret on
/<A>/giving/, or (b) enable "Hide me from public lists" (hide_from_lists) in privacy settings. - Verify A no longer appears on
https://liberapay.com/<team>/(profile) nor inhttps://liberapay.com/<team>/patrons/public.csv. - Fetch
https://liberapay.com/<team>/income/payments.jsonunauthenticated. Account A is still listed with username, exact amount and date.
Step 4 is the control: the profile page and the public patrons CSV both honour the change. Step 5 is the bypass: the income/payments export does not.
Root cause
The problem is in www/%username/income/payments.spt:
:33participant = get_participant(state, restrict=False)makes the endpoint unauthenticated.:34the only constraint isif participant.kind != 'group', so it serves teams only.:51-53selectspayer.id,payer.username,payer.public_name.:62is the only donor-identity gate:
LEFT JOIN participants payer ON payer.id = pi.payer AND pt.visibility = 3
That join omits hide_giving, omits hide_from_lists, omits the recipient's patron_visibilities & 4 gate, and reads pt.visibility, which is payin_transfers.visibility. That column is set once at payment time (liberapay/payin/common.py:752, abs(visibility)) and is never updated afterwards: none of the four UPDATE payin_transfers statements touch the visibility column, and changing a donation's visibility through set_tip_to or the giving page only inserts a new tips row. The per-payment visibility is therefore frozen forever.
This produces two distinct privacy violations:
- Opt-out ignored. A donor who set
hide_from_lists = 1(the explicit "exclude me from public lists" setting) orhide_givingis still fully listed here, with name, exact per-payment amount and date, even though the team's own profile page excludes them. - Downgrade ignored, the strongest case. A donor who made a public donation and later changed that donation to private or secret disappears from the profile page and from
/<team>/patrons/public.csv, because both readcurrent_tips.visibility. Their historical public payments remain exposed here because this endpoint reads the frozenpayin_transfers.visibility. The donor took a deliberate privacy action and reasonably believes it is now hidden everywhere.
Impact
The endpoint allows unauthenticated third-party disclosure of donor identity, exact donation amount and dates for a team's public donors. It bypasses the donor's explicit hide_giving and hide_from_lists opt-outs, and it keeps exposing donations the donor has since made private or secret. Donation relationships and amounts are the platform's core privacy asset.
Fix
The report recommends making the query match the profile page's model:
LEFT JOIN participants payer
ON payer.id = pi.payer
AND pt.visibility = 3
AND payer.hide_giving IS NOT TRUE
AND payer.hide_from_lists = 0
It also recommends gating the endpoint on the recipient's patron_visibilities & 4, and filtering on the current tip visibility by joining current_tips rather than the frozen payin_transfers.visibility, so that a donor's later privacy change is honoured here as it is everywhere else.
Variants to test
- Other exports of the same data. Look for CSV, JSON or feed endpoints that reuse a payment or transfer table and join donor identity on a stored visibility column. A positive result is a donor who is hidden on the profile page but present in the export.
- Frozen versus current state. Wherever a record stores a visibility or sharing flag at creation time, check whether later changes are reflected in every read path. A positive result is a donor who changed a setting and still appears in one surface.
- Recipient opt-in gates. Check whether endpoints that list donors honour the recipient's own opt-in flag, not just the donor's. A positive result is a team that has not opted in to public patron lists yet still has its donors exposed through another endpoint.
- Pagination and bulk limits. Compare the paginated UI with the export. A positive result is an export that returns the full history in one request when the UI paginates.
- Unauthenticated access to per-team data. Try the same paths with no cookie and no session. A positive result is a 200 with donor-identifying fields rather than nulls.
Hunting notes
This kind of bug tends to hide where a feature has two implementations of the same privacy rule: a canonical page that joins the current state and checks every flag, and a secondary export that was written against a denormalised or historical table. The signal during recon is a public list whose contents can be compared across surfaces: if a donor can be made to disappear from one page but not another, the second page is the candidate. Reading the source for the canonical query and then diffing it against every other query that selects donor identity is the fastest route.
The proof of concept demonstrates the disagreement directly: the same account, after a deliberate privacy change, should be absent from the profile page and the public patrons CSV but still present, with username, exact amount and date, in an unauthenticated JSON response. That contrast, plus the fact that the export needs no session and the CSV returns the whole history in one request, makes the privacy violation concrete rather than theoretical.
What happened, in plain words
Liberapay is a website where people give money to projects and to teams of people who work on free software. When someone donates, they can choose whether their name appears in a public list of supporters. Some people want to be listed, some do not, and some change their mind later.
The report describes a bug in one page of Liberapay: a page that hands out a machine-readable list of a team's incoming payments. That page is supposed to show a donor's name only when the donor has agreed to be shown. Instead, it looks at a single value that was recorded once, when the payment was made, and never looks at the donor's privacy settings at all. So anyone on the internet, without logging in, can download the names, exact amounts and dates of donations that the donor has asked to keep out of public lists, or has since switched to private or secret.
A few words before we start, because they come up constantly:
- Endpoint: a specific address on a website that returns data rather than a normal web page. Think of a restaurant: the menu page is the website, and the kitchen hatch where you collect a specific dish is the endpoint.
- API: the general name for this kind of machine-to-machine doorway. A browser page is written for a human to read; an API answers in a format a program can process, such as JSON.
- JSON: a text format for structured data, made of names and values in curly braces and square brackets. It looks like
{"name": "value"}. - CSV: a plain text table where values are separated by commas, one row per line. Easy to open in a spreadsheet.
- Authentication: proving who you are, usually by logging in. Unauthenticated means "without logging in at all".
- Cookie / session: a small piece of data your browser keeps after you log in, so the site recognises you on the next request. Sending a request "with no cookie and no session" means sending it as a complete stranger.
- SQL: the language used to ask a database questions. A query is one such question, and a join is how a query combines two tables of data, for example payments and the people who made them.
- Privacy setting: a switch in a user's account that says what may be shown about them. Here there are two:
hide_giving(do not show that I give) andhide_from_lists(leave me out of public lists). - Visibility: a per-donation setting saying who may see it. The value
3means "public".
Context
Liberapay is a donation platform built around teams and around recurring or one-off payments. Teams can publish a list of donors who chose to donate publicly, meaning the donation's visibility is 3. That public list is served by the template www/%username/income/payments.spt, which is reachable as /income/payments.json and /income/payments.csv under a team's path.
A template here is a file on the server that produces a page or a data response. The %username part is a placeholder that gets replaced by the team's name, so www/%username/income/payments.spt becomes, for a team called GIMP, the address /GIMP/income/payments.json. The .json and .csv endings ask for the same information in two different formats: JSON for programs, CSV for spreadsheets.
The report is about that endpoint. It is supposed to reveal a donor only when the donor has agreed to be shown publicly. Instead it decides on a single frozen flag and ignores the donor's privacy settings and the recipient's opt-in gate, so an unauthenticated visitor can pull donor identity, exact amount and date for donations the donor has opted out of or has since made private or secret.
"Frozen" is the key word. When the payment was made, the site wrote down the donation's visibility in a table called payin_transfers. Later, when the donor changes their mind, the site records the new choice somewhere else (a table called tips), but the old value in payin_transfers is never rewritten. It is like writing your name on a paper guest list at the door and later asking to be removed: the receptionist has a new list, but the old sheet is still pinned to the wall.
Setup
The proof of concept needs no special tooling and no privileged account:
- A free Liberapay account, referred to as account A, to act as the donor.
- Any team to donate to, with a small donation.
- The ability to send plain HTTP requests without a session, for example with a client that can issue a raw request.
HTTP is the language browsers and servers speak to exchange pages and data. A raw request means writing the request by hand rather than letting a browser fill in the details, so you can see and control exactly what is sent, including the deliberate absence of any login cookie.
The disclosure surface itself was confirmed live on 2026-07-21 against liberapay.com with no cookie and no session. The report compares the endpoint's source with the profile page's source.
A repository is a public folder of source code, here on GitHub, where the site's programming is kept. Reading it lets you see the database questions the site asks, which is how the researcher could compare two pages that should behave the same way.
Finding it
The researcher started from the privacy model that the canonical public patron list on a team's profile page (www/%username/index.html.spt) follows. That page gates each donor on all of the following:
index.html.spt:32: the recipient opted in,if patron_visibilities & 4:index.html.spt:42:AND tip.visibility = 3index.html.spt:45:AND NOT tipper_p.hide_givingindex.html.spt:46:AND tipper_p.hide_from_lists = 0- it reads the current visibility from
current_tips.
"Canonical" means the reference version, the one everyone agrees is correct. The profile page is the page a visitor sees when they open a team's main address, and its list of patrons is the official public list.
Each bullet is one condition that must hold before a donor's name is shown:
- The recipient opted in.
patron_visibilities & 4is a bit test: a number stores several yes/no switches packed together, and& 4checks whether the switch worth 4 is on. In plain terms, the team itself must have agreed to display a public patron list. tip.visibility = 3means the donation is currently marked public.NOT tipper_p.hide_givingmeans the donor has not switched on "hide my giving".tipper_p.hide_from_lists = 0means the donor has not asked to be excluded from public lists.- The last point says the page reads the current visibility, from the
current_tipstable, not an old copy.
Against that model, www/%username/income/payments.spt looked wrong. Its only donor-identity gate is a join on the payment's frozen visibility flag, and it does not consult hide_giving, hide_from_lists, the recipient's patron_visibilities & 4 gate, or the current tip visibility. The two surfaces therefore disagree about who should be listed, and the disagreement is exactly where the privacy controls live.
A useful comparison: two clerks in the same office answer the question "who donated?". One checks the current list and all the "do not publish me" notes. The other reads only the original receipt, which was written before any of those notes existed. Both are polite, both answer quickly, but only one is right.
Exploitation
Step 1: Confirm the endpoint answers without authentication
The researcher requested the JSON export for a team with no cookie and no session:
GET https://liberapay.com/GIMP/income/payments.json HTTP/2
Host: liberapay.com
(no Cookie, no session)
Line by line:
GETis the HTTP verb meaning "give me this thing".https://liberapay.com/GIMP/income/payments.jsonis the address being asked for: the JSON payment export of the team called GIMP.HTTP/2is the version of the protocol used for the conversation.Host: liberapay.comtells the server which site name the request is for. One server can host many names, so this line removes any doubt.(no Cookie, no session)is a note, not a header: the request deliberately carries no login cookie, so the server treats the sender as a stranger.
Why this step: before claiming that anyone can read the data, you must show that the server does not ask who you are. If the request had needed a login, the impact would be far smaller.
The response was HTTP 200 with a JSON array of about 45 KB. Entries for public donations returned "payer_id": <int>, "payer_username": "<username>", "payer_public_name": "<real name>" together with amount, unit_amount, period, n_units, date and payment_method. Entries for non-public donations returned payer_id/username/public_name = null, which confirms that the sole gate is pt.visibility = 3. Real donor identities were returned; they are redacted in evidence/income-payments-disclosure.md.
HTTP 200 is the standard code for "here is your answer, all fine". A JSON array is a list in square brackets, one entry per payment. The fields mean:
payer_id: the donor's internal account number.payer_username: the donor's account name on the site.payer_public_name: the donor's real name as they entered it.amountandunit_amount: how much was given, and the size of one unit of it.period: how often the donation repeats, if it does.n_units: how many units were given.date: when the payment happened.payment_method: how it was paid.
null is the JSON word for "nothing here". The fact that hidden donations produce null in exactly those three identity fields, while public ones produce real values, is the proof that the only thing being checked is the frozen visibility flag. If the donor's privacy settings were being checked, some of those public-looking entries would also be null.
Redacted means personal details were replaced with placeholders before publishing, so the report demonstrates the problem without exposing the real people. The evidence file named in the report holds the unredacted version.
The CSV variant returns the entire history in one request, because per_page defaults to None for CSV and there is no pagination cap:
/<team>/income/payments.csv
Pagination is the habit of splitting a long list into pages, for example 50 rows at a time, so one request cannot pull everything. per_page is the setting that says how many rows fit on a page. For the CSV format it defaults to None, meaning "no limit", so a single request returns the whole history. That matters because it turns a slow, noisy scrape into one quiet download.
Step 2: Reproduce the privacy bypass end to end
The researcher's full proof of concept uses a donor account and one small donation:
- Register free account A.
- As A, make a public (
visibility=3) donation to any team and complete the payment (any small amount). - As A, either (a) set the donation's visibility to secret on
/<A>/giving/, or (b) enable "Hide me from public lists" (hide_from_lists) in privacy settings. - Verify A no longer appears on
https://liberapay.com/<team>/(profile) nor inhttps://liberapay.com/<team>/patrons/public.csv. - Fetch
https://liberapay.com/<team>/income/payments.jsonunauthenticated. Account A is still listed with username, exact amount and date.
Why each step:
- You need an account so you can act as a donor and change your own privacy settings. Using your own account keeps the test harmless and repeatable.
- The donation must start out public, because the bug only concerns donations that were public at payment time. A small amount keeps the cost trivial.
- This is the deliberate privacy action. Option (a) changes the donation itself to secret; option (b) changes the account-wide setting that says "leave me out of public lists". Either one is a clear instruction to the site.
- This is the control. The profile page and the public patrons CSV are the two places that are supposed to honour the change, and they do: account A vanishes from both. Without this step you could not tell whether the site ignored the setting everywhere or only in one place.
- This is the bypass. The income/payments export still lists account A, with the username, the exact amount and the date, even though the donor asked to be hidden and the rest of the site complied.
Step 4 is the control: the profile page and the public patrons CSV both honour the change. Step 5 is the bypass: the income/payments export does not.
Root cause
The problem is in www/%username/income/payments.spt:
:33participant = get_participant(state, restrict=False)makes the endpoint unauthenticated.:34the only constraint isif participant.kind != 'group', so it serves teams only.:51-53selectspayer.id,payer.username,payer.public_name.:62is the only donor-identity gate:
LEFT JOIN participants payer ON payer.id = pi.payer AND pt.visibility = 3
Line by line:
:33and the other numbers are line numbers in the source file, so a reader can jump straight to the spot.get_participant(state, restrict=False)looks up the account being viewed;restrict=Falsemeans "do not require the viewer to be logged in". That single argument is what makes the endpoint open to strangers.:34if participant.kind != 'group'means the page only works for teams (a group), not for individual users. It is a scope check, not a privacy check.:51-53lists the three donor fields the page will output: account number, account name and real name. This is where the sensitive data enters the response.:62is the database question that decides whether those fields are filled in or left empty.
Now the SQL line in plain words. LEFT JOIN means "attach matching rows from another table, but keep this row even if nothing matches". Here the payment row is kept, and the donor's details are attached from the participants table only when the condition after ON is true. The condition is payer.id = pi.payer (this payment's donor is this participant) AND pt.visibility = 3 (the payment's stored visibility is public). If the condition fails, the donor columns come back empty, which is why hidden donations show null.
That join omits hide_giving, omits hide_from_lists, omits the recipient's patron_visibilities & 4 gate, and reads pt.visibility, which is payin_transfers.visibility. That column is set once at payment time (liberapay/payin/common.py:752, abs(visibility)) and is never updated afterwards: none of the four UPDATE payin_transfers statements touch the visibility column, and changing a donation's visibility through set_tip_to or the giving page only inserts a new tips row. The per-payment visibility is therefore frozen forever.
abs(visibility) means "take the value without its sign", so a negative number becomes positive. UPDATE is the SQL command that changes existing rows; the report checked all four places where the code updates payin_transfers and none of them writes to the visibility column. INSERT is the SQL command that adds a new row. So when a donor changes their mind, the site adds a fresh row in tips and leaves the original record untouched. Any page that reads the original record sees the old decision forever.
This produces two distinct privacy violations:
- Opt-out ignored. A donor who set
hide_from_lists = 1(the explicit "exclude me from public lists" setting) orhide_givingis still fully listed here, with name, exact per-payment amount and date, even though the team's own profile page excludes them. - Downgrade ignored, the strongest case. A donor who made a public donation and later changed that donation to private or secret disappears from the profile page and from
/<team>/patrons/public.csv, because both readcurrent_tips.visibility. Their historical public payments remain exposed here because this endpoint reads the frozenpayin_transfers.visibility. The donor took a deliberate privacy action and reasonably believes it is now hidden everywhere.
The difference between the two cases is when the donor said no. In the first case they said no from the start, and the export never asked. In the second case they said yes and then changed their mind, and the export kept reading the old yes. The second is stronger evidence because the donor can point at a visible action they took, and at two other pages that respected it.
Impact
The endpoint allows unauthenticated third-party disclosure of donor identity, exact donation amount and dates for a team's public donors. It bypasses the donor's explicit hide_giving and hide_from_lists opt-outs, and it keeps exposing donations the donor has since made private or secret. Donation relationships and amounts are the platform's core privacy asset.
CVSS is a standard scoring system for the severity of a security flaw, from 0 to 10. A score of 5.3 sits in the middle band, labelled medium. A bounty is money a company pays a researcher who reports a flaw responsibly instead of exploiting it. "Third-party disclosure" means someone other than the donor and the team learns the information, which is exactly what a privacy setting is meant to prevent.
Fix
The report recommends making the query match the profile page's model:
LEFT JOIN participants payer
ON payer.id = pi.payer
AND pt.visibility = 3
AND payer.hide_giving IS NOT TRUE
AND payer.hide_from_lists = 0
This is the same join as before, with two extra conditions. payer.hide_giving IS NOT TRUE means the donor has not switched on "hide my giving"; writing it this way also covers the case where the setting was never filled in. payer.hide_from_lists = 0 means the donor has not asked to be left out of public lists. With these added, a donor who opted out gets empty identity fields, just as on the profile page.
It also recommends gating the endpoint on the recipient's patron_visibilities & 4, and filtering on the current tip visibility by joining current_tips rather than the frozen payin_transfers.visibility, so that a donor's later privacy change is honoured here as it is everywhere else.
In other words: check the team's own opt-in, and read the donor's latest choice instead of the original receipt. The general lesson is that a privacy rule should live in one place, or every copy of it must be kept identical.
Variants to test
- Other exports of the same data. Look for CSV, JSON or feed endpoints that reuse a payment or transfer table and join donor identity on a stored visibility column. A positive result is a donor who is hidden on the profile page but present in the export.
- Frozen versus current state. Wherever a record stores a visibility or sharing flag at creation time, check whether later changes are reflected in every read path. A positive result is a donor who changed a setting and still appears in one surface.
- Recipient opt-in gates. Check whether endpoints that list donors honour the recipient's own opt-in flag, not just the donor's. A positive result is a team that has not opted in to public patron lists yet still has its donors exposed through another endpoint.
- Pagination and bulk limits. Compare the paginated UI with the export. A positive result is an export that returns the full history in one request when the UI paginates.
- Unauthenticated access to per-team data. Try the same paths with no cookie and no session. A positive result is a 200 with donor-identifying fields rather than nulls.
A feed is a data stream meant to be read by software, such as an RSS list. UI means user interface, the pages a person clicks through. The pattern behind all five checks is the same: find two places that answer the same question and compare their answers.
Hunting notes
This kind of bug tends to hide where a feature has two implementations of the same privacy rule: a canonical page that joins the current state and checks every flag, and a secondary export that was written against a denormalised or historical table. The signal during recon is a public list whose contents can be compared across surfaces: if a donor can be made to disappear from one page but not another, the second page is the candidate. Reading the source for the canonical query and then diffing it against every other query that selects donor identity is the fastest route.
Recon is short for reconnaissance, the early phase of looking around a target before testing anything. Denormalised means data copied into a second place for convenience, which is exactly how copies drift apart. Diffing means comparing two pieces of text side by side to spot the differences.
The proof of concept demonstrates the disagreement directly: the same account, after a deliberate privacy change, should be absent from the profile page and the public patrons CSV but still present, with username, exact amount and date, in an unauthenticated JSON response. That contrast, plus the fact that the export needs no session and the CSV returns the whole history in one request, makes the privacy violation concrete rather than theoretical.
Glossary
- API: a doorway on a website that returns data for programs rather than pages for people.
- Bounty: money paid to a researcher who reports a security flaw responsibly.
- Cookie: a small piece of data a browser keeps after login so the site recognises you next time.
- CSV: a plain text table with values separated by commas.
- CVSS: a standard 0 to 10 score for the severity of a security flaw.
- Denormalised: data copied into a second place for convenience, which can drift out of date.
- Diffing: comparing two pieces of text to find the differences.
- Endpoint: a specific web address that returns data or performs an action.
- Feed: a data stream meant to be read by software, such as an RSS list.
- Frozen flag: a value written once and never updated afterwards.
- HTTP: the protocol browsers and servers use to exchange requests and responses.
- HTTP 200: the status code meaning the request succeeded.
- INSERT: the SQL command that adds a new row to a table.
- Join: the part of a SQL query that combines rows from two tables.
- JSON: a text format for structured data using names and values.
- Null: the JSON word for "nothing here".
- Opt-in gate: a condition requiring someone to actively agree before something is shown.
- Pagination: splitting a long list into pages so one request cannot fetch everything.
- Privacy setting: a switch in an account controlling what may be shown about the user.
- Query: a question asked of a database, written in SQL.
- Raw request: an HTTP request written by hand, so every header and its absence is under your control.
- Recon: reconnaissance, the early phase of looking around a target.
- Redacted: personal details replaced with placeholders before publishing.
- Repository: a public folder of source code, here on GitHub.
- Session: the server-side record of a logged-in visit, referenced by a cookie.
- SQL: the language used to ask questions of a database.
- Template: a server file that produces a page or data response, with placeholders filled in per request.
- UI: user interface, the pages a person clicks through.
- Unauthenticated: without logging in at all.
- UPDATE: the SQL command that changes existing rows in a table.
- Visibility: a per-donation setting saying who may see it;
3means public.