[medium] semgrep: A process is started with a command line built from strings — command injection if any part comes from outside (CWE-78). #892

Closed
opened 2026-11-05 16:54:59 +00:00 by pruefwerk · 3 comments
Member

medium Finding

Scanner: semgrep
Severity: medium
Rule: cra-ai-20-csharp-process-start
CWE: CWE-78
CRA: cra-ai-20 — Automatisierte Sicherheitstests (Annex I)

Description

A process is started with a command line built from strings — command injection if any part comes from outside (CWE-78). Start a fixed program with an argument list (ProcessStartInfo.ArgumentList) and validate the values.

Location

File: compliance-agent/rules/cra_semgrep_csharp.cs (line 63)

Code

            Process.Start("cmd.exe", "/c ping " + host);

Remediation

None


Fingerprint: df4b52ed9d4ea4897b2f2a9c3f8c4463c7827c102aac1ffd747de47407084103
Generated by compliance-scanner
Open in Prüfwerk / In Prüfwerk öffnen

## medium Finding **Scanner:** semgrep **Severity:** medium **Rule:** cra-ai-20-csharp-process-start **CWE:** CWE-78 **CRA:** cra-ai-20 — Automatisierte Sicherheitstests (Annex I) ### Description A process is started with a command line built from strings — command injection if any part comes from outside (CWE-78). Start a fixed program with an argument list (ProcessStartInfo.ArgumentList) and validate the values. ### Location **File:** `compliance-agent/rules/cra_semgrep_csharp.cs` (line 63) ### Code ``` Process.Start("cmd.exe", "/c ping " + host); ``` ### Remediation None --- *Fingerprint:* `df4b52ed9d4ea4897b2f2a9c3f8c4463c7827c102aac1ffd747de47407084103` *Generated by compliance-scanner* [Open in Prüfwerk / In Prüfwerk öffnen](https://pruefwerk.breakpilot.com/findings?target=6ae9aa2160f5d8045fc570a7)
pruefwerk added the severity:mediumcra:annex-ipruefwerk labels 2026-11-05 16:54:59 +00:00
Author
Member

Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.

The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.

**Prüfwerk:** Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind. The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
Author
Member

Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.

The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.

**Prüfwerk:** Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind. The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
Author
Member

Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.

The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.

**Prüfwerk:** Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind. The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#892