This commit adds a new file, AUDIT-OWASP.md, which contains a comprehensive security audit of the codebase based on the OWASP Top 10 vulnerabilities. The audit identifies several critical and high-risk issues, including the use of weak hashing algorithms, vulnerable dependencies, and insecure deserialization in the .trix file format. Co-authored-by: Snider <631881+Snider@users.noreply.github.com>
1.7 KiB
1.7 KiB
OWASP Top 10 Security Audit
Summary
1 critical, 2 high, 2 medium findings
Findings by Category
A01:2021 Broken Access Control
- No findings.
A02:2021 Cryptographic Failures
- Use of Weak Hashing Algorithms (Critical): The
cryptandenchantrixpackages use MD5 and SHA1, which are known to be vulnerable to collision attacks. These algorithms are not suitable for security-critical applications. - Use of a Custom Hashing Algorithm (Medium): The
lthnpackage implements a custom hashing algorithm. "Roll your own crypto" is strongly discouraged as it is likely to contain subtle flaws that are not apparent to non-experts.
A03:2021 Injection
- No findings.
A04:2021 Insecure Design
- No findings.
A05:2021 Security Misconfiguration
- No findings.
A06:2021 Vulnerable Components
- Vulnerable Dependencies (High): The
govulncheckscan identified 4 vulnerabilities in the project's dependencies. These vulnerabilities could be exploited by an attacker to compromise the application. (See thegovulncheckoutput for more details).
A07:2021 Auth Failures
- No findings.
A08:2021 Data Integrity Failures
- Insecure Deserialization in .trix Format (High): The
trix.Decodefunction parses a custom binary format that includes a JSON header. The header is not authenticated, meaning an attacker could modify it to inject malicious data or exploit vulnerabilities in the JSON parser. - Lack of Integrity Checks on Header (Medium): The checksum in the
.trixformat only covers the payload, not the header. This allows an attacker to modify the header without invalidating the checksum, potentially leading to security issues.
A09:2021 Logging Failures
- No findings.
A10:2021 SSRF
- No findings.