Hướng dẫn khai thác lỗi SQL Injection - An Introduction to SQL Injection
Thông tin tài liệu:
Nội dung trích xuất từ tài liệu:
Hướng dẫn khai thác lỗi SQL Injection - An Introduction to SQL InjectionAn Introduction to SQL Injection BY DAPIRATES & UNDERCLOSSIE I.T SECURITY FORUMS www.lossieit.co.uk/forums dapirates[at]lossieit.co.uk Lossie I.T Security ForumsCHAPTER 1 - IntroductionWhat is SQL?SQL (pronounced ess-que-el) stands for Structured Query Language. SQL is used to communicatewith a database. According to ANSI (American National Standards Institute), it is the standardlanguage for relational database management systems. SQL statements are used to perform tasks suchas update data on a database, or retrieve data from a database. Some common relational databasemanagement systems that use SQL are: Oracle, Sybase, Microsoft SQL Server, Access, Ingres, etc.Although most database systems use SQL, most of them also have their own additional proprietaryextensions that are usually only used on their system. However, the standard SQL commands such asSelect, Insert, Update, Delete, Create, and Drop can be used to accomplish almosteverything that one needs to do with a database.What is an SQL injection?It is an attack technique used by hackers to exploit web sites by altering backend SQL statementsthrough manipulating application input.SQL Injection happens when a developer accepts user input that is directly placed into a SQLStatement and doesnt properly filter out dangerous characters. This can allow an attacker to notonly steal data from your database, but also modify and delete it. Certain SQL Servers such asMicrosoft SQL Server contain Stored and Extended Procedures (database server functions). If anattacker can obtain access to these Procedures it may be possible to compromise the entiremachine. Attackers commonly insert single quotes into a URLs query string, or into a forms inputfield to test for SQL Injection.What could I gain from doing this?Databases for websites contain a lot of information that could be very useful to an attacker .Withsuch information there are many things you could gain. From usernames and passwords to the sitesthemselves including the admin details for the site, forum login details. Then we have online shopswhich store order information such as credit cards details and all associated information such asbilling addresses, cvv2 numbers, expiry dates. Also in more malicious circumstances the attacker willgain complete root access to the machine.The common public are too complacent and unknowing to common threats whenpurchasing or sending personal information over the internet and quiet often if you could getthere email address and password from one website it would be the same for many others includingthings like PayPal and much more.How would I find sites that are vulnerable to this attack?A good way to start searching for sites that are vulnerable to SQL injection is Google there are manyother ways to find these sites like IRC bots or other search engines as there are many possibilities forfinding vulnerable websites please feel free to explore other options as Google is probably the mostpopular. Lossie I.T Security ForumsCHAPTER 2 – Beat the google searchGoogle is aware of people using its search engine to find exploitable websites so it will block yoursearch query after page 11 or 12 and you will get the following message below.Here is a way to get round this:goto http://www.google.com/coop/cse/click Create a Custom Search EngineSign into your Google account give it a name & description, do not give it keywordsTell it to search the entire webAgree to ToS, click Next & send confirmation email in your email you should receive links that looklike:http://www.google.com/coop/manage/cse/code?cx=002877699081652281083:klnfl5og4kg&sigTake the cx argument and place it herehttp://www.google.com/cse?cx=002877699081652281083:klnfl5og4kg&sigThat will get round Google blocking your search which means you can search more sites.Use this Google search if you do not want to set up your own custom search.http://www.blackle.com/ Lossie I.T Security ForumsCHAPTER 3 - Finding vulnerable sites:Ok now you have your Google search engine sorted out and ready to go we can jump right in andfind some vulnerable sites. We will be using various Google Dorks for this made famous by JohnnyLong and his Google Hacking Database (GHDB). The GHDB can be found at the url below and it willbe good for you to see what types of things you can find from your search engine queries you will beamazed what Google will index.http://johnny.ihackstuff.com/ghdb.phphttp://www.goolag.org/ CHAPTER 4 – Test if a website is vulnerableSo we have a list of sites now let’s try and ...
Tìm kiếm theo từ khóa liên quan:
sửa lỗi máy tính hệ điều hành mac thủ thuật máy tính thủ thuật cài đặt cài đặt máy tínhTài liệu cùng danh mục:
-
Giáo trình Lý thuyết hệ điều hành: Phần 1 - Nguyễn Kim Tuấn
110 trang 434 0 0 -
Lecture Operating systems: Lesson 24 - Dr. Syed Mansoor Sarwar
29 trang 359 0 0 -
Bài giảng Xử lý sự cố phần mềm - Bài 4 Xử lý sự cố sử dụng Internet
14 trang 316 0 0 -
Lecture Operating systems: Lesson 21 - Dr. Syed Mansoor Sarwar
22 trang 309 0 0 -
3 trang 280 0 0
-
Làm việc với Read Only Domain Controllers
20 trang 268 0 0 -
80 trang 258 0 0
-
Lecture Operating systems: Lesson 13 - Dr. Syed Mansoor Sarwar
31 trang 255 0 0 -
Giáo trình Nguyên lý các hệ điều hành: Phần 2
88 trang 254 0 0 -
175 trang 252 0 0
Tài liệu mới:
-
113 trang 0 0 0
-
107 trang 0 0 0
-
108 trang 0 0 0
-
Phát triển phần mềm giám sát và điều khiển cho xe tự hành AGV
7 trang 0 0 0 -
Đề tập huấn thi THPT Quốc gia môn GDCD năm 2018 - Sở GD&ĐT Bắc Ninh - Mã đề 421
5 trang 0 0 0 -
Đề tập huấn thi THPT Quốc gia môn tiếng Anh năm 2019 - Sở GD&ĐT Bắc Ninh - Mã đề 322
4 trang 0 0 0 -
Đề tập huấn thi THPT Quốc gia môn tiếng Anh năm 2019 - Sở GD&ĐT Bắc Ninh - Mã đề 315
4 trang 0 0 0 -
Đề tập huấn thi THPT Quốc gia môn tiếng Anh năm 2019 - Sở GD&ĐT Bắc Ninh - Mã đề 302
4 trang 0 0 0 -
Đề thi học kì 1 môn Ngữ văn lớp 6 năm 2021-2022 có đáp án - Trường THCS Thượng Thanh
4 trang 0 0 0 -
Đề thi giữa học kì 1 môn Toán lớp 11 năm 2022-2023 - Trường THPT Nguyễn Hữu Huân
3 trang 0 0 0