SQL Injection - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

SQL Injection

Description:

Technique for exploiting web applications that use client ... Simple to prevent, but number of vulnerable services is still astonishing. Authorization Bypass ... – PowerPoint PPT presentation

Number of Views:579
Avg rating:3.0/5.0
Slides: 5
Provided by: schierm
Category:

less

Transcript and Presenter's Notes

Title: SQL Injection


1
SQL Injection
  • Vulnerability of web applications

2
Whats SQL Injection?
  • Technique for exploiting web applications that
    use client-supplied data
  • Stripping of potentially harmful characters is
    missing
  • Simple to prevent, but number of vulnerable
    services is still astonishing

3
Authorization Bypass
  • SQLQuery "SELECT Username FROM Users WHERE
    Username " strUsername " AND Password
    " strPassword "
  • strAuthCheck GetQueryResult(SQLQuery)
  • If strAuthCheck "" Then boolAuthenticated
    FalseElse boolAuthenticated TrueEnd If
  • Example

4
Break out of quotes
query SELECT CompanyName FROM Shippers WHERE
ID id
Unchecked user input
query SELECT CompanyName FROM Shippers WHERE
ID 0 UNION ALL SELECT CompanyName FROM
Customers
Write a Comment
User Comments (0)
About PowerShow.com