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 התקנות+3 ב-7 ימים27 כוכביםMITסונכרן לפני 23 שעות
התקנה
עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install noorqureshi/code-review-rubyנכתב אל ~/.notholy/skills אחרי בדיקת החתימה וה-SHA-256.
חתימהחתום, ed25519
חבילהea925e84…71b64825
ea925e844765…665c71b64825קובץ אחד · 1.6 KBסריקהנמוךאין ממצאים
מקורgithub.com/NoorQureshi/security-skills/tree/main/skills/code-review/code-review-ruby@ee0e0c5
הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.
בעמוד הזה
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_constantizeon input (arbitrary class instantiation). - SQLi: string interpolation in
where("name = '#{x}'"),find_by_sql,order(params[:sort]),pluck/groupwith input. - Mass assignment: missing/loose Strong Parameters (
params.permit!,permit(*keys)). - Deserialization:
YAML.load(vssafe_load),Marshal.load,Ojin compat mode on input. - XSS/SSRF/render:
.html_safe/rawon user data,render inline:/render text:with input,open/Net::HTTPon user URLs,send_file/params[:path]traversal.
Framework specifics
- Rails:
permit/requirecorrectness,skip_before_action :verify_authenticity_token(CSRF),redirect_to params[...](open redirect), route globbing exposing actions, secrets incredentials/ENV, defaultprotect_from_forgerydisabled on APIs.
Method
- Run
brakemanandbundler-audit; triage the warnings (Brakeman is high-signal for Rails). rg 'send\(|constantize|eval|where\(".*#\{|html_safe|YAML.load|render.*inline'→ trace to params.- Check every controller's strong-params and
before_actionauth coverage. - Confirm exploitable findings with
web-sqli,web-deserialization,web-ssrf,web-idor.
Gotchas
sendto a fixed symbol is fine; the bug issend(params[:action]).YAML.safe_loadis safe; plainYAML.loadon 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.
הקבצים בגרסה הזו
- SKILL.md2.8 KB
הרשאות
| הרשאה | הוצהר | נמצא בסריקה |
|---|---|---|
| קורא קבצים | לא | לא |
| כותב קבצים | לא | לא |
| מריץ פקודות shell | לא | לא |
| משתמש ברשת | לא | לא |
| משתמש במחברים | לא | לא |
| שולט בדפדפן | לא | לא |
ממצאי הסריקה
נבדק ב-13 בנוב׳ 2026
הסריקה לא מצאה בגרסה הזו שום דבר שצריך לסמן.
סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.
| גרסה | פורסמה | Commit | SHA-256 | חתימה | שינוי בהרשאות |
|---|---|---|---|---|---|
| v2026.10.14-ee0e0c5 | 13 בנוב׳ 2026 | ee0e0c5 | ea925e84 | חתומה | – |
עוד מ-NoorQureshi
הכול מהמפרסם הזהעוד בקטגוריה Web ו-bug bounty
לקטגוריה- src-hunterzhaoxuya520/src-hunter5
- owasp-top10-analysissecurityskills/owasp-top10-analysis5
- testing-for-xml-injection-vulnerabilitiesmukul975/testing-for-xml-injection-vulnerabilities5
- offensive-xsssnailsploit/offensive-xss5
- offensive-rcesnailsploit/offensive-rce5
- source-review-techniqueaeondave/source-review-technique5
שאלו כל מה שהסקופ מאפשר.
יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.
- 1/3
יצירת חשבון
פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.
פרטיחברה - 2/3
הוספת קרדיטים
בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.
$5.00טעינה מינימלית - 3/3
שאלה ראשונה
בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.
$ notholy login