1435
Demonstrative Examples
Example 1:
The WSDL for a service providing information on the best price of a certain item exposes the
following method: float getBestPrice(String ItemID) An attacker might guess that there is a method
setBestPrice (String ItemID, float Price) that is available and invoke that method to try and change
the best price of a given item to their advantage. The attack may succeed if the attacker correctly
guesses the name of the method, the method does not have proper access controls around it and
the service itself has the functionality to update the best price of the item.
MemberOf Relationships
This MemberOf relationships table shows additional CWE Catgeories and Views that reference this
weakness as a member. This information is often useful in understanding where a weakness fits
within the context of external information sources.
Nature Type ID Name Page
MemberOf 966 SFP Secondary Cluster: Other Exposures 888 2403
MemberOf 1345 OWASP Top Ten 2021 Category A01:2021 - Broken
Access Control
1344 2487
MemberOf 1417 Comprehensive Categorization: Sensitive Information
Exposure
1400 2548
CWE-652: Improper Neutralization of Data within XQuery Expressions ('XQuery
Injection')
Weakness ID : 652
Structure : Simple
Abstraction : Base
Description
The product uses external input to dynamically construct an XQuery expression used to retrieve
data from an XML database, but it does not neutralize or incorrectly neutralizes that input. This
allows an attacker to control the structure of the query.
Extended Description
The net effect is that the attacker will have control over the information selected from the XML
database and may use that ability to control application flow, modify logic, retrieve unauthorized
data, or bypass important checks (e.g. authentication).
Relationships
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
similar items that may exist at higher and lower levels of abstraction. In addition, relationships such
as PeerOf and CanAlsoBe are defined to show similar weaknesses that may want to be explored.
Relevant to the view "Research Concepts" (CWE-1000)
Nature Type ID Name Page
ChildOf 91 XML Injection (aka Blind XPath Injection) 215
ChildOf 943 Improper Neutralization of Special Elements in Data Query
Logic