Scanner: semgrep Severity: high Rule: cra-ai-8-csharp-hardcoded-credential CWE: CWE-798 CRA: cra-ai-8 — Keine Default-Passwörter (Annex I)
Description
A credential (DbPassword) is written into the source — every installation shares it, and it can be read out of the assembly (CWE-798). Load it from protected configuration or a secret store.
## high Finding
**Scanner:** semgrep
**Severity:** high
**Rule:** cra-ai-8-csharp-hardcoded-credential
**CWE:** CWE-798
**CRA:** cra-ai-8 — Keine Default-Passwörter (Annex I)
### Description
A credential (DbPassword) is written into the source — every installation shares it, and it can be read out of the assembly (CWE-798). Load it from protected configuration or a secret store.
### Location
**File:** `compliance-agent/rules/cra_semgrep_csharp.cs` (line 232)
### Code
```
private const string DbPassword = "Plant#2019!";
```
---
*Fingerprint:* `6e246da0bb3262477c191a1edb313128aca60c9a01fd0eae6e496238b8693ff7`
*Generated by compliance-scanner*
[Open in Prüfwerk / In Prüfwerk öffnen](https://pruefwerk.breakpilot.com/findings?target=6ae9aa2160f5d8045fc570a7)
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
high Finding
Scanner: semgrep
Severity: high
Rule: cra-ai-8-csharp-hardcoded-credential
CWE: CWE-798
CRA: cra-ai-8 — Keine Default-Passwörter (Annex I)
Description
A credential (DbPassword) is written into the source — every installation shares it, and it can be read out of the assembly (CWE-798). Load it from protected configuration or a secret store.
Location
File:
compliance-agent/rules/cra_semgrep_csharp.cs(line 232)Code
Fingerprint:
6e246da0bb3262477c191a1edb313128aca60c9a01fd0eae6e496238b8693ff7Generated by compliance-scanner
Open in Prüfwerk / In Prüfwerk öffnen
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.