Führe statische Analyse (SAST) auf der Codebasis aus und suche im Datenfluss nach dem unsicheren Muster.
Improper Control of Dynamically-Identified Variables
This vulnerability occurs when an application fails to properly secure access to variables whose names are determined at runtime, allowing attackers to read or modify data they shouldn't have access…
What is CWE-914?
Real-world CVEs caused by CWE-914
-
extract issue enables file inclusion
-
Chain: extract used for register_globals compatibility layer, enables path traversal (CWE-22)
-
extract() buried in include files makes post-disclosure analysis confusing; original report had seemed incorrect.
-
extract() enables static code injection
-
import_request_variables() buried in include files makes post-disclosure analysis confusing
-
Chain: Dynamic variable evaluation allows resultant remote file inclusion and path traversal.
-
Chain: dynamic variable evaluation in PHP program used to modify critical, unexpected $_SERVER variable for resultant XSS.
-
Chain: dynamic variable evaluation in PHP program used to conduct remote file inclusion.
Angreiferpfad Schritt für Schritt
- 1
Identifiziere einen Codepfad, der nicht vertrauenswürdige Eingaben ohne Validierung verarbeitet.
- 2
Erzeuge eine Payload, die das unsichere Verhalten auslöst — Injection, Traversal, Overflow oder Logik-Missbrauch.
- 3
Liefere die Payload über einen normalen Request aus und beobachte die Reaktion der Anwendung.
- 4
Iteriere, bis die Antwort Daten preisgibt, Angreifer-Code ausführt oder Berechtigungen eskaliert.
Vulnerable PHP
This code uses the credentials sent in a POST request to login a user.
```
//Log user in, and set $isAdmin to true if user is an administrator*
function login($user,$pass){
```
$query = buildQuery($user,$pass);
mysql_query($query);
if(getUserRole($user) == "Admin"){
$isAdmin = true;
}
}
$isAdmin = false;
extract($_POST);
login(mysql_real_escape_string($user),mysql_real_escape_string($pass)); Secure pseudo
// Validate, sanitize, or use a safe API before reaching the sink.
function handleRequest(input) {
const safe = validateAndEscape(input);
return executeWithGuards(safe);
} How to prevent CWE-914
- Implementation For any externally-influenced input, check the input against an allowlist of internal program variables that are allowed to be modified.
- Implementation / Architecture and Design Refactor the code so that internal program variables do not need to be dynamically identified.
How to detect CWE-914
Führe dynamische Application-Security-Tests gegen den Live-Endpoint aus.
Beobachte Runtime-Logs auf ungewöhnliche Exception-Traces, fehlerhafte Eingaben oder Versuche, Autorisierung zu umgehen.
Code Review: Markiere jeden neuen Code, der Eingaben von dieser Oberfläche ohne validierte Framework-Helper verarbeitet.
Plexicus erkennt CWE-914 automatisch und öffnet in unter 60 Sekunden einen Fix-PR.
Codex Remedium scannt jeden Commit, identifiziert genau diese Schwachstelle und liefert einen reviewer-ready Pull Request mit dem Patch. Keine Tickets. Keine Hand-offs.
Frequently asked questions
Was ist CWE-914?
This vulnerability occurs when an application fails to properly secure access to variables whose names are determined at runtime, allowing attackers to read or modify data they shouldn't have access to.
Wie gravierend ist CWE-914?
MITRE hat für diese Schwachstelle keine Exploit-Wahrscheinlichkeit veröffentlicht. Behandle sie als mittlere Auswirkung, bis dein Threat Model anderes belegt.
Welche Sprachen oder Plattformen sind von CWE-914 betroffen?
MITRE hat für diese CWE keine betroffenen Plattformen spezifiziert — sie kann in den meisten Anwendungs-Stacks auftreten.
Wie kann ich CWE-914 verhindern?
For any externally-influenced input, check the input against an allowlist of internal program variables that are allowed to be modified. Refactor the code so that internal program variables do not need to be dynamically identified.
Wie erkennt und behebt Plexicus CWE-914?
Die SAST-Engine von Plexicus erkennt die Datenfluss-Signatur von CWE-914 bei jedem Commit. Bei einem Treffer öffnet unser Codex-Remedium-Agent einen Fix-PR mit korrigiertem Code, Tests und einer einzeiligen Zusammenfassung für den Reviewer.
Wo erfahre ich mehr über CWE-914?
MITRE veröffentlicht die kanonische Definition unter https://cwe.mitre.org/data/definitions/914.html. Für ergänzende Hinweise kannst du auch die OWASP- und NIST-Dokumentation heranziehen.
Weaknesses related to CWE-914
Improper Control of Resource Identifiers ('Resource Injection')
This vulnerability occurs when an application accepts user input as a resource identifier (like a file path or port number) without proper…
Improper Restriction of Names for Files and Other Resources
This vulnerability occurs when an application creates file or resource names using unvalidated user input, failing to properly limit what…
Use of Multiple Resources with Duplicate Identifier
This vulnerability occurs when a system uses multiple resources that can share the same identifier, even though the application logic…
Variable Extraction Error
This vulnerability occurs when an application uses unvalidated external input to dynamically select which variables to populate with data.…
Dynamic Variable Evaluation
This vulnerability occurs when an application allows user input to directly determine which variable or function name is used at runtime.…
Further reading
Schluss mit dem Bezahlen pro Entwickler.
Schließ den Kreislauf.
Plexicus ist die KI-native ASPM, die scannt, filtert, fixt, pentestet und erklärt — autonom. Unbegrenzte Entwickler, unbegrenzte Repos, Fair-Use-KI-Aktionen. Echter kostenloser Tarif, €269/mo jährlich, wenn du bereit bist.