Skip to content
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
noorqureshi/code-review-rubyWeb and bug bounty

code-review-ruby

⁨Security review of Ruby code — dangerous sinks and Rails pitfalls. Load when reviewing a Ruby/Rails codebase/PR, on .rb source in scope, or "review this Rails app". Signals: Gemfile, config/routes.rb, ActiveRecord, ERB, YAML.load, send/constantize.⁩

v2026.10.14-ee0e0c53 installs+3 in 7 days27 StarsMITsynced 23 hours ago

Install

No NotHoly CLI yet? Install it first.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install noorqureshi/code-review-ruby

Writes to ⁦~/.notholy/skills⁩ after checking the signature and the SHA-256.

SignatureSigned, ed25519
BP/ONp3Kkh…fGvj5nCw==The CLI checks the SHA-256 and the signature before it writes a file.
Packageea925e84…71b64825
ea925e844765…665c71b648251 file · ⁦1.6 KB⁩
ScanLowno findings
The scan found nothing to flag in this version.See the full scan
Sourcegithub.com/NoorQureshi/security-skills/tree/main/skills/code-review/code-review-ruby@ee0e0c5

When it applies

Reviewing Ruby source, usually Rails. Rails is safe by default in many places, so the bugs cluster in dynamic dispatch, mass assignment gaps, raw SQL, and unsafe deserialization/rendering.

Why it works

Ruby's metaprogramming (send, constantize, eval) turns strings into method/class/code references, and Rails helpers have unsafe escape hatches (.html_safe, where("...#{x}..."), render inline:). Tracing params to these is the whole game — and Brakeman automates the first pass.

Sinks & patterns (grep, then trace to user input)

  • Code exec: eval, instance_eval, class_eval, backticks/system/%x/exec/open("|…").
  • Dynamic dispatch: send/public_send/__send__ with a param method name; constantize/ safe_constantize on input (arbitrary class instantiation).
  • SQLi: string interpolation in where("name = '#{x}'"), find_by_sql, order(params[:sort]), pluck/group with input.
  • Mass assignment: missing/loose Strong Parameters (params.permit!, permit(*keys)).
  • Deserialization: YAML.load(vs safe_load), Marshal.load, Oj in compat mode on input.
  • XSS/SSRF/render: .html_safe/raw on user data, render inline:/render text: with input, open/Net::HTTP on user URLs, send_file/params[:path] traversal.

Framework specifics

  • Rails: permit/require correctness, skip_before_action :verify_authenticity_token (CSRF), redirect_to params[...] (open redirect), route globbing exposing actions, secrets in credentials/ENV, default protect_from_forgery disabled on APIs.

Method

  1. Run brakeman and bundler-audit; triage the warnings (Brakeman is high-signal for Rails).
  2. rg 'send\(|constantize|eval|where\(".*#\{|html_safe|YAML.load|render.*inline' → trace to params.
  3. Check every controller's strong-params and before_action auth coverage.
  4. Confirm exploitable findings with web-sqli, web-deserialization, web-ssrf, web-idor.

Gotchas

  • send to a fixed symbol is fine; the bug is send(params[:action]).
  • YAML.safe_load is safe; plain YAML.load on input is RCE-capable.
  • Brakeman false positives exist — always confirm the param actually reaches the sink.

References

Brakeman docs; Rails Security Guide; OWASP Ruby on Rails cheat sheet.

Files in this version

Permissions

PermissionDeclaredFound by the scan
Reads filesNoNo
Writes filesNoNo
Runs shell commandsNoNo
Uses the networkNoNo
Uses connectorsNoNo
Drives a browserNoNo

Scan findings

Reviewed on Nov 13, 2026

The scan found nothing to flag in this version.

A clean scan lowers the risk but does not prove a package is safe. Read what you install.

VersionPublishedCommitSHA-256SignaturePermission change
v2026.10.14-ee0e0c5Nov 13, 2026ee0e0c5ea925e84Signed–

Ask anything your scope allows.

Create an account, add credits and ask the first question in the chat or the terminal.

  1. 1/3

    Create the account

    Individual or company. You can switch to a company later without losing balance or keys.

    IndividualCompany
  2. 2/3

    Add credits

    By card. Pay per token, no subscription.

    $5.00minimum deposit
  3. 3/3

    Ask

    In the chat, or install the CLI and run notholy login in your terminal.

    $ notholy login