CWE-495: Private Data Structure Returned From A Public Method

VariantDraft

The product has a method that is declared public, but returns a reference to a private data structure, which could then be modified in unexpected ways.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
CC++JavaC#
Platforms

Learn More