High severityRubySSRF & Path TraversalMEDIUM confidence
SSRF Tainted Input
A request-controlled value is used as the URL/host of an outbound HTTP request (Net::HTTP, open-uri, HTTParty, Faraday, RestClient), enabling server-side request forgery (CWE-918).
Standards mapping
- OWASP Top 10
- A10:2021 - Server-Side Request Forgery (SSRF)
- OWASP ASVS
- V12.6.1 (L1)
Vulnerable vs. safe
Flagged by this check
HTTParty.get(params[:target_url])Passes - the safe pattern
HTTParty.get("https://api.example.com/status")Why it matters & how to fix it
A request-controlled value is used as the URL/host of an outbound HTTP request (Net::HTTP, open-uri, HTTParty, Faraday, RestClient), enabling server-side request forgery (CWE-918). Validate the destination against an allow-list of permitted hosts/schemes and reject internal/link-local addresses before making the request.
References
Rule ID integsec-ruby-ssrf-taint - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - SSRF & Path TraversalPath Join With Request
- JavaScript / TypeScript - SSRF & Path TraversalPath Traversal Tainted Input
- JavaScript / TypeScript - SSRF & Path TraversalSSRF Outbound Request Tainted Input
- Python - SSRF & Path TraversalPath Traversal
- Python - SSRF & Path TraversalSSRF HTTP Request
- Java - SSRF & Path TraversalPath Traversal Tainted Input