CVE Vulnerabilities

CVE-2017-12904

Improper Neutralization of Special Elements in Data Query Logic

Published: Aug 23, 2017 | Modified: Nov 07, 2023
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.x
9.3 HIGH
AV:N/AC:M/Au:N/C:C/I:C/A:C
RedHat/V2
RedHat/V3
Ubuntu

Improper Neutralization of Special Elements used in an OS Command in bookmarking function of Newsbeuter versions 0.7 through 2.9 allows remote attackers to perform user-assisted code execution by crafting an RSS item that includes shell code in its title and/or URL.

Weakness

The product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query.

Affected Software

Name Vendor Start Version End Version
Newsbeuter Newsbeuter 1.0 1.0
Newsbeuter Newsbeuter 2.4 2.4
Newsbeuter Newsbeuter 2.3 2.3
Newsbeuter Newsbeuter 0.8 0.8
Newsbeuter Newsbeuter 1.3 1.3
Newsbeuter Newsbeuter 0.9 0.9
Newsbeuter Newsbeuter 2.0 2.0
Newsbeuter Newsbeuter 2.1 2.1
Newsbeuter Newsbeuter 0.8.1 0.8.1
Newsbeuter Newsbeuter 2.8 2.8
Newsbeuter Newsbeuter 2.5 2.5
Newsbeuter Newsbeuter 0.8.2 0.8.2
Newsbeuter Newsbeuter 2.6 2.6
Newsbeuter Newsbeuter 0.7 0.7
Newsbeuter Newsbeuter 2.2 2.2
Newsbeuter Newsbeuter 1.1 1.1
Newsbeuter Newsbeuter 2.7 2.7
Newsbeuter Newsbeuter 2.9 2.9
Newsbeuter Newsbeuter 0.9.1 0.9.1
Newsbeuter Newsbeuter 1.2 1.2

Extended Description

Depending on the capabilities of the query language, an attacker could inject additional logic into the query to:

The ability to execute additional commands or change which entities are returned has obvious risks. But when the product logic depends on the order or number of entities, this can also lead to vulnerabilities. For example, if the query expects to return only one entity that specifies an administrative user, but an attacker can change which entities are returned, this could cause the logic to return information for a regular user and incorrectly assume that the user has administrative privileges. While this weakness is most commonly associated with SQL injection, there are many other query languages that are also subject to injection attacks, including HTSQL, LDAP, DQL, XQuery, Xpath, and “NoSQL” languages.

References