Lookup for vulnerabilities affecting packages.
| Vulnerability_id | VCID-ks91-x6vr-tbay |
| Summary | Command Injection
A remote code execution vulnerability occurs in OpenTSDB via command injection in the `yrange` parameter. The `yrange` value is written to a gnuplot file in the `/tmp` directory. This file is then executed via the `mygnuplot.sh` shell script. (`tsd/GraphHandler.java` attempted to prevent command injections by blocking backticks but this is insufficient). |
| Aliases |
| 0 |
|
| 1 |
| alias |
GHSA-hv53-q76c-7f8c |
|
|
| Fixed_packages |
|
| Affected_packages |
| 0 |
|
| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
|
| References |
|
| Weaknesses |
| 0 |
| cwe_id |
1035 |
| name |
OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities |
| description |
Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017. |
|
| 1 |
| cwe_id |
77 |
| name |
Improper Neutralization of Special Elements used in a Command ('Command Injection') |
| description |
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. |
|
| 2 |
| cwe_id |
937 |
| name |
OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities |
| description |
Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013. |
|
| 3 |
| cwe_id |
78 |
| name |
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') |
| description |
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. |
|
|
| Exploits |
| 0 |
| date_added |
null |
| description |
This module exploits an unauthenticated command injection
vulnerability in the yrange parameter in OpenTSDB through
2.4.0 (CVE-2020-35476) in order to achieve unauthenticated
remote code execution as the root user.
The module first attempts to obtain the OpenTSDB version via
the api. If the version is 2.4.0 or lower, the module
performs additional checks to obtain the configured metrics
and aggregators. It then randomly selects one metric and one
aggregator and uses those to instruct the target server to
plot a graph. As part of this request, the yrange parameter is
set to the payload, which will then be executed by the target
if the latter is vulnerable.
This module has been successfully tested against OpenTSDB
version 2.3.0. |
| required_action |
null |
| due_date |
null |
| notes |
Stability:
- crash-safe
SideEffects:
- artifacts-on-disk
- ioc-in-logs
Reliability:
- repeatable-session
|
| known_ransomware_campaign_use |
false |
| source_date_published |
2020-11-18 |
| exploit_type |
null |
| platform |
Linux,Unix |
| source_date_updated |
null |
| data_source |
Metasploit |
| source_url |
https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/linux/http/opentsdb_yrange_cmd_injection.rb |
|
|
| Severity_range_score | 9.0 - 10.0 |
| Exploitability | 2.0 |
| Weighted_severity | 9.0 |
| Risk_score | 10.0 |
| Resource_url | http://public2.vulnerablecode.io/vulnerabilities/VCID-ks91-x6vr-tbay |