Package com.h3xstream.findsecbugs.xss
Class XssJspDetector
- java.lang.Object
-
- com.h3xstream.findsecbugs.injection.AbstractTaintDetector
-
- com.h3xstream.findsecbugs.injection.AbstractInjectionDetector
-
- com.h3xstream.findsecbugs.injection.BasicInjectionDetector
-
- com.h3xstream.findsecbugs.xss.XssJspDetector
-
- All Implemented Interfaces:
edu.umd.cs.findbugs.Detector,edu.umd.cs.findbugs.Priorities
public class XssJspDetector extends BasicInjectionDetector
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]JSP_PARENT_CLASSES-
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 XssJspDetector(edu.umd.cs.findbugs.BugReporter bugReporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetPriority(Taint taint)The default implementation ofgetPriority()can be overridden if the severity and the confidence for risk is particular.booleanshouldAnalyzeClass(edu.umd.cs.findbugs.ba.ClassContext classContext)Allow any concrete implementation of taint detector to skip the analysis of certain files.-
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, visitClassContext
-
-
-
-
Field Detail
-
JSP_PARENT_CLASSES
protected static final String[] JSP_PARENT_CLASSES
-
-
Method Detail
-
getPriority
protected int getPriority(Taint taint)
Description copied from class:AbstractInjectionDetectorThe default implementation ofgetPriority()can be overridden if the severity and the confidence for risk is particular. By default, injection will be rated "High" if the complete link between source and sink is made. If it is not the case but concatenation with external source is made, "Medium" is used.- Overrides:
getPriorityin classAbstractInjectionDetector- Parameters:
taint- Detail about the state of the value passed (Cumulative information leading to the variable passed).- Returns:
- Priorities interface values from 1 to 5 (Enum-like interface)
-
shouldAnalyzeClass
public boolean shouldAnalyzeClass(edu.umd.cs.findbugs.ba.ClassContext classContext)
Description copied from class:AbstractTaintDetectorAllow any concrete implementation of taint detector to skip the analysis of certain files. The purpose can be for optimisation or to trigger bug in specific context. The default implementation returns true to all classes visited.- Overrides:
shouldAnalyzeClassin classAbstractTaintDetector- Parameters:
classContext- Information about the class that is about to be analyzed- Returns:
- If the given class should be analyze.
-
-