One-time Universal password Login test notes

Source: Internet
Author: User

Tilte: One-time Universal password login Test--2012-12-10 16:44

Where a universal password is logged in, SQL injection is generally generated. Unfiltered "'" and other characters, the submitted construction statement entered the SQL statement to query.

A few days ago accidentally tested an Internet management system, Jsp+oracle+*nux.

Commit "'", the burst SQL statement is probably as follows:

Select *,* from admin where name= ' and pwd= '

In the User name box fuss, enter "admin" Or 1=1--", the Password box is entered randomly. Login successful.

Inform the developer that the developer has modified the feedback and tested it again.

The User name box was found to be processed, but the password box was not processed.

The same username entered "admin", the Password box entered "' or 1=1--" but the login was unsuccessful. After testing found that "=" does not seem to work, then the user name Input "admin", Password box input "' or 2>1--", the test successfully entered. All know that the "OR condition" is for the expression constant to true. Then try such things as morphing "or 2>1--", "or 1<2--" and so on. The idea is not limited to or 1=1, of course, you can also choose to inject to get information.

One-time Universal password Login test 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.