Go Unencrypted Ftp Connection
Description
Detects usage of unencrypted FTP connections through the jlaffaye/ftp Go package. Using FTP without encryption can expose sensitive data and credentials in plaintext during transmission, making them vulnerable to interception.
Detection Strategy
• Check if the code imports the 'github.com/jlaffaye/ftp' package
• Look for function calls or method invocations using this FTP package
• Report vulnerability when FTP connections are established without encryption configuration
Vulnerable code example
package main
import (
"github.com/jlaffaye/ftp"
"time"
)
func main() {...✅ Secure code example
package main
import (
"crypto/tls"
"log"
"github.com/jlaffaye/ftp"
)
...Search for vulnerabilities in your apps for free with Fluid Attacks' automated security testing! Start your 21-day free trial and discover the benefits of the Continuous Hacking Essential plan. If you prefer the Advanced plan, which includes the expertise of Fluid Attacks' hacking team, fill out this contact form.