Hunt prep
Before you test Gratipay
What 119 disclosed reports say about Gratipay: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 12
- median public bounty
- $6
- highest public bounty
- $40
Gaps worth testing 14
Ideas drawn from this program's disclosed reports and our class lessons. None of them is a known bug: each is a place to look, and the reports linked under it are why. Check the current scope before testing anything.
-
1
Test statement rendering for other link and embed weaknesses
Statements have a history of stored XSS, tabnabbing and unlimited image embeds. Test how other user-supplied content in statements is rendered, such as markdown links, embedded media and formatting, looking for script execution or resource-loading abuse that the earlier fixes did not cover.
-
2
Probe email change and verification flows for logic flaws
Account takeover Read the lesson
Several reports show email association and resend weaknesses, including associating an arbitrary address and replaying resend requests. Test the email add, verify and resend endpoints for missing ownership checks, replayable nonces and rate limiting gaps that could let an attacker attach or flood an address.
-
3
Check password reset flow for host header and token reuse
Account takeover Read the lesson
Host header poisoning and reset link issues were reported before. Test the password reset request and completion flow for host header influence on the link, single-use enforcement and token reuse after a reset, since these are common takeover paths on Python web apps.
-
4
Test OAuth callback and state handling beyond redirect URI
The Facebook OAuth flow once accepted arbitrary redirect URIs. Test the current OAuth initiation and callback for missing or static state, code leakage via Referer and account-linking CSRF, since the earlier fix only addressed the redirect target.
Backed byconfigure a redirect URI for Facebook OAuth (2016) After removing app from facebook app session not expiring. (2017)From the lessons: Check whether the OAuth state parameter is missing or stays the same a...; Account-linking endpoints for Facebook and other third-party providers...
-
5
Look for CRLF injection in other header-building paths
Misconfiguration Read the lesson
CRLF injection was fixed in Aspen and in redirect handling. Test other places where user input reaches response headers, such as redirects, content-type selection and cookie setting, for carriage return injection that could set cookies or split responses.
Backed byupgrade Aspen on inside.gratipay.com to pick up CR injection fix (2017) [gratipay.com] CRLF Injection (2015)From the lessons: Parameters that are reflected into Set-Cookie and Location response he...; Put encoded carriage return and line feed characters into a parameter...
-
6
Test username restrictions against reserved paths and encodings
Access control Read the lesson
Usernames have repeatedly bypassed restrictions, including reserved folders, double dots and .json suffixes. Test registration and profile paths with encoded, dotted and reserved-looking usernames to see whether they still reach internal routes or spoof site names.
Backed byUsername Restriction is not applied for reserved folders (2016) Username .. (double dot) should be restricted or handled careful... (2016) Usernames ending in .json are not restricted (2017)+2 more reports
From the lessons: Request restricted paths with alternate encodings and headers and chec...
-
7
Probe profile statement links for open redirect variants
User-supplied links and encoded slashes in statements were reported as open redirect issues. Test how statement links and redirect endpoints handle encoded, protocol-relative and scheme-relative targets, and whether any redirect can be chained with other weaknesses.
Backed byUser Supplied links on profile page is not validated and redirec... (2016) prevent %2f spoofed URLs in profile statement (2017) URL Given leading to end users ending up in malicious sites (2017)From the lessons: Chain a CSRF with an open redirect to take over an account.; Chain a permissive CORS policy with another weakness such as an open r...
-
8
Check CSRF token handling across state-changing endpoints
CSRF token design and validation have been questioned repeatedly, including tokens in cookies and missing server-side checks. Test contribution, email change and settings endpoints for whether the token is actually validated server-side and whether cookie-based tokens can be fixed by an attacker.
Backed byCSRF csrftoken in cookies (2016) Lack of CSRF token validation at server side (2017) don't store CSRF tokens in cookies (2016)+2 more reports
From the lessons: CSRF token stored in cookies.; CSRF token validation.; Change a victim's email address through a cross-site request and then...; Submit cross-site forms to profile, preference and settings endpoints...
-
9
Test image size and count parameters for resource exhaustion
Unlimited images and an image size parameter were both reported as DoS vectors. Test image handling and any size or count parameters for missing bounds, synchronous processing and amplification that could exhaust server or client resources.
Backed bylimit number of images in statement (2017) Application-level DoS on image's "size" parameter. (2017) Content length restriction bypass can lead to DOS by reading lar... (2017)From the lessons: Use an SSRF to scan internal ports and infer open services.
-
10
Review gip.rocks and inside endpoints for error and path disclosure
Info disclosure Read the lesson
Error messages and server headers have leaked paths and versions on gip.rocks and inside.gratipay.com. Test these hosts with malformed input and unusual methods to see whether stack traces, local paths or version details are still returned.
-
11
Check subdomains for dangling DNS and claimable services
Subdomain takeover Read the lesson
Subdomain takeover has been reported more than once, including a cloud service subdomain that could be claimed. Enumerate current subdomains and check DNS records pointing at unclaimed third-party services, including stale entries referenced from documentation.
Backed bySub Domain Take over (2016) Sub Domain Takeover (2017) Sub domain take over in gratipay.com (2017)From the lessons: Resolve subdomains and check whether they point to unclaimed third-par...; Resolve subdomains and check whether any point to an unclaimed cloud p...
-
12
Test search and title reflection for content spoofing
Search queries and page titles have reflected input without encoding, enabling content spoofing. Test search, title and error pages for reflected text and markup that could mislead users, and check whether any reflection reaches script context.
-
13
Probe CSV export and payment history for formula injection
Business logic Read the lesson
A CSV injection report exists for the payment history export. Test other export and report features, such as transaction and team exports, for spreadsheet formula injection and for whether user-controlled fields are escaped on export.
-
14
Check email authentication records across all domains
Misconfiguration Read the lesson
SPF, DKIM and DMARC issues have been reported for gratipay.com, grtp.co and aspen.io, including a claimable Mandrill include. Re-check the current records for every sending domain and subdomain for permissive qualifiers, missing DMARC enforcement and third-party includes that can be claimed.
Backed byEmail Forgery through Mandrillapp SPF (2016) DMARC is misconfigured for grtp.co (2016) SPF/DKIM/DMARC for grtp.co (2016)+2 more reports
From the lessons: Look up the domain's SPF record and check whether it is missing, uses...; Check whether a DMARC record is published and whether its policy actua...; Send a test message with a forged sender address from the target domai...
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Misconfiguration lesson | 15 | 4 | $10 | $40 | $61 |
| Smuggling / CRLF lesson | 2 | 1 | $40 | $40 | $40 |
| Business logic lesson | 6 | 1 | $20 | $20 | $20 |
| DoS lesson | 6 | 2 | $6 | $10 | $11 |
| Info disclosure lesson | 15 | 2 | $1 | $1 | $2 |
| Account takeover lesson | 12 | 1 | $1 | $1 | $1 |
| XSS lesson | 10 | 1 | $1 | $1 | $1 |
| CSRF lesson | 13 | 0 | – | – | $0 |
| Crypto lesson | 11 | 0 | – | – | $0 |
| Open redirect lesson | 5 | 0 | – | – | $0 |
| UI spoofing lesson | 4 | 0 | – | – | $0 |
| Subdomain takeover lesson | 4 | 0 | – | – | $0 |
| RCE lesson | 2 | 0 | – | – | $0 |
| Memory corruption lesson | 2 | 0 | – | – | $0 |
| SQL injection lesson | 2 | 0 | – | – | $0 |
| OAuth / SSO lesson | 1 | 0 | – | – | $0 |
| Path traversal lesson | 1 | 0 | – | – | $0 |
| Leaked secrets lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
CSV injection in gratipay.com via payment history export feature.
The export should prefix formula-leading characters with an apostrophe so spreadsheet software treats them as text.
Disclosed
-
Bypassing X-frame options
The reporter suggests blocking requests that carry proxy-related headers via server rewrite rules, though this only addresses known proxy headers rather than the framing issue itself.
Disclosed
-
Sub Domain Takeover
The DNS entry should be removed or pointed away from the third-party service if the subdomain is not in use.
Disclosed
-
Broken link for stale DNS entry may be leveraged for Phishing, Misinformation, Serving Malware
The link should be removed or updated to avoid the risk.
Disclosed
-
Adding Used Primary Email Address to attacker account and Account takeover
The application should normalise the submitted address and verify that it does not already exist and belong to another account before updating the table.
Disclosed
-
protect against tabnabbing in statement
The suggested fix is to render links with rel="nofollow", though this does not address the opener relationship.
Disclosed
-
clickjacking on https://gratipay.com/on/npm/[text]
The page should be fixed to prevent framing, though the report does not specify how.
Disclosed
-
Gratipay rails secret token (secret_key_base) publicly exposed in GitHub
The secret key should be removed from the repository.
Disclosed
-
[gratipay.com] Cross Site Tracing
The server should be configured to reject TRACE requests with a 405 Method Not Allowed response.
Disclosed
-
Markdown parsing issue enables insertion of malicious tags
The functionality for these Markdown tags should be disabled.
Disclosed
-
Lack of CSRF token validation at server side
The server should require and validate a long, random, unpredictable CSRF token for every critical operation, unique per session or operation, included in GET URLs and POST forms.
Disclosed
-
Insecure Transportation Security Protocol Supported (TLS 1.0)
The server should be configured to disallow TLS 1.0 by removing it from the ssl_protocols directive and restarting the web server.
Disclosed
-
Possible User Session Hijack using Invalid HTTPS certificate on inside.gratipay.com domain
A valid certificate matching inside.gratipay.com should be installed.
Disclosed
-
Possible user session hijack by invalid HTTPS certificate on inside.gratipay.com domain
A valid certificate for inside.gratipay.com should be installed.
Disclosed
-
CSP Policy Bypass and javascript execution
Update the JavaScript libraries, especially jQuery, to the latest version.
Disclosed