public class XssMvcApiDetector extends BasicInjectionDetector
injectionSinksbugReporter| Constructor and Description |
|---|
XssMvcApiDetector(edu.umd.cs.findbugs.BugReporter bugReporter) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getPriority(Taint taint)
The default implementation of
getPriority() can be overridden if the severity and the confidence for risk
is particular. |
protected int |
getPriorityFromTaintFrame(TaintFrame fact,
int offset)
The default implementation of
getPriorityFromTaintFrame() can be overridden if the detector must base its
priority on multiple parameters or special conditions like constant values. |
addParsedInjectionPoint, getInjectionPoint, loadConfiguredSinks, loadConfiguredSinks, loadCustomConfigFiles, loadCustomSinks, loadSinkanalyzeLocation, reportanalyzeMethod, shouldAnalyzeClass, visitClassContextpublic XssMvcApiDetector(edu.umd.cs.findbugs.BugReporter bugReporter)
protected int getPriorityFromTaintFrame(TaintFrame fact, int offset) throws edu.umd.cs.findbugs.ba.DataflowAnalysisException
AbstractInjectionDetectorgetPriorityFromTaintFrame() can be overridden if the detector must base its
priority on multiple parameters or special conditions like constant values.
By default, this method will call the getPriority() method with the parameter taint at the specified offset.getPriorityFromTaintFrame in class AbstractInjectionDetectorfact - The TaintFrame for the inspected instruction call.offset - The offset of the checked parameter.edu.umd.cs.findbugs.ba.DataflowAnalysisException - An exception thrown when the TaintFrame cannot be analyzed.protected int getPriority(Taint taint)
AbstractInjectionDetectorgetPriority() 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.getPriority in class AbstractInjectionDetectortaint - Detail about the state of the value passed (Cumulative information leading to the variable passed).Copyright © 2017. All rights reserved.