[Forgot Password]
Login  Register Subscribe

30479

 
 

423868

 
 

248392

 
 

909

 
 

195452

 
 

282

Paid content will be excluded from the download.


Download | Alert*
CWE
view XML

ASP.NET Misconfiguration: Password in Configuration File

ID: 13Date: (C)2012-05-14   (M)2022-10-10
Type: weaknessStatus: DRAFT
Abstraction Type: Variant





Description

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.

Applicable Platforms
None

Time Of Introduction

  • Architecture and Design
  • Implementation

Common Consequences

ScopeTechnical ImpactNotes
Access_Control
 
Gain privileges / assume identity
 
 

Detection Methods
None

Potential Mitigations

PhaseStrategyDescriptionEffectivenessNotes
  Good password management guidelines require that a password never be stored in plaintext.
 
  
Implementation
 
 credentials stored in configuration files should be encrypted.
 
  
Implementation
 
 Use standard APIs and industry accepted algorithms to encrypt the credentials stored in configuration files.
 
  

Relationships

Related CWETypeViewChain
CWE-13 ChildOf CWE-895 Category CWE-888  

Demonstrative Examples   (Details)

  1. The following connectionString has clear text credentials.
  2. The following example shows a portion of a configuration file for an ASP.Net application. This configuration file includes username and password information for a connection to a database but the pair is stored in plaintext. (Demonstrative Example Id DX-43)

White Box Definitions
None

Black Box Definitions
None

Taxynomy Mappings

TaxynomyIdNameFit
7 Pernicious Kingdoms  ASP.NET Misconfiguration: Password in Configuration File
 
 

References:

  1. Microsoft Corporation .How To: Encrypt Configuration Sections in ASP.NET 2.0 Using DPAPI.
  2. Microsoft Corporation .How To: Encrypt Configuration Sections in ASP.NET 2.0 Using RSA.
  3. Microsoft Corporation ..NET Framework Developer's Guide - Securing Connection Strings.

© SecPod Technologies