CWE-528 Variante Brouillon

Exposure of Core Dump File to an Unauthorized Control Sphere

This vulnerability occurs when an application creates a core dump file (a snapshot of memory at the time of a crash) and places it in a location accessible to unauthorized users or systems.

Définition

What is CWE-528?

This vulnerability occurs when an application creates a core dump file (a snapshot of memory at the time of a crash) and places it in a location accessible to unauthorized users or systems.
Core dump files are generated when a program crashes, capturing a detailed snapshot of its process memory. This snapshot often contains highly sensitive information like encryption keys, passwords, user session data, and proprietary application logic. If this file is written to a web-accessible directory, a shared network location, or is included in log archives, it becomes a prime target for attackers seeking to bypass security controls and extract secrets. To prevent this, developers should configure their applications and operating systems to disable core dumps in production environments or restrict them to secure, isolated directories with strict access controls. For containerized or cloud deployments, ensure crash-handling settings do not write dumps to ephemeral or publicly mounted storage. Regular security scans should also be configured to detect and alert on the presence of these sensitive files in unauthorized locations.
Impact réel

Real-world CVEs caused by CWE-528

Aucune référence CVE publique n'est liée à ce CWE dans le catalogue MITRE pour le moment.

Comment les attaquants l'exploitent

Parcours de l'attaquant étape par étape

  1. 1

    Identifier un chemin de code qui traite des entrées non fiables sans validation.

  2. 2

    Élaborer une charge utile qui exploite le comportement non sécurisé — injection, traversal, débordement ou abus de logique.

  3. 3

    Délivrer la charge utile via une requête normale et observer la réaction de l'application.

  4. 4

    Itérer jusqu'à ce que la réponse divulgue des données, exécute le code de l'attaquant ou élève les privilèges.

Exemple de code vulnérable

Vulnerable pseudo

MITRE n'a pas publié d'exemple de code pour ce CWE. Le motif ci-dessous est illustratif — voir Ressources pour les références canoniques.

Vulnérable pseudo
// Example pattern — see MITRE for the canonical references.
function handleRequest(input) {
  // Untrusted input flows directly into the sensitive sink.
  return executeUnsafe(input);
}
Exemple de code sécurisé

Secure pseudo

Sécurisé pseudo
// Validate, sanitize, or use a safe API before reaching the sink.
function handleRequest(input) {
  const safe = validateAndEscape(input);
  return executeWithGuards(safe);
}
What changed: the unsafe sink is replaced (or the input is validated/escaped) so the same payload no longer triggers the weakness.
Liste de contrôle de prévention

How to prevent CWE-528

  • System Configuration Protect the core dump files from unauthorized access.
Signaux de détection

How to detect CWE-528

Automated Static Analysis High

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Correction automatique Plexicus

Plexicus détecte automatiquement CWE-528 et ouvre une PR de correction en moins de 60 secondes.

Codex Remedium analyse chaque commit, identifie cette faiblesse précise et livre une pull request prête à être relue avec le correctif. Pas de tickets. Pas de transferts.

Questions fréquentes

Frequently asked questions

Qu'est-ce que CWE-528 ?

This vulnerability occurs when an application creates a core dump file (a snapshot of memory at the time of a crash) and places it in a location accessible to unauthorized users or systems.

Quelle est la gravité de CWE-528 ?

MITRE n'a pas publié de note de probabilité d'exploitation pour cette faiblesse. Traitez-la comme un impact moyen jusqu'à ce que votre modèle de menace prouve le contraire.

Quels langages ou plateformes sont affectés par CWE-528 ?

MITRE n'a pas spécifié les plateformes affectées pour ce CWE — il peut s'appliquer à la plupart des stacks applicatives.

Comment puis-je prévenir CWE-528 ?

Protect the core dump files from unauthorized access.

Comment Plexicus détecte et corrige CWE-528 ?

Le moteur SAST de Plexicus reconnaît la signature de flux de données de CWE-528 à chaque commit. Lorsqu'une correspondance est trouvée, notre agent Codex Remedium ouvre une PR de correction avec le code corrigé, les tests et un résumé d'une ligne pour le relecteur.

Où puis-je en savoir plus sur CWE-528 ?

MITRE publie la définition canonique à https://cwe.mitre.org/data/definitions/528.html. Vous pouvez également consulter la documentation OWASP et NIST pour des conseils adjacents.

Faiblesses associées

Weaknesses related to CWE-528

CWE-552 Parent

Files or Directories Accessible to External Parties

This vulnerability occurs when an application exposes files or directories to users who shouldn't have access to them.

CWE-219 Frère

Storage of File with Sensitive Data Under Web Root

This vulnerability occurs when an application saves sensitive files, such as configuration data or private keys, inside the web server's…

CWE-220 Frère

Storage of File With Sensitive Data Under FTP Root

This vulnerability occurs when an application saves sensitive files, such as configuration or user data, within the directory served by an…

CWE-527 Frère

Exposure of Version-Control Repository to an Unauthorized Control Sphere

This vulnerability occurs when a version control repository, like Git or SVN, is accidentally placed in a location accessible to…

CWE-529 Frère

Exposure of Access Control List Files to an Unauthorized Control Sphere

This vulnerability occurs when an application stores sensitive access control list (ACL) files in a location that is accessible to…

CWE-530 Frère

Exposure of Backup File to an Unauthorized Control Sphere

This vulnerability occurs when backup or temporary files are stored in locations that unauthorized users can access, such as web…

CWE-539 Frère

Use of Persistent Cookies Containing Sensitive Information

This vulnerability occurs when a web application stores sensitive data, like authentication details or personal information, within…

CWE-553 Frère

Command Shell in Externally Accessible Directory

This vulnerability occurs when a command shell script is placed in a web-accessible directory, such as /cgi-bin/. Attackers can directly…

Prêt quand vous l'êtes

Arrêtez de payer par développeur.
Commencez à fermer la boucle.

Plexicus est l'ASPM natif IA qui scanne, filtre, corrige, penteste et explique — de façon autonome. Développeurs illimités, dépôts illimités, actions IA à usage équitable. Vrai niveau gratuit, €269/mo annuel quand vous êtes prêt.