Katalog CWE

CWE-246 · Słabość

J2EE Bad Practices: Direct Use of Sockets

Abstrakcja
Wariant
Status
Szkic
Dodano
19 lipca 2006
Ostatnia zmiana
29 lutego 2024

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

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

The J2EE standard permits the use of sockets only for the purpose of communication with legacy systems when no higher-level protocol is available. Authoring your own communication protocol requires wrestling with difficult security issues.

Without significant scrutiny by a security expert, chances are good that a custom communication protocol will suffer from security problems. Many of the same issues apply to a custom implementation of a standard protocol. While there are usually more resources available that address security concerns related to implementing a standard protocol, these resources are also available to attackers.

Skutki

  • Other

    Quality Degradation

Zapobieganie

  • Architecture and Design

    Use framework method calls instead of using sockets directly.

Słabość nadrzędna

Kiedy powstaje

Dotyczy

Java

Źródła

  1. Seven Pernicious Kingdoms: A Taxonomy of Software Security Errors — Katrina Tsipenyuk, Brian Chess, Gary McGraw, NIST, 2005

Wpis z katalogu CWE 4.20.