Reference case: manually injecting a colorful online website into Oracle (1)

Source: Internet
Author: User

A lottery online website is a large lottery site with an injection point. The link is as follows: http: // www. ***** china.com/jst/md_end.jsp? Id = 76. This injection point is used as an example to explain how to perform manual Oracle injection attack detection.

Determine injection points

Add a single quotation mark after the link address, return information "java. SQL. SQLException: ORA-01756", can be initially determined as the Oracle database.

Add "/*" after the link and return the error page, indicating that the database is not MySQL. Add "--" after the injection point link. The normal page is displayed, indicating that the database may be MSSQL or Oracle. Submit again:

Http: // www. **** china.com/jst/md_end.jsp? Id = 76 and (select count (*) from user_tables)> 0 --

Http: // www. **** china.com/jst/md_end.jsp? Id = 76 and (select count (*) from dual)> 0 --

Are returned to the normal page figure 1), confirm as the Oracle database.

Figure 1 Confirm Oracle Injection


Related Article

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.