In SonarQube, what is the difference between a vulnerability and a security hotspot?
IntermediateConceptApplication Security Testing (SAST, DAST, SCA, Secrets)
Answer
A vulnerability is code Sonar is confident is exploitable and must be fixed. A security hotspot is security-sensitive code (for example using a regex, setting CORS, hashing) that needs a human to review and mark it Safe or Fixed, because whether it is a real problem depends on context.
The Quality Gate requires hotspots on new code to be reviewed, not necessarily changed.
More on Application Security Testing (SAST, DAST, SCA, Secrets)
What is SAST and what are its strengths and limits?BeginnerWhat is DAST and how does it differ from SAST?BeginnerWhat is IAST and RASP?IntermediateWhat is SCA and what does it scan?BeginnerHow does a SAST tool find a SQL injection using taint analysis?AdvancedHow do you write a simple Semgrep rule?Intermediate