Attackers can bypass WAF brute-force attacks to crack users.

Source: Internet
Author: User

Attackers can bypass WAF brute-force attacks to crack users.

Hexun provides interfaces for Traversing users. However, WAF blocked the user password during brute-force cracking, finally bypassing WAF and successfully cracked the attack.

The webmail traversal interface is as follows:

Https://reg.hexun.com/regname.aspx

Simple registration function. after entering the email address, you can use ajax to submit and check whether the user has already registered the email address,

If you have not registered, only:

{"State": "Y", "msg": "available "}

Registered yet:

{"State": "N", "msg": "email has been registered "}


There is no problem with this interface. I only know some registered mailboxes. Use one of them to crack the password and try to see if it is possible to hit the database or something. However, this occurs more than a dozen times after the brute-force cracking:


HTTP/1.1 200 OK

Server: nginx/1.6.2

Date: Sun, 22 Mar 2015 13:46:58 GMT

Content-Type: Text/Html; charset = gb2312

Content-Length: 98

Connection: close

Cache-Control: no-cache

Pragma: no-cache

Expires:-1

X-AspNet-Version: 4.0.30319

Set-Cookie: hexunGoUrl = http:// I .hexun.com; path =/

X-Powered-By: ASP. NET

 


This obviously has waf. Let me see if it can be bypassed. Change your account and try again,
 



What, is it not easy to change the number? This obviously blocked my ip address. I decided to try another ip address. This was the attempt and I found:

First try x-forwarded-for to see if you can enable Firefox plug-in,

Come on: X-Forwarded-For127.0.0.1

The result is as follows:

 


Logon successful:
 


At this point, the waf account lock has expired, and other users will not crack it one by one. It is expected that no more than 12306 million

Solution:

Modify waf Policy

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.