Mobile version of the site deletion operation found a major security risk! Solution Solutions

Source: Internet
Author: User
Mobile version of the site deletion operation found a major security risk!
This post was last edited by xjl756425616 on 2015-03-16 16:10:30

I have a website that is accessed using the mobile version
There are 2 hyperlinks,
One is to modify and one is to delete
When I click Edit, pop up a Div, and notice that the Close button is next to the delete hyperlink,
Click to close, even with a touch of delete.

The weirdest thing is the delete operation, I added JavaScript to judge,
onclick= "return confirm (' Are you sure you want to delete? ');" Normal Click Delete is a warning message.

But this kind of misoperation actually didn't effect,

After refreshing, the discovery data is deleted
I was surprised yesterday, I thought someone hacked my site, but today I accidentally met again,
It is wrong operation caused, do not know how to do???

Everyone should pay attention!!! I think about the solution!!!
Fortunately there is a database backup
------to solve the idea----------------------
1, your pop-up box is too small, inevitably encounter delete
2, onclick= "return confirm (' Are you sure you want to delete? ');" Is it written in a super-chain?
It's best to write separately

  • 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.