org.springframework.integration:spring-integration-ftp@7.1.2

  • latest version

    7.1.2

  • latest non vulnerable version

  • first published

    16 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.springframework.integration:spring-integration-ftp package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Improper Certificate Validation

    Affected versions of this package are vulnerable to Improper Certificate Validation in the DefaultFtpsSessionFactory class, which by default relies on Apache Commons Net's trust manager that checks only certificate validity dates, never the chain against a trust anchor, and does not enable FTPS endpoint (hostname) checking. An attacker in a MitM position between the application and the FTPS server can present any unexpired self-signed certificate, intercept the TLS session, capture the login credentials, and read or alter transferred files. This affects any application that uses DefaultFtpsSessionFactory without an explicitly configured TrustManager.

    How to fix Improper Certificate Validation?

    Upgrade org.springframework.integration:spring-integration-ftp to version 7.0.8, 7.1.3 or higher.

    [,7.0.8)[7.1.0-M1,7.1.3)
    • H
    Arbitrary Command Injection

    Affected versions of this package are vulnerable to Arbitrary Command Injection in the FtpMessageHandler and FtpOutboundGateway classes, which build the FTP SITE chmod command by concatenating the remote file path into the command argument without rejecting control characters. An attacker who can influence the remote filename or directory, for example through the FileHeaders.FILENAME header consumed by DefaultFileNameGenerator, can embed CR or LF characters to inject additional FTP commands on the same control connection, executed with the configured FTP account's privileges. This affects applications that enable chmod on an FTP or FTPS outbound component and derive the remote path from untrusted message data.

    How to fix Arbitrary Command Injection?

    Upgrade org.springframework.integration:spring-integration-ftp to version 7.0.8, 7.1.3 or higher.

    [,7.0.8)[7.1.0-M1,7.1.3)