CVE-2018-20594: org.hswebframework.web:hsweb-commons - Reflected XSS Vulnerability

Summary

04/01/2019
No i
Moderate
6.1

CVE-2018-20594: Moderate severity vulnerability that affects org.hswebframework.web:hsweb-commons. Affects org.hswebframework.web:hsweb-commons versions < 3.0.4. No fix is published. 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

org.hswebframework.web:hsweb-commons is a Maven package that provides common utilities and components for building web applications. It is widely used in Java-based web development projects. This package is vulnerable to a reflected cross-site scripting (XSS) attack due to the absence of type parameter checking in the FlowableModelManagerController.java file. This vulnerability allows an attacker to inject malicious scripts into web pages viewed by users, potentially leading to unauthorized access, data theft, or other malicious actions.

Vulnerability Detail

The vulnerability arises from the lack of proper input validation and sanitization in the FlowableModelManagerController.java file of org.hswebframework.web:hsweb-commons. By exploiting this vulnerability, an attacker can craft a malicious URL that, when clicked by a victim, executes arbitrary JavaScript code in the victim's browser. This can lead to session hijacking, defacement of web pages, or the theft of sensitive information. The vulnerability has a CVSS score of 6.1, indicating a moderate severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, developers can manually implement input validation and sanitization in the affected code. This can be done by checking the type parameter and applying appropriate encoding or filtering to prevent the execution of malicious scripts. Here is an example of how to implement input validation and sanitization in Java:

// Validate and sanitize the 'type' parameter
String type = request.getParameter("type");
if (type != null) {
    type = type.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
}

This code snippet replaces the '<' and '>' characters with their HTML entity equivalents, effectively neutralizing any potential XSS attacks.

Conclusion

The org.hswebframework.web:hsweb-commons package is vulnerable to a reflected XSS attack due to the absence of type parameter checking in the FlowableModelManagerController.java file. This vulnerability can have serious consequences, including unauthorized access and data theft. It is crucial to update the package to a fixed version and implement proper input validation and sanitization to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for org.hswebframework.web:hsweb-commons →

Share this vulnerability

FAQ

org.hswebframework.web:hsweb-commons is a Maven package that provides common utilities and components for building web applications in Java. It offers various functionalities such as database access, authentication, authorization, and more.

A reflected cross-site scripting (XSS) vulnerability is a type of security vulnerability that allows an attacker to inject malicious scripts into web pages viewed by users. The injected scripts are typically crafted in URLs and are reflected back to the user's browser, executing the malicious code.

This vulnerability can lead to various malicious actions, including unauthorized access to user accounts, theft of sensitive information, defacement of web pages, and the execution of arbitrary code in the victim's browser.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your pom.xml file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

Yes, it is recommended to update the org.hswebframework.web:hsweb-commons package to a version that includes the necessary type parameter checking in the FlowableModelManagerController.java file. The latest version of the package should have this issue resolved.

Related vulnerabilities

Recent vulnerabilities recorded for org.hswebframework.web:hsweb-commons.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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