CVE-2017-8039: Insecure Default Initialization of Resource in Pivotal Spring Web Flow

Summary

13/05/2022
Yes i
Moderate
5.9

CVE-2017-8039: Insecure Default Initialization of Resource in Pivotal Spring Web Flow. Affects org.springframework.webflow:spring-webflow versions < 2.4.6. Fixed in 2.4.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Pivotal Spring Web Flow is a framework that provides a module for building web applications with controlled navigation and state management. It allows developers to define flows that guide users through a series of steps or screens. The MvcViewFactoryCreator is a component in Spring Web Flow that is responsible for creating view factories for rendering views. By default, the useSpringBinding property of MvcViewFactoryCreator is disabled, which can lead to a vulnerability in applications that do not change this default value.

Vulnerability Detail

The vulnerability in Pivotal Spring Web Flow through version 2.4.5 arises from an incomplete fix for CVE-2017-4971. Applications that do not modify the useSpringBinding property are susceptible to malicious Expression Language (EL) expressions in view states that process form submissions without explicit data binding property mappings. This can allow an attacker to execute arbitrary code or perform unauthorized actions within the application context. The severity of this vulnerability is rated as MODERATE with a CVSS score of 5.9.

How To Fix

Minimum fixed version

2.4.6

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a workaround is to manually set the useSpringBinding property to 'true' in the application configuration. This can be done by adding the following code snippet to the configuration file:

<bean id="mvcViewFactoryCreator" class="org.springframework.webflow.mvc.builder.MvcViewFactoryCreator">
    <property name="useSpringBinding" value="true" />
</bean>

Conclusion

The vulnerability in Pivotal Spring Web Flow through version 2.4.5 can allow attackers to execute arbitrary code or perform unauthorized actions within the application context. It is crucial to upgrade to version 2.4.6 or later and configure the useSpringBinding property correctly to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.springframework.webflow:spring-webflow →

Share this vulnerability

FAQ

Pivotal Spring Web Flow is a framework for building web applications with controlled navigation and state management. It provides a module that allows developers to define flows that guide users through a series of steps or screens.

The MvcViewFactoryCreator is a component in Pivotal Spring Web Flow that is responsible for creating view factories for rendering views. It is used to configure the behavior of view states in the flow.

The useSpringBinding property is a configuration option in the MvcViewFactoryCreator component. When set to 'true', it enables secure data binding for form submissions in view states. By default, this property is disabled ('false').

This vulnerability allows an attacker to inject malicious Expression Language (EL) expressions in view states that process form submissions. This can lead to arbitrary code execution or unauthorized actions within the application context.

To mitigate this vulnerability, it is recommended to upgrade to version 2.4.6 or later of the org.springframework.webflow:spring-webflow package. Additionally, ensure that the useSpringBinding property is explicitly set to 'true' in the application configuration.

Related vulnerabilities

Recent vulnerabilities recorded for org.springframework.webflow:spring-webflow.

How To Fix

Minimum fixed version

2.4.6

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback