Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Leaking Sensitive Data

A system's €™s security policy determines which information is sensitive. Sensitive data may include user information such as social security or credit card numbers, passwords, or private keys. When components with differing degrees of trust share data, the data are said to flow across a trust boundary. Because Java allows components under different trusted domains to communicate with each other in the same program, data can be transmitted across a trust boundary. Systems must ensure that data is not transmitted to a component in a different trusted domain , if authorized users in that domain are not permitted access to the data. This Preventing unauthorized access may be as simple as not transmitting the data, but or it may also involve filtering sensitive data from data that can flow across a trust boundary. Figure 1.2 illustrates

Image Removed

, as illustrated by Figure 2.

Image Added

Figure Figure 1. 2. Filtering Data.data

Java software components provide many opportunities to output sensitive information. Rules that address the mitigation of sensitive information disclosure include the following:

Content by Label
showLabelsfalse
maxResults99
sorttitle
showSpacefalse
label+sensitive,-void

...

...

space@self

...

Type Safety

Wiki Markup
Java is widely considered to be a type-safe language \[[LSOD 02|AA. Bibliography#LSOD 02]\]. For that reason, it should not be possible to compromise a Java program by misusing the type system. To see why type safety is so important, consider the following types:

Code Block

public class TowerOfLondon {
  private Treasure theCrownJewels;
  ...
}

public class GarageSale {
  public Treasure myCostumeJewerly;
  ...
}

Wiki Markup
If these two types could be confused, it would be possible to access the private field {{theCrownJewels}} as if it were the public field {{myCostumeJewerly}}. More generally, a _type confusion attack_ could allow Java security to be compromised by making the internals of the security manager open to abuse. A team of researchers at Princeton University showed that any type confusion in Java could be used to completely overcome Java’s security mechanisms (see Securing Java Ch. 5, Sec. 7 \[[McGraw 1999|AA. Bibliography#McGraw 1999]\]).

Java’s type safety means that fields that are declared private or protected or that have default (package) protection should not be globally accessible. However, there are a number of vulnerabilities built in to Java that enable this protection to be overcome. These should come as no surprise to the Java expert, as they are well documented, but they may trap the unwary.

...

Bibliography

[Seacord 2015]Image result for video iconImage Added Leaking sensitive data LiveLesson