CVE-2017-3161: Apache Hadoop - Improper Neutralization of Input During Web Page Generation

Summary

13/05/2022
Yes i
Moderate
6.1

CVE-2017-3161: Improper Neutralization of Input During Web Page Generation in Apache Hadoop. Affects org.apache.hadoop:hadoop-client versions < 2.7.0. Fixed in 2.7.0. 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

Apache Hadoop is an open-source framework used for distributed storage and processing of large datasets. It provides a scalable and reliable platform for big data analytics. The 'org.apache.hadoop:hadoop-client' package is a Maven package that includes the Hadoop client libraries. These libraries are used by applications to interact with the Hadoop cluster. The HDFS web UI is a component of Apache Hadoop that allows users to monitor and manage the Hadoop Distributed File System (HDFS) through a web interface.

Vulnerability Detail

The HDFS web UI in Apache Hadoop before version 2.7.0 is vulnerable to a cross-site scripting (XSS) attack. This vulnerability occurs due to improper neutralization of user-controlled input during web page generation. An attacker can exploit this vulnerability by injecting malicious scripts or HTML code into a query parameter that is not properly escaped. When a user visits a crafted URL containing the malicious code, the code will be executed in the context of the HDFS web UI, potentially leading to unauthorized access, data theft, or other malicious activities.

How To Fix

Minimum fixed version

2.7.0

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 of Apache Hadoop is not immediately feasible, a temporary workaround is to implement input validation and sanitization on the server-side. This can be done by properly escaping user-controlled input before using it to generate web pages. Additionally, web application firewalls (WAFs) can be deployed to detect and block malicious input that attempts to exploit this vulnerability.

Conclusion

The HDFS web UI in Apache Hadoop before version 2.7.0 is vulnerable to a cross-site scripting (XSS) attack. It is crucial to upgrade to the latest version of Apache Hadoop to fix this vulnerability and ensure the security of your Hadoop cluster. Implementing input validation and sanitization on the server-side and deploying web application firewalls (WAFs) can provide temporary protection until the upgrade is performed. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.hadoop:hadoop-client →

Share this vulnerability

FAQ

Apache Hadoop is an open-source framework for distributed storage and processing of large datasets. It provides a scalable and reliable platform for big data analytics.

The HDFS web UI is a component of Apache Hadoop that allows users to monitor and manage the Hadoop Distributed File System (HDFS) through a web interface.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts or HTML code into web pages viewed by other users.

This vulnerability can lead to unauthorized access, data theft, or other malicious activities. An attacker can exploit the vulnerability to execute arbitrary code in the context of the HDFS web UI, potentially compromising the entire Hadoop cluster.

To protect your Apache Hadoop installation, it is recommended to upgrade to version 2.7.0 or later. Additionally, implementing input validation and sanitization on the server-side and deploying web application firewalls (WAFs) can help mitigate the risk of XSS attacks.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.hadoop:hadoop-client.

How To Fix

Minimum fixed version

2.7.0

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