AWS logo
Amazon QDetector LibrarySign in to Amazon Q
AWSbreadcrumb dividerDocumentationbreadcrumb dividerAmazon Qbreadcrumb dividerDetector Librarybreadcrumb dividerRubybreadcrumb dividersend_file InjectionFeedbackFeedback icon

Amazon Q

Detector Library

Ruby detectors (29/29)

SQL InjectionDivide by ZeroSensitive HTTP ActionInsufficient Protected CredentialsSensitive Information LeakCross-Site Request Forgery (CSRF)Untrusted DeserializationLog InjectionXML External EntityPath InjectionDeprecated Get ConfigurationHttp to File AccessInsufficient Key SizeCode InjectionOS Command InjectionInsecure CookieResource leakCross Site Scripting (XSS)Untrusted OpenModel Attr AccessibleServer Side Request ForgeryImproper Input ValidationStack Trace ExposureOpen RedirectImproper Certificate Validationsend_file InjectionUnsafe File PermissionsInsecure CryptographyTainted Format

send_file Injection High

Never allow user input in send_file to prevent security risks. Allowing this input could let a malicious user access any file on the server.

Detector ID
ruby/sendfile-injection@v1.0
Category
Security
Common Weakness Enumeration (CWE) external icon
CWE-73
Tags
# injection