Scanner: semgrep Severity: medium Rule: cra-ai-13-csharp-broken-hash-or-cipher CWE: CWE-327
Description
DESCryptoServiceProvider is a broken algorithm (MD5, SHA-1, DES, 3DES or RC2) that protects neither integrity nor confidentiality (CWE-327). Use SHA-256 or better, and AES-GCM.
## medium Finding
**Scanner:** semgrep
**Severity:** medium
**Rule:** cra-ai-13-csharp-broken-hash-or-cipher
**CWE:** CWE-327
### Description
DESCryptoServiceProvider is a broken algorithm (MD5, SHA-1, DES, 3DES or RC2) that protects neither integrity nor confidentiality (CWE-327). Use SHA-256 or better, and AES-GCM.
### Location
**File:** `compliance-agent/rules/cra_semgrep_csharp.cs` (line 193)
### Code
```
var des = new DESCryptoServiceProvider();
```
---
*Fingerprint:* `08f0b0756e754202c8a2cb7e4a25a8f25bfd8f9a9c018f741af43f6a3b42a8d3`
*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.
medium Finding
Scanner: semgrep
Severity: medium
Rule: cra-ai-13-csharp-broken-hash-or-cipher
CWE: CWE-327
Description
DESCryptoServiceProvider is a broken algorithm (MD5, SHA-1, DES, 3DES or RC2) that protects neither integrity nor confidentiality (CWE-327). Use SHA-256 or better, and AES-GCM.
Location
File:
compliance-agent/rules/cra_semgrep_csharp.cs(line 193)Code
Fingerprint:
08f0b0756e754202c8a2cb7e4a25a8f25bfd8f9a9c018f741af43f6a3b42a8d3Generated 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.