CWE-13 · Słabość
ASP.NET Misconfiguration: Password in Configuration File
- Abstrakcja
- Wariant
- Status
- Szkic
- Dodano
- 19 lipca 2006
- Ostatnia zmiana
- 11 grudnia 2025
Opis
Storing a plaintext password in a configuration file allows anyone who can read the file access to the password-protected resource making them an easy target for attackers.
Skutki
Access Control
Gain Privileges or Assume Identity
Zapobieganie
Implementation
Credentials stored in configuration files should be encrypted, Use standard APIs and industry accepted algorithms to encrypt the credentials stored in configuration files.
Słabość nadrzędna
Kiedy powstaje
- Architecture and Design
- Implementation
Dotyczy
ASP.NET
Źródła
- Seven Pernicious Kingdoms: A Taxonomy of Software Security Errors — Katrina Tsipenyuk, Brian Chess, Gary McGraw, NIST, 2005
- How To: Encrypt Configuration Sections in ASP.NET 2.0 Using DPAPI — Microsoft Corporation
- How To: Encrypt Configuration Sections in ASP.NET 2.0 Using RSA — Microsoft Corporation
- .NET Framework Developer's Guide - Securing Connection Strings — Microsoft Corporation
Wpis z katalogu CWE 4.20.