Rapid7 Analysis KindaRails2Shell (CVE-2026-66066) - #2591
Open
carlospolop wants to merge 2 commits into
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://rapid7.com/blog/post/ra-kindarails2shell-technical-analysis-cve-2026-66066 Content Categories: Based on the analysis, this content was categorized under "Pentesting Web > File Upload, with a dedicated Ruby on Rails Active Storage / libvips parser-confusion page; cross-reference Network Services Pentesting > 80,443 > Ruby Tricks and image-processing security". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
Keep master's numbered list and append this PR's Rails/libvips sources as [24]-[27], citing the new sections. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview
KindaRails2Shell (CVE-2026-66066) is an arbitrary file-read vulnerability in Ruby on Rails Active Storage applications that process untrusted uploads with the Vips image processor. Affected Active Storage ranges are
< 7.2.3.2,>= 8.0, < 8.0.5.1, and>= 8.1, < 8.1.3.1. Vips is the default variant processor for applications loading Rails 7.0-or-later defaults; Rails 6 is affected only when Vips is explicitly...🔧 Technical Details
Bypass file-type controls through pre-upload metadata: When an upload workflow creates a database object before receiving or inspecting the file, test whether the client can persist a trusted MIME type. Active Storage direct uploads accept and store
content_typewithout running Marcel's server-sideunfurlidentification. SinceBlob#variable?later checks only whether that stored string belongs tovariable_content_types, a non-image object markedimage/pngcan enter an image-processing pipeline.Replay independently signed parameters: Signed values may provide authenticity without guaranteeing their relationship. If an endpoint separately verifies an object identifier and an operation/configuration token, test whether a token generated for one object can be applied to another. Active Storage accepts a genuine signed
variation_keyfrom one representation and indep...🤖 Agent Actions
Using repo-inspection tools to find the best existing HackTricks page for Rails Active Storage / parser-confusion upload abuse.
Best fit is the existing File Upload page: adding the Rails/libvips parser-confusion upload technique there, with inline links to related Ruby/image-processing pages, while keeping all new content in a single file.
I found the new references landed near the top of the file instead of inside the final
## Referencessection, so I'm correcting the placement before verification.Done.
Updated:
src/pentesting-web/file-upload/README.mdAdded:
I verified the final diff and kept all new content in a single file.
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.