Hunt prep
Before you test Ruby on Rails
What 74 disclosed reports say about Ruby on Rails: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 9
- median public bounty
- $1,000
- highest public bounty
- $1,500
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| RCE lesson | 8 | 2 | $1,500 | $1,500 | $3,000 |
| Path traversal lesson | 7 | 3 | $1,000 | $1,500 | $3,000 |
| Business logic lesson | 4 | 1 | $1,500 | $1,500 | $1,500 |
| XSS lesson | 23 | 2 | $500 | $500 | $1,000 |
| Open redirect lesson | 4 | 1 | $1,000 | $1,000 | $1,000 |
| DoS lesson | 10 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| CSRF lesson | 3 | 0 | – | – | $0 |
| SQL injection lesson | 2 | 0 | – | – | $0 |
| Info disclosure lesson | 2 | 0 | – | – | $0 |
| Crypto lesson | 2 | 0 | – | – | $0 |
| Misconfiguration lesson | 2 | 0 | – | – | $0 |
| Leaked secrets lesson | 1 | 0 | – | – | $0 |
| File upload lesson | 1 | 0 | – | – | $0 |
| Subdomain takeover 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.
-
ActionText `to_markdown` still allows `javascript:` links in kramdown via Rails-generated table cells after PR #58754
It was addressed by changing to_markdown to strip leading and trailing whitespace from code spans in table cells, avoiding the kramdown behaviour.
Disclosed
-
Possible DoS in NumberHelpers
It was fixed in Active Support [redacted], [redacted] and [redacted] by treating any string containing 'e' or 'd' as non-numeric and returning it unchanged.
Disclosed
-
Action Text to_markdown: <code>/<pre> content escapes its delimiter, letting a stored body inject arbitrary Markdown
A suggested patch was attached as evidence that the two shapes are separable, but the author leaves the real fix to the maintainers; no released version is affected since the feature exists only on main.
Disclosed
-
URI scheme validation bypass in ActionText `to_markdown` via user-supplied `<action-text-markdown>` marker tag
Strip user-supplied `<action-text-markdown>` nodes before `to_markdown` creates its own internal markers, so only library-generated markers are treated as trusted.
Disclosed
-
Active Storage Vips Transformer Missing validate_transformation — CVE-2025-24293 Incomplete Fix
The Vips transformer should override validate_transformation with the same allowlist and denylist as ImageMagick, or the validation should be moved into the base class so all processors are protected.
Disclosed
-
ActiveStorage Disk Service Path Traversal via Custom Blob Key Injection
It should be fixed by validating the key format on the blob model and by checking in path_for that the resolved path stays within the storage root, ideally both together.
Disclosed
-
1-Click Cross-Site Scripting via Custom Configuration in SafeListSanitizer
The maintainers prefer to address the sanitiser's behaviour when formaction is allowed in the public tracker rather than treat it as a security fix.
Disclosed
-
XSS vulnerabilities due to missing checks in tag helpers
The helpers should be changed to restrict the characters allowed in attribute names and tag names, and the author proposes a patch with tests for backporting.
Disclosed
-
Argument/Code Injection via ActiveStorage's image transformation functionality
The report recommends adding documentation warnings, fixing the argument injection, and implementing an operations whitelist in ImageProcessing.
Disclosed
-
Possible DOS in app with crashing `exceptions_app`
Rails should return a fresh failsafe response each time instead of a shared mutable constant, as the author's patch does.
Disclosed
-
Incomplete fix for CVE-2022-32209 (XSS in Rails::Html::Sanitizer under certain configurations)
The fix should apply the tag-combination cleanup to the class-level allow list as well as to tags passed in options, and the author supplied a patch and test for this.
Disclosed
-
Subdomain Takeover at https://new.rubyonrails.org/
The DNS record pointing at the unclaimed GitHub Pages site should be removed.
Disclosed
-
XSS by MathML at Active Storage
The binary-format list should include application/mathml+xml so such uploads are not treated as binary.
Disclosed
-
HTTP Host injection in redirect_to function
The application should validate both IP addresses and hostnames in the environment configuration when the host is not explicitly provided to redirect_to.
Disclosed
-
Regex Injection from request header (Rack::Sendfile, send_file)
Applications should set x_sendfile_header to an empty string or configure X-Accel-Mapping in nginx, and Rack should stop using request headers for this purpose.
Disclosed