# Unauthenticated team "income/payments" export ignores donor privacy settings (hide_giving, hide_from_lists) and uses frozen visibility, exposing donat

Unauthenticated team income/payments export ignored donor hide_giving/hide_from_lists and used frozen payment visibility, leaking donor identity, amount and date for opted-out or since-privatized donations.

- Payout: $100
- Severity: medium
- Program: Liberapay
- Found by: its9me
- Disclosed: 2026-08-01
- Write-up quality: 8/10
- Original: https://hackerone.com/reports/3878586
- Library page: https://bugbountylibrary.com/r/h1%3A3878586
- Tags: area:web domain:web impact:data-leak impact:pii-leak kind:bounty platform:hackerone sev:medium tech:python technique:source-review vuln:access-control vuln:business-logic vuln:info-disclosure

**Target:** Team income/payments export endpoint (www/%username/income/payments.spt)
**Root cause:** The payments export joined payer only on frozen payin_transfers.visibility=3, omitting hide_giving, hide_from_lists, recipient patron_visibilities opt-in, and current tip visibility; payin_transfers.visibility is set once at payment time and never updated.
**Steps:**
1. Register account A and make a public (visibility=3) donation to a team.
2. As A, set the donation to secret on /<A>/giving/ or enable hide_from_lists in privacy settings.
3. Confirm A disappears from /<team>/ and /<team>/patrons/public.csv.
4. Unauthenticated `GET https://liberapay.com/<team>/income/payments.json` (no cookie) returns A's payer_username, public_name, exact amount and date.
5. `/<team>/income/payments.csv` returns full history in one request (no pagination cap).
**How found:** Compared the canonical public patron list query in index.html.spt (which gates on patron_visibilities&4, tip.visibility=3, hide_giving, hide_from_lists, current_tips) against the payments.spt query, spotting the missing predicates and the frozen payin_transfers.visibility column that no UPDATE touches.
**Exploitation:** Any unauthenticated attacker fetches the team's income/payments.json or .csv to harvest donor identities, exact per-payment amounts and dates for donors who opted out or later made donations private/secret.
**Insight:** When a platform has a canonical privacy-gated query, diff every other endpoint that exposes the same data against it; watch for denormalized/frozen visibility columns (set at write time, never updated) that diverge from the current source-of-truth table.

## Proof of concept (copied exactly from the original report)

**Unauthenticated GET of team payments JSON**

```
GET https://liberapay.com/GIMP/income/payments.json HTTP/2
Host: liberapay.com
(no Cookie, no session)
```

**End-to-end privacy bypass PoC steps**

```
1. Register free account **A**.
2. As A, make a **public** (`visibility=3`) donation to any team and complete the payment
   (any small amount).
3. 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.
4. Verify A no longer appears on `https://liberapay.com/<team>/` (profile) nor in
   `https://liberapay.com/<team>/patrons/public.csv`.
5. Fetch `https://liberapay.com/<team>/income/payments.json` **unauthenticated** → account A is
   still listed with username, exact amount, and date.
```

