Katalog CWE

CWE-403 · Słabość

Exposure of File Descriptor to Unintended Control Sphere ('File Descriptor Leak')

Abstrakcja
Bazowa
Status
Szkic
Dodano
19 lipca 2006
Ostatnia zmiana
11 grudnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

A process does not close sensitive file descriptors before invoking a child process, which allows the child to perform unauthorized I/O operations using those descriptors.

When a new process is forked or executed, the child process inherits any open file descriptors. When the child process has fewer privileges than the parent process, this might introduce a vulnerability if the child process can access the file descriptor but does not have the privileges to access the associated file.

Inne nazwy

File descriptor leak
While this issue is frequently called a file descriptor leak, the "leak" term is often used in two different ways - exposure of a resource, or consumption of a resource. Use of this term could cause confusion.

Skutki

  • Confidentiality, Integrity

    Read Application Data; Modify Application Data

Przykłady podatności

Słabość nadrzędna

Kiedy powstaje

Dotyczy

C, Not Language-Specific, Unix

Źródła

  1. File descriptors and setuid applications — Paul Roberts, 2007
  2. Introduction to Secure Coding Guide — Apple, Elevating Privileges Safely

Wpis z katalogu CWE 4.20.