CWE-348 – Use of Less Trusted Source

Read Time:54 Second

Description

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.

Modes of Introduction:

– Architecture and Design

 

 

Related Weaknesses

CWE-345

 

Consequences

Access Control: Bypass Protection Mechanism, Gain Privileges or Assume Identity

An attacker could utilize the untrusted data source to bypass protection mechanisms and gain access to sensitive data.

 

Potential Mitigations

CVE References

  • CVE-2001-0860
    • Product uses IP address provided by a client, instead of obtaining it from the packet headers, allowing easier spoofing.
  • CVE-2004-1950
    • Web 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.
  • CVE-2001-0908
    • Product logs IP address specified by the client instead of obtaining it from the packet headers, allowing information hiding.
  • CVE-2006-1126
    • PHP application uses IP address from X-Forwarded-For HTTP header, instead of REMOTE_ADDR.