Skip to main content
XsiSec.com
HomeReposBlogProjectsPortfolio
© 2026 XsiSec.com
Security rules |security.txt
Updated 2026-08-15 · v1.0.0+2026-08-14.82f92cb · 82f92cb
← Back to overview
Security article

How does SQL Injection work also when does it occur?

How does SQL Injection work also when does it occur?: SQL Injection (SQLi) • Knowledge • SQL injection • knowledge, sql-injection

2023-03-012 tags
Tags

SQL Injection (SQLi)


🔎 What is SQL Injection?

SQL Injection (SQLi) is a web security vulnerability that allows an attacker to interfere with the queries an application makes to its database.

  • It enables attackers to view data they are not normally authorized to access.
  • This may include data belonging to other users, system credentials, or sensitive application data.
  • In severe cases, SQLi can escalate to:
    • Full compromise of the underlying server
    • Modification or deletion of data
    • Privilege escalation and account takeover
    • Denial of service attacks

❓ Why Does It Occur?

SQL injection occurs when user input is not validated and is directly embedded into SQL queries.

sql
-- Example: vulnerable case
SELECT * FROM users WHERE username = ' " + input + " ';
Navigate

In this post

  1. 01SQL Injection (SQLi)
  2. 02🔎 What is SQL Injection?
  3. 03❓ Why Does It Occur?
Search
Explore

Popular tags

Browse all 30 tags

Comments

0 comments

No comments yet — be the first to comment.