CWE
Home > CWE List > CWE-348 Individual Dictionary Definition (Draft 9)   View the CWE List

CWE-348 Individual Dictionary Definition (Draft 9)

Use of Less Trusted Source
Weakness ID
Status: Draft

348 (Weakness Base)

Description

Summary

The software has two different sources of the same data or information, but it uses the source that has less support for verification, is less trusted, or is less resistant to attack.

Observed Examples
ReferenceDescription
CVE-2001-0860Product uses IP address provided by a client, instead of obtaining it from the packet headers, allowing easier spoofing.
CVE-2004-1950Web product uses the IP address in the X-Forwarded-For HTTP header instead of a server variable that uses the connecting IP address, allowing filter bypass.
BID:15326Similar to CVE-2004-1950
CVE-2001-0908Product logs IP address specified by the client instead of obtaining it from the packet headers, allowing information hiding.
CVE-2006-1126PHP application uses IP address from X-Forwarded-For HTTP header, instead of REMOTE_ADDR.
Relationships
NatureTypeIDName
ChildOfWeakness ClassWeakness ClassWeakness Class345Insufficient Verification of Data Authenticity
IsRequiredByCompound Element: CompositeCompound Element: Composite291Trusting Self-reported IP Address
Source Taxonomies

PLOVER - Use of Less Trusted Source

Applicable Platforms

All

Related Attack Patterns
CAPEC-IDAttack Pattern Name
63Simple Script Injection
18Embedding Scripts in Nonscript Elements
73User-Controlled Filename
85Client Network Footprinting (using AJAX/XSS)
76Manipulating Input to File System Calls
86Embedding Script (XSS ) in HTTP Headers
Page Last Updated: April 22, 2008