scw-examples / github-advanced-security-codeql-demo

Demo of GitHub Advanced Security CodeQL and Secure Code Warrior integration
2 stars 6 forks source link

CWE_89 SQL Injection #4

Open esioony opened 1 year ago

esioony commented 1 year ago

Check out the CWE_89 SQL Injection.

secure-code-warrior-for-github[bot] commented 1 year ago

Micro-Learning Topic: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (CWE 89)

Matched on "CWE_89"

What is this? (2min video)

The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.

Try a challenge in Secure Code Warrior

Helpful references

Micro-Learning Topic: SQL injection (Detected by phrase)

Matched on "SQL Injection"

What is this? (2min video)

This is probably one of the two most exploited vulnerabilities in web applications and has led to a number of high profile company breaches. It occurs when an application fails to sanitize or validate input before using it to dynamically construct a statement. An attacker that exploits this vulnerability will be able to gain access to the underlying database and view or modify data without permission.

Try a challenge in Secure Code Warrior

Helpful references