[Forgot Password]
Login  Register Subscribe

30479

 
 

423868

 
 

248392

 
 

909

 
 

195452

 
 

282

Paid content will be excluded from the download.


Download | Alert*
CWE
view XML

J2EE Bad Practices: Direct Use of Sockets

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





Description

The J2EE application directly uses sockets instead of using framework method calls.

Applicable Platforms
Language: Java

Time Of Introduction

  • Architecture and Design
  • Implementation

Common Consequences

ScopeTechnical ImpactNotes
Other
 
Quality degradation
 
 

Detection Methods
None

Potential Mitigations

PhaseStrategyDescriptionEffectivenessNotes
Architecture and Design
 
 Use framework method calls instead of using sockets directly.
 
  

Relationships

Related CWETypeViewChain
CWE-246 ChildOf CWE-887 Category CWE-888  

Demonstrative Examples   (Details)

  1. In the following example, a Socket object is created directly from within the body of a doGet() method in a Java servlet.

White Box Definitions
None

Black Box Definitions
None

Taxynomy Mappings

TaxynomyIdNameFit
7 Pernicious Kingdoms  J2EE Bad Practices: Sockets
 
 

References:
None

© SecPod Technologies