HTTP: Ruby Net FTP Command Injection

This signature detects attempts to exploit a known vulnerability against Ruby Net FTP. A successful attack can lead to command injection and arbitrary code execution.

Extended Description

Ruby before 2.4.3 allows Net::FTP command injection. Net::FTP#get, getbinaryfile, gettextfile, put, putbinaryfile, and puttextfile use Kernel#open to open a local file. If the localfile argument starts with the "|" pipe character, the command following the pipe character is executed. The default value of localfile is File.basename(remotefile), so malicious FTP servers could cause arbitrary command execution.

Affected Products

Ruby-lang ruby

References

CVE: CVE-2017-17405

Short Name
HTTP:CTS:RUBY-NET-CI
Severity
Major
Recommended
False
Recommended Action
Drop
Category
HTTP
Keywords
CVE-2017-17405 Command FTP Injection Net Ruby
Release Date
01/06/2025
Supported Platforms

srx-branch-12.3

srx-19.3

srx-branch-19.3

vsrx3bsd-19.2

srx-branch-19.4

vsrx-19.4

mx-12.3

mx-19.4

vmx-19.4

mx-19.3

vsrx3bsd-19.4

srx-19.4

vsrx-12.3

vmx-19.3

vsrx-19.2

srx-12.3

Sigpack Version
3771
False Positive
Unknown
Vendors

Ruby-lang

Debian

Redhat

Found a potential security threat?