Vulnerabilities

7 via 11 paths

Dependencies

81

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 7
  • 1
Severity
  • 6
  • 2
Status
  • 8
  • 0
  • 0

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.springframework:spring-expression
  • Introduced through: org.springframework:spring-context@6.2.19

Detailed paths

  • Introduced through: Cantara/Whydah-SPAProxyService@Cantara/Whydah-SPAProxyService org.springframework:spring-context@6.2.19 org.springframework:spring-expression@6.2.19
    Remediation: Upgrade to org.springframework:spring-context@7.0.9.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the SimpleEvaluationContext file when the SpEL expression compiler is enabled through specific configuration settings. An attacker can cause unbounded class-loading growth and bypass enforced safety checks by submitting specially crafted expressions for evaluation.

Note: This is only exploitable if the application evaluates SpEL expressions using SimpleEvaluationContext and the SpEL expression compiler is active via the spring.expression.compiler.mode property or a SpelParserConfiguration set to IMMEDIATE or MIXED.

Remediation

Upgrade org.springframework:spring-expression to version 7.0.9 or higher.

References

high severity
new

Sensitive Cookie in HTTPS Session Without "Secure" Attribute

  • Vulnerable module: org.springframework:spring-web
  • Introduced through: org.springframework:spring-web@6.2.19

Detailed paths

  • Introduced through: Cantara/Whydah-SPAProxyService@Cantara/Whydah-SPAProxyService org.springframework:spring-web@6.2.19
    Remediation: Upgrade to org.springframework:spring-web@7.0.9.

Overview

org.springframework:spring-web is a package that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.

Affected versions of this package are vulnerable to Sensitive Cookie in HTTPS Session Without "Secure" Attribute in the JettyCoreServerHttpResponse file. An attacker can compromise user session integrity by exploiting the omission of the sameSite attribute in serialized response cookies, potentially enabling cross-site request forgery (CSRF) attacks when a user interacts with a malicious website.

Remediation

Upgrade org.springframework:spring-web to version 7.0.9 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.springframework:spring-beans
  • Introduced through: org.springframework:spring-beans@6.2.19, org.springframework:spring-aop@6.2.19 and others

Detailed paths

  • Introduced through: Cantara/Whydah-SPAProxyService@Cantara/Whydah-SPAProxyService org.springframework:spring-beans@6.2.19
    Remediation: Upgrade to org.springframework:spring-beans@7.0.9.
  • Introduced through: Cantara/Whydah-SPAProxyService@Cantara/Whydah-SPAProxyService org.springframework:spring-aop@6.2.19 org.springframework:spring-beans@6.2.19
    Remediation: Upgrade to org.springframework:spring-aop@7.0.9.
  • Introduced through: Cantara/Whydah-SPAProxyService@Cantara/Whydah-SPAProxyService org.springframework:spring-context@6.2.19 org.springframework:spring-beans@6.2.19
    Remediation: Upgrade to org.springframework:spring-context@7.0.9.
  • Introduced through: Cantara/Whydah-SPAProxyService@Cantara/Whydah-SPAProxyService org.springframework:spring-web@6.2.19 org.springframework:spring-beans@6.2.19
    Remediation: Upgrade to org.springframework:spring-web@7.0.9.
  • Introduced through: Cantara/Whydah-SPAProxyService@Cantara/Whydah-SPAProxyService org.springframework:spring-context@6.2.19 org.springframework:spring-aop@6.2.19 org.springframework:spring-beans@6.2.19
    Remediation: Upgrade to org.springframework:spring-context@7.0.9.

Overview

org.springframework:spring-beans is a package that is the basis for Spring Framework's IoC container. The BeanFactory interface provides an advanced configuration mechanism capable of managing any type of object.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the data binding. An attacker can exhaust system memory by supplying a crafted property path with a large index value, causing unbounded allocation of list elements when the target object contains a self-populating list whose element type exposes sub-properties.

Note: This is only exploitable if the application uses Spring's data binding infrastructure to apply user-supplied property paths onto a target object, the target object contains a self-populating list implementation as a property, and the list's element type exposes sub-properties.

Remediation

Upgrade org.springframework:spring-beans to version 7.0.9 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.springframework:spring-expression
  • Introduced through: org.springframework:spring-context@6.2.19

Detailed paths

  • Introduced through: Cantara/Whydah-SPAProxyService@Cantara/Whydah-SPAProxyService org.springframework:spring-context@6.2.19 org.springframework:spring-expression@6.2.19
    Remediation: Upgrade to org.springframework:spring-context@7.0.9.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the evaluation of user-supplied SpEL expressions containing the power operator (^) with a BigDecimal or BigInteger operand and a large exponent value. An attacker can cause excessive CPU and memory consumption by submitting specially crafted expressions.

Note: This is only exploitable if the application accepts and evaluates untrusted SpEL expressions and a BigDecimal or BigInteger value is accessible within the evaluation context.

Remediation

Upgrade org.springframework:spring-expression to version 7.0.9 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: org.springframework:spring-web
  • Introduced through: org.springframework:spring-web@6.2.19

Detailed paths

  • Introduced through: Cantara/Whydah-SPAProxyService@Cantara/Whydah-SPAProxyService org.springframework:spring-web@6.2.19
    Remediation: Upgrade to org.springframework:spring-web@7.0.9.

Overview

org.springframework:spring-web is a package that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the PartEventHttpMessageReader file when maxInMemorySize is set to -1. An attacker can cause excessive memory consumption by uploading large multipart requests.

Note: This is only exploitable if the configuration explicitly sets maxInMemorySize to -1.

Remediation

Upgrade org.springframework:spring-web to version 7.0.9 or higher.

References

high severity
new

Cross-site Scripting (XSS)

  • Vulnerable module: org.springframework:spring-web
  • Introduced through: org.springframework:spring-web@6.2.19

Detailed paths

  • Introduced through: Cantara/Whydah-SPAProxyService@Cantara/Whydah-SPAProxyService org.springframework:spring-web@6.2.19
    Remediation: Upgrade to org.springframework:spring-web@7.0.9.

Overview

org.springframework:spring-web is a package that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the Errors.getFieldErrors() or Errors.getFieldError() accessors when rendering field errors with HTML escaping enabled. An attacker can inject arbitrary HTML or JavaScript code by supplying crafted input that is not properly escaped.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade org.springframework:spring-web to version 7.0.9 or higher.

References

medium severity
new

HTTP Response Splitting

  • Vulnerable module: org.springframework:spring-web
  • Introduced through: org.springframework:spring-web@6.2.19

Detailed paths

  • Introduced through: Cantara/Whydah-SPAProxyService@Cantara/Whydah-SPAProxyService org.springframework:spring-web@6.2.19
    Remediation: Upgrade to org.springframework:spring-web@7.0.9.

Overview

org.springframework:spring-web is a package that provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform.

Affected versions of this package are vulnerable to HTTP Response Splitting via the Content-Disposition header when untrusted input is used to construct its value. An attacker can inject malicious characters to break the HTTP header or corrupt the framing of an outbound multipart body by supplying specially crafted file names or values.

Note: This is only exploitable if the application uses non-default or legacy HTTP connectors that do not reject malicious characters in header values, or if untrusted input is used to set the Content-Disposition of a part in an outbound multipart request body.

Remediation

Upgrade org.springframework:spring-web to version 7.0.9 or higher.

References

medium severity

EPL-1.0 license

  • Module: junit:junit
  • Introduced through: junit:junit@4.13.2

Detailed paths

  • Introduced through: Cantara/Whydah-SPAProxyService@Cantara/Whydah-SPAProxyService junit:junit@4.13.2

EPL-1.0 license