Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | ORACLE pentest sql injection |
|---|---|
| Date: | Sat, 22 Dec 2007 17:07:32 +0100 |
Hi,
I'm doing a pentest to a web application that uses an ORACLE database.
I suspect that the application is using bind variables in the queries
to avoid SQL injection
but when I try to inject a SQL statement in a parameter, it rises a
ORA-01480 exception.
ORA-01480: trailing null missing from STR bind value
Cause: A bind variable of type 5 (null-terminated string) does not
contain the terminating null in its buffer.
Action: Terminate the string with a null character
does it mean that the application is using bind variables to protect
itself against sql injection???
This example shows simple SQL injection. The query uses bind variables
and doesn't rise any exception. It's like the user is typing the
password wrong.
SQL> variable pword varchar2(30);
SQL> exec :uname := 'tom';
SQL> exec :pword := -
> 'i_dont_know'' or ''x'' = ''x';
PL/SQL procedure successfully
completed.
SQL> select count(*)
2 from user_table
3 where username = :uname
4 and password = :pword
5 /
COUNT(*)
----------
0
-------------------------------------------------------------------------
Sponsored by: Watchfire
Methodologies & Tools for Web Application Security Assessment
With the rapid rise in the number and types of security threats, web
application security assessments should be considered a crucial phase in the
development of any web application. What methodology should be followed? What
tools can accelerate the assessment process? Download this Whitepaper today!
https://www.watchfire.com/securearea/whitepapers.aspx?id=70170000000940F
-------------------------------------------------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: GCIA, GSEC, GCIH, CISSP, CEH ???, Jim Clausing |
|---|---|
| Next by Date: | Re: brute force ColdFusion MX7 admin page, Joseph McCray |
| Previous by Thread: | Information on CTAS?, Jon Brown |
| Next by Thread: | Copying secret windows file, Clone |
| Indexes: | [Date] [Thread] [Top] [All Lists] |