io.rest-assured:rest-assured@3.3.0

  • latest version

    6.3.0

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    2 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the io.rest-assured:rest-assured 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
    • H
    Relative Path Traversal

    Affected versions of this package are vulnerable to Relative Path Traversal in the filter method of FormAuthFilter, which takes the name attribute of the first hidden input on the fetched login page and interpolates it with String.format into the FIND_INPUT_FIELD_WITH_NAME GPath template, a string that XMLAssertion.eval then passes in to GroovyShell.evaluate. An attacker in a MitM position who controls the login page response can execute arbitrary code in the JVM running the test suite by naming that input so the value closes the quoted comparison and appends statements, for example ' }; Runtime.getRuntime().exec(new String[]{'/bin/sh','-c','...'}); x={ ', and no CompilerConfiguration with SecureASTCustomizer constrains the shell, so the full class library including ProcessBuilder, reflection, and file I/O is reachable. This requires the caller to have configured autoDetectCsrfFieldName.

    How to fix Relative Path Traversal?

    Upgrade io.rest-assured:rest-assured to version 5.2.0 or higher.

    [,5.2.0)