Class TrustBoundaryViolationAttributeDetector
- java.lang.Object
-
- com.h3xstream.findsecbugs.injection.AbstractTaintDetector
-
- com.h3xstream.findsecbugs.injection.AbstractInjectionDetector
-
- com.h3xstream.findsecbugs.injection.BasicInjectionDetector
-
- com.h3xstream.findsecbugs.injection.trust.TrustBoundaryViolationAttributeDetector
-
- All Implemented Interfaces:
edu.umd.cs.findbugs.Detector,edu.umd.cs.findbugs.Priorities
public class TrustBoundaryViolationAttributeDetector extends BasicInjectionDetector
Trust Boundary Violation is fancy name to describe tainted value passed directly to session attribute. This could be an expected behavior that allow an attacker to change the session state.
When the attribute name is dynamic, it is a lot more suspicious than when it is a dynamic value.
setAttribute( suspiciousValue, "true")vssetAttribute( "language" , commonDynamicValue)For this reason, the trust boundary violation was split in two detector.
- See Also:
TrustBoundaryViolationValueDetector
-
-
Field Summary
-
Fields inherited from class com.h3xstream.findsecbugs.injection.AbstractInjectionDetector
injectionSinks
-
Fields inherited from class com.h3xstream.findsecbugs.injection.AbstractTaintDetector
bugReporter
-
-
Constructor Summary
Constructors Constructor Description TrustBoundaryViolationAttributeDetector(edu.umd.cs.findbugs.BugReporter bugReporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetPriority(Taint taint)All or nothing : If the taint to sink path is found, it is mark as high If the source is not confirm, it is mark as low.-
Methods inherited from class com.h3xstream.findsecbugs.injection.BasicInjectionDetector
addParsedInjectionPoint, getInjectionPoint, loadConfiguredSinks, loadConfiguredSinks, loadCustomSinks, loadCustomSinksConfigFiles, loadSink, registerVisitor
-
Methods inherited from class com.h3xstream.findsecbugs.injection.AbstractInjectionDetector
analyzeLocation, getPriorityFromTaintFrame, report
-
Methods inherited from class com.h3xstream.findsecbugs.injection.AbstractTaintDetector
analyzeMethod, shouldAnalyzeClass, visitClassContext
-
-
-
-
Method Detail
-
getPriority
protected int getPriority(Taint taint)
All or nothing :- If the taint to sink path is found, it is mark as high
- If the source is not confirm, it is mark as low. This is will be the most common case.
- Overrides:
getPriorityin classAbstractInjectionDetector- Parameters:
taint- Taint state- Returns:
- High or low confidence
-
-