org.apache.shiro:shiro-jakarta-ee@3.0.0-alpha-1

  • latest version

    3.0.1

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    21 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.apache.shiro:shiro-jakarta-ee 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
    Server-side Request Forgery (SSRF)

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through the FormResubmitSupport resubmission client in support/jakarta-ee/src/main/java/org/apache/shiro/ee/filters/FormResubmitSupport.java. An attacker can make the server initiate an outbound request to an attacker-controlled URL and send attacker-controlled form data by submitting a crafted HTTP request that reaches the form-resubmission path. In affected deployments using the Jakarta EE integration module, the vulnerable resubmit flow runs during request handling for low-privileged users and replays data as part of the resubmission check. This can expose internal network access and lets the attacker drive the server to contact arbitrary endpoints with chosen content.

    Workarounds

    • Set the org.apache.shiro.form-resubmit-host system property to a specific host so Shiro only resubmits forms to that host, reducing the chance of outbound requests to attacker-controlled URLs.
    • Set the org.apache.shiro.form-resubmit-port system property to a specific port so Shiro only resubmits forms to that port, limiting where the server can connect during form resubmission.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade org.apache.shiro:shiro-jakarta-ee to version 3.0.1 or higher.

    [2.0.0-alpha-0,3.0.1)
    • M
    Open Redirect

    Affected versions of this package are vulnerable to Open Redirect in handling shiroSavedRequest cookies, which use unprotected/unencrypted values for SAVED_REQUEST_KEY. An authenticated user can cause the server to make blind HTTP GET requests to arbitrary URLs or redirect users to untrusted sites by forging this cookie.

    How to fix Open Redirect?

    Upgrade org.apache.shiro:shiro-jakarta-ee to version 2.2.0, 3.0.0-alpha-2 or higher.

    [,2.2.0)[3.0.0-alpha-0,3.0.0-alpha-2)
    • M
    Open Redirect

    Affected versions of this package are vulnerable to Open Redirect due to insufficient validation of the Referer header in saveRequestReferer(). An authenticated user can redirect users to arbitrary external sites by supplying a malicious Referer value during authentication.

    How to fix Open Redirect?

    Upgrade org.apache.shiro:shiro-jakarta-ee to version 2.2.1, 3.0.0-alpha-2 or higher.

    [,2.2.1)[3.0.0-alpha-1,3.0.0-alpha-2)