Umbra Wiki weakness weakness/CWE-245
Back to wiki

CWE-245 — J2EE Bad Practices: Direct Management of Connections

provenance: imported · CWE: CWE-245

CWE-245: J2EE Bad Practices: Direct Management of Connections

MITRE CWE weakness

Kind Weakness
Abstraction Variant
Status Draft
Likelihood of exploit

Description

The J2EE application directly manages connections, instead of using the container's connection management facilities.

The J2EE standard forbids the direct management of connections. It requires that applications use the container's resource management facilities to obtain connections to resources. Every major web application container provides pooled database connection management as part of its resource management framework. Duplicating this functionality in an application is difficult and error prone, which is part of the reason it is forbidden under the J2EE standard.

Common consequences

  • Other: Quality Degradation

Mitigations

(none listed)

References

  • CWE page: https://cwe.mitre.org/data/definitions/245.html
  • CWE list: https://cwe.mitre.org/data/index.html