Katalog CWE

CWE-579 · Słabość

J2EE Bad Practices: Non-serializable Object Stored in Session

Abstrakcja
Wariant
Status
Szkic
Dodano
15 grudnia 2006
Ostatnia zmiana
11 grudnia 2025

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

Opis

The product stores a non-serializable object as an HttpSession attribute, which can hurt reliability.

A J2EE application can make use of multiple JVMs in order to improve application reliability and performance. In order to make the multiple JVMs appear as a single application to the end user, the J2EE container can replicate an HttpSession object across multiple JVMs so that if one JVM becomes unavailable another can step in and take its place without disrupting the flow of the application. This is only possible if all session data is serializable, allowing the session to be duplicated between the JVMs.

Skutki

  • Other

    Quality Degradation

Zapobieganie

  • Implementation

    In order for session replication to work, the values the product stores as attributes in the session must implement the Serializable interface.

Słabość nadrzędna

Kiedy powstaje

Dotyczy

Java

Wpis z katalogu CWE 4.20.