ActionText's to_markdown method wrote the contents of code and pre elements without escaping, relying on the code span delimiter to keep them inert. When such code sat in a table cell and began with whitespace, kramdown rebuilt the span with a single backtick and rendered a javascript: link that to_markdown would otherwise refuse to produce.
Active Support's number helpers accepted strings in scientific notation, so a string like a large exponent was parsed by BigDecimal into a number with an enormous number of digits. An application passing user input to a helper such as number_to_currency could be taken down by a single request through memory exhaustion or CPU use.
The Markdown converter in Action Text fails to keep text inside <code> and <pre> elements inert, because the delimiters it wraps around that text can be broken by blank lines or by being spliced mid-line. A user who can store rich text can therefore emit live Markdown link syntax with a javascript: scheme, or raw HTML, which the escaping is meant to prevent.
The markdown converter in ActionText treats any `<action-text-markdown>` element as trusted internal markup and emits its text without escaping, so a user-supplied tag of that name bypasses the URI-scheme validation applied to normal links. An attacker who can author rich text could therefore produce markdown export containing a `javascript:` link.
The Vips transformer in Active Storage does not override validate_transformation, so it inherits a base implementation that only blocks combine_options. An attacker who can pass a hash of variant parameters can use the write_to_file operation to write image data to an arbitrary server path.
A regular expression used in Action Text's plain text conversion can take a very long time on crafted input when running Ruby 3.1 or lower. An attacker could send a message containing a blockquote with many whitespace characters and a couple of letters, causing a denial of service when the text is converted to plain text.
ActiveStorage's DiskService builds file paths from blob keys without checking for traversal sequences, and the Hash attachable interface forwards a user-supplied key straight through to the blob without filtering. An attacker who can influence that Hash could write, read or delete files outside the storage root, potentially leading to code execution.
The SafeListSanitizer, when explicitly configured to allow form and button tags plus the formaction attribute, can be given crafted input that results in cross-site scripting. The maintainers argue this is not a vulnerability because the default configuration sanitises the input and the required configuration is extremely unlikely.
A crafted rich-text attachment value stored through the blog creation form is rendered unsafely on the Action Text edit page, so script in the attachment fires there. An attacker could run script in the browser of another user who opens the same edit page.
ActiveStorage's disk service allows path traversal via the signed key value, enabling arbitrary file read and write. An attacker who knows secret_key_base can forge tokens to read any file and write to any path, leading to remote code execution.
An API key for Sauce Labs was found in an old commit of a Travis CI configuration file, encoded but not encrypted. The key was still active, and the reporter believes it could give an attacker full control of the account.
The `translate` helper in Action Controller marks error messages and default values as HTML-safe without escaping, so a key containing `_html` and a tag value, or an unescaped `default` value, leads to cross-site scripting. An attacker could inject script through a controller parameter passed to `translate`.
The Active Storage proxy controller passes the Range header to Rack's byte-range parser without limiting the number of overlapping ranges. An attacker can send a crafted Range header with many overlapping ranges, causing the server to allocate large amounts of memory and potentially exhaust it.
Kredis casts JSON values using JSON.load, which honours the json_class key and can instantiate classes that define json_create rather than returning a plain hash. An attacker who controls a value stored through Kredis.json could cause unexpected object types to be deserialised, and if json/add/core is loaded, a regular expression could be revived, risking ReDoS.
Rails only applies its Content Security Policy to responses with an HTML content type, so an SVG served inline as image/svg+xml runs embedded script without the policy. An attacker who can upload such a file and get a victim to open it could execute script in the victim's session.
Several Rails view tag helpers fail to properly restrict characters in attribute names and tag names, so user-controlled input can break out of the generated HTML tag and inject script. An attacker could run arbitrary JavaScript in a victim's browser, including stored XSS where input is saved.
ActiveStorage's image transformation methods pass user-supplied arguments to ImageMagick without sanitisation, allowing argument injection and arbitrary file write. Additionally, the transformation name is passed to Ruby's send, enabling code execution if the application uses user-controlled transformation names.
Rails' redirect_to function mishandles certain control characters in the URL, causing the Location header to be dropped. An attacker can then inject a javascript: URI into the fallback HTML link, leading to XSS if the victim clicks it.
A regular expression in Rack's multipart parser is vulnerable to catastrophic backtracking (ReDoS). An attacker can send a crafted Content-Disposition header that causes the server to spend excessive CPU time, leading to denial of service.
The Rails sanitize helper could be bypassed when the svg and use tags were explicitly allowed, because a use element could reference a base64-encoded SVG containing an event handler. An attacker could then run script in the victim's browser and act as that user.
Rack's common logger writes the request method into the log line without sanitising it, so control characters such as backspaces pass through unchanged. An attacker could inject escape sequences into the logs, which may then be executed by a victim's terminal emulator when the log is viewed.
A shared, non-frozen constant response in Rails' exception-handling middleware was mutated by other middleware on each request, growing a self-referencing object until the server crashed. An attacker could take the app offline by repeating a request that triggers the error path enough times.
The fix for CVE-2022-32209 only removed the dangerous combination of 'select' and 'style' from tag lists passed directly to the sanitize method, not from the class-level allow list configured in the application. An attacker could therefore still inject script through a crafted select/style combination when the allow list was set in configuration, resulting in cross-site scripting.
The subdomain new.rubyonrails.org had a DNS record pointing to an unclaimed GitHub Pages site, so anyone could register that page and serve content under the trusted domain. The reporter claimed it and showed a simple page as proof, noting that cookies scoped to the root domain could be exposed and that the domain could host phishing or malicious content.
Active Storage's list of binary formats did not include application/mathml+xml, so a file uploaded with the .mml extension was served as MathML rather than as a download. An attacker could upload a MathML file containing a javascript link and get a Firefox user to click it, running script in the site's origin.
The redirect_to method in Ruby on Rails concatenates the request host with a user-supplied path, and the host is taken from the Host or X-Forwarded-Host header. An attacker can inject a malicious host to redirect users to an attacker-controlled site, potentially enabling password reset poisoning or web cache poisoning.
Rack::Sendfile and Rails send_file trust the X-Sendfile-type and X-Accel-Mapping request headers, which are meant to come from nginx. An attacker can inject a regular expression through X-Accel-Mapping to cause CPU exhaustion (ReDoS) or redirect file paths to internal nginx locations, potentially reading files like /etc/passwd.
The redirect_to helper in Ruby on Rails could be tricked into calling arbitrary controller methods when given an array parameter, because it treats the array as a method name to call. An unauthenticated attacker could use this to discover which routes exist by observing whether the app returns a 500 error or redirects.
RO
Ruby on Rails
Low
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.