28.10.2014 Views

SQL Injection Attacks and Defense - 2009

SQL Injection Attacks and Defense - 2009

SQL Injection Attacks and Defense - 2009

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Index 461<br />

confirming <strong>and</strong> terminating <strong>SQL</strong> injection<br />

BENCHMARK function, 79<br />

comments<br />

back-end server, 73<br />

database concatenation operators, 72–73<br />

exploitation, 70–71<br />

multiline comments, 71–72<br />

testing string, 73–74<br />

database comment syntax, 69–70<br />

DBMS_LOCK.SLEEP( ) function, 80<br />

executing multiple statement<br />

Asprox Botnet, 77–78<br />

denial of service (DoS) attacks, 77<br />

GET parameter, 76<br />

GROUP BY technique, 74–75<br />

server-side cursors, 74<br />

testing string, 76<br />

UNION statements, 75<br />

UPDATE statement, 74<br />

WHERE clause, 75<br />

xp_cmdshell, 75–76<br />

inline function<br />

numeric values, 65–68<br />

strings, 62–65<br />

numbers <strong>and</strong> strings, 61<br />

statement, 68–69<br />

time delays, 79–80<br />

trial-<strong>and</strong>-error process, 60–61<br />

content management system (CMS)<br />

CMSUsers table, 9<br />

login.php script, 8–9<br />

PHP script, 9<br />

Web application, 8<br />

cross-site scripting (XSS), 82<br />

D<br />

database administrators (DBAs), 23, 272, 336<br />

database management system (DBMS), 273<br />

database queries<br />

inference methods, 235<br />

My<strong>SQL</strong> delays<br />

BENCHMARK( ) function, 236<br />

binary search inference exploits, 237<br />

bit-by-bit inference exploits, 237–238<br />

SLEEP( ) function, 235–236<br />

Oracle delays<br />

alonso, 241<br />

DBMS_LOCK package, 240<br />

<strong>SQL</strong> Server delays<br />

binary search inference exploits, 240<br />

bit-by-bit inference exploits, 240<br />

WAITFOR DELAY keyword, 239<br />

database security<br />

application data, locking down<br />

audit trail maintanence, 398<br />

least-privileged database login, 395–396<br />

oracle error triggers, 398–400<br />

PUBLIC permissions revoking, 396<br />

stored procedures, 396<br />

strong cryptography, 397<br />

database server, locking down<br />

Ad Hoc query restriction, 401<br />

least-privileged operating system<br />

account, 401–402<br />

patched database server software,<br />

402–403<br />

<strong>SQL</strong> server/Oracle database server<br />

versions, 403<br />

strengthen controls, 401<br />

system objects, 399–401<br />

database stored procedures, 343<br />

DB2 cheat sheet<br />

blind <strong>SQL</strong> injection functions, 450<br />

database configuration information <strong>and</strong><br />

schema, 449–450<br />

DBAs. See database administrators<br />

DBMS_LOCK.SLEEP( ) function, 80<br />

deployment considerations<br />

network access control configuration, 409<br />

unnecessary information leakage

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!