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: | Re: DB2 - SQL Injection |
|---|---|
| Date: | 22 Feb 2005 21:08:11 -0000 |
In-Reply-To: <BAY20-F554B6A6F95D6B05A69570B8610@phx.gbl> Hey, this is from my friend who knows something about DB2 - I have no clue what he's talking about, but ya'll will...cd As for your SQL injection friends, this may be a start: Your login identity is accessible through the variable USER. With WebSphereconnections are typically made by a powerful user and pooled, securityprovided by the application. Since the app seems pretty weak in this respect, your friend probably has a powerful connection (lots ofauthorization) at his disposal. The login user is the default schema you are associated with when you login, though this can be changed. The schema provides a space within which youcan search for tables, so you don't have to try every table in the system(though there really aren't usually all that many tables). Using SYSIBM.SYSTABLES you can find the tables in your schema with select NAME from SYSIBM.SYSTABLES where CREATOR = USER There is also a SYSIBM.SYSCOLUMNS table you can use to query for the names of columns in a table: select NAME from SYSIBM.SYSCOLUMNS where TBCREATOR = '<schema name here>' and TBNAME='<table name here>' There are also useful views built over these system tables, like SYSCAT.TABLES and SYSCAT.COLUMNS, that have the advantage that they're more likely to be the same from release to release. The simple solution to this whole (SQL injection) problem seems pretty clear, or am I missing something? Just don't generate SQL by manipulating text. Use embedded SQL, use prepared statements, use stored procedures, use ...
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | SAP Pen Testing, Yvan Boily |
|---|---|
| Next by Date: | Traceroute, Chris |
| Previous by Thread: | DB2 - SQL Injection, Andres Molinetti |
| Next by Thread: | SAP Pen Testing, Yvan Boily |
| Indexes: | [Date] [Thread] [Top] [All Lists] |