Forums: Sql Injection - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Sql Injection

#1 User is offline   NeSTAN 

  • Private
  • Icon
  • Group: Members
  • Posts: 10
  • Joined: 19-August 05

Posted 07 October 2005 - 03:41 AM

i read always exploits like bla bla (SQL Injection).

my question: what can an attacker do with this exploits? grab the md5 hash? and what he do after grabbing the hash? and is this for MySQL or MSSQL, or both?
0

#2 User is offline   SWilly 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 78
  • Joined: 28-June 05

Posted 07 October 2005 - 05:51 AM

NeSTAN, on Oct 7 2005, 11:41 AM, said:

my question: what can an attacker do with this exploits? grab the md5 hash? and what he do after grabbing the hash?


About the hash you can use it to forge a cookie to trick the webpage to think your someone else (one of the ways to gain admin controll over phpbb forums system trick the system to think your cookie is admin's cookie)
0

#3 User is offline   w00zy 

  • Sergeant
  • Icon
  • Group: Members
  • Posts: 246
  • Joined: 03-August 05

Posted 07 October 2005 - 06:06 AM

Via SQL-Injection, you mostly get full access to the underlying SQL-database of the vulnerable site, so you change for example news, user-details or even get plain-text passwords (often you only get the md5-encrypted hashes).....i don't know, is it also possible to upload a shell via the SQL-Server???
I can't uninstall it, there seems to be some kind of "Uninstall Shield".
0

#4 User is offline   bliman 

  • Private
  • Icon
  • Group: Members
  • Posts: 5
  • Joined: 22-June 05

Posted 12 October 2005 - 03:54 AM

The impact of SQL injection varies depending on what information is in the database to be grabbed, what privileges the database user has that the web site uses, and the patch level of the database system. Any database system that uses SQL can be exploited to varying degrees, such as SQL Server, Oracle, MySQL, Access and others. Depending on privileges, a classic way to get control of a host running SQL Server is to use xp_cmdshell to run system commands. Many database systems also allow arbitrary files to be read.

www.nextgenss.com have some excellent white papers on SQL injection.
0

#5 User is offline   touk 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 94
  • Joined: 11-February 04

Posted 12 October 2005 - 05:17 AM

View Postbliman, on Oct 12 2005, 11:54 AM, said:

The impact of SQL injection varies depending on what information is in the database to be grabbed, what privileges the database user has that the web site uses, and the patch level of the database system. Any database system that uses SQL can be exploited to varying degrees, such as SQL Server, Oracle, MySQL, Access and others. Depending on privileges, a classic way to get control of a host running SQL Server is to use xp_cmdshell to run system commands. Many database systems also allow arbitrary files to be read.


Very true. A point that u can notice ; u dont need to connect to Mssql DB through something like SQLExec with a SA login to execute xp_cmdshell. On many asp and cfm pages the request is built dynamically with the parameters u entered in the windows form. This request is sent to a stocked procedure and executed with Exec. U can trick those parameters to make xp_cmdshell to be executed after the dynamic request. Of course u will need that the asp account have execute rights on xp_cmdshell. In this case u just need an Internet browser (and a little bit of MSSQL Syntax) :)
0

#6 User is offline   Silent_hunter 

  • Private
  • Icon
  • Group: Members
  • Posts: 6
  • Joined: 16-October 05

Posted 16 October 2005 - 02:14 PM

View Postw00zy, on Oct 7 2005, 04:06 PM, said:

i don't know, is it also possible to upload a shell via the SQL-Server???



yes it is

al in one you have admin axxess
0

#7 User is offline   hks3207 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 59
  • Joined: 21-October 05

Posted 23 October 2005 - 08:37 AM

That method is usually used to gain administrator access and rights over the site in order to get some files that are private to some users of it or deface it... or just for fun! :X .... that's all that i know ...
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting