Repository logo
Log in(current)
Repository logoMIT Open ScholarshipDSpace@MIT
  1. Home
  2. Computer Science and Artificial Intelligence Lab (CSAIL)
  3. CSAIL Digital Archive
  4. CSAIL Technical Reports (July 1, 2003 - present)
  5. Automatic Creation of SQL Injection and Cross-Site Scripting Attacks

Automatic Creation of SQL Injection and Cross-Site Scripting Attacks

Thumbnail Image
Download
Name

MIT-CSAIL-TR-2008-054.pdf

Size

394.18 KB

Format

Adobe PDF

Checksum (MD5)

51580e7b657db0304597f4f094e9b70a

Thumbnail Image
Download
Name

MIT-CSAIL-TR-2008-054.ps

Size

72.14 KB

Format

PostScript

Checksum (MD5)

0c7f6cf6597eb232c21b581f4e18b827

Author(s)
Kiezun, Adam
•
Guo, Philip J.
•
Jayaraman, Karthick
•
Ernst, Michael D.
Date Issued
September 10, 2008
Series/Report no.
Massachusetts Institute of Technology Computer Science and Artificial Intelligence Laboratory
Abstract
We present a technique for finding security vulnerabilitiesin Web applications. SQL Injection (SQLI) and cross-sitescripting (XSS) attacks are widespread forms of attackin which the attacker crafts the input to the application toaccess or modify user data and execute malicious code. Inthe most serious attacks (called second-order, or persistent,XSS), an attacker can corrupt a database so as to causesubsequent users to execute malicious code.This paper presents an automatic technique for creatinginputs that expose SQLI and XSS vulnerabilities. The techniquegenerates sample inputs, symbolically tracks taintsthrough execution (including through database accesses),and mutates the inputs to produce concrete exploits. Oursis the first analysis of which we are aware that preciselyaddresses second-order XSS attacks.Our technique creates real attack vectors, has few falsepositives, incurs no runtime overhead for the deployed application,works without requiring modification of applicationcode, and handles dynamic programming-languageconstructs. We implemented the technique for PHP, in a toolArdilla. We evaluated Ardilla on five PHP applicationsand found 68 previously unknown vulnerabilities (23 SQLI,33 first-order XSS, and 12 second-order XSS).
Subjects
reliability
dynamic analysis
dynamic taint
Persistent DSpace Link
http://hdl.handle.net/1721.1/42836
Repository logo
PrivacyPermissionsAccessibilityContact us
Repository logo
Notify us about copyright concerns.