当前位置:网站首页>Protection and bypass of repeated contracting
Protection and bypass of repeated contracting
2022-06-11 04:04:00 【Sword-heart】
0x00. Preface
At present, the main problems caused by repeated contract awarding are collision with the library , Blasting, etc . And with more and more password leaks , The impact of such problems is becoming more and more serious , Then most websites have made protection against repeated contracting . But there are also some imperfect protection , You can bypass .
0x01. be based on IP The protection of
Many web sites are trying to avoid the problem of repeated contracting , Limits every one of them ip The number of attempts , If you fail n After the first time ip Temporarily restrict the use of this function .
Most of the php Access to websites ip Both with $_SERVER[‘HTTP_X_FORWARD_FRO’] and $_SERVER[‘HTTP_CLIENT_IP’] of ( Just order php....). See these two variables , Everyone will think of http The head of the X-Forward-For and client_ip. thus it can be seen , We can use it in http The header modifies these two parameters to bypass .
http://zone.wooyun.org/content/12716
0x02. be based on token The protection of
token stay cookie in If token be based on cookie, because cookie User controllable , So such protection is meaningless .
token stay session in
token stay session It can also be divided into two cases .
A kind of token Not modified , That is, every time you submit data token Will not change , In this case, there is no protection capability .
The other is to submit once ,token Refresh once , The code looks like this .
1 2 3 4 5 6 7 8 9 10 11 12 |
|
In this case , We can not directly carry out repeated contracting . But due to the token Need to carry out post Submit , So you can match the web page form Medium token, And then carry out combined contracting .
0x03 Protection based on verification code
1 Verification code exists cookie in
Some websites write the value of the verification code in cookie in . Just enter the correct verification code once , Then grab the bag and blast it .
for example ESPCMS cookie Medium ecisp_home_seccode
2 Verification code exists session in
Some programmers use the verification code , Do not refresh after the verification code is judged .
The code looks like this :
1 2 3 4 5 6 7 8 9 10 11 |
|
In this case , We only need to fill in the correct verification code once to capture packets , Then you can directly repeat the contract .
in addition , Most of the $_SESSION['seccode'] Are assigned by the page that generates the verification code , But some programmers are wrong $_SESSION['sescode'] The value of is null .
In this case , We can bypass .
cookies Empty , open burp, Then open the login page , Then, the request to obtain the verification code is sent directly drop fall , In this case, our $_SESSION['seccode'] It's empty . Then grab the bag and blast it directly .
http://wooyun.org/bugs/wooyun-2014-080424
3 The verification code can directly identify
I won't say much about this , Dark clouds are an example .
http://zone.wooyun.org/content/11826
4 Verification code design defect
The design of verification code has defects , A specific value can be generated by some condition .
http://wooyun.org/bugs/wooyun-2014-080211
0x04. Protection based on predictable values
Give examples of several common situations
By answering the assigned questions , To verify that . Common websites have domain names , Website titles and so on . Because the randomness is too weak , So we can set it as the answer to a question , Then blast it . And more directly , Directly in the page so output The domain name of our website is ( The answer for xxx.com), In this case, it is similar to 2.2 How to get around .
1+1 3+1 And so on .
Some websites will let you write down the numerical value or letter of a feature in the graph . In this way, the randomness of the verification code is reduced . For example, the verification code is sx4g Number in . The number is only 10 individual , We just set one of them as a fixed value for testing . The main reason for this problem is that the value or range of values can be predicted , We can set a fixed value as the answer , Then test .
This article comes from the dark cloud knowledge base , The copyright of this article belongs to Wuyun knowledge base !
边栏推荐
- Detailed explanation of network time synchronization (NTP network timing) of video monitoring system
- Benefits of declaring variables
- A.前缀极差(C语言)
- Lua removing elements from a loop in a list
- Why does the hospital comprehensive security system synchronize the NTP clock of the network server?
- Rational use of thread pool and thread variables
- B - wall painting (C language)
- Several time synchronization methods of Beidou timing system (GPS timing equipment)
- 2022-06-10:薯队长从北向南穿过一片红薯地(南北长M,东西宽N),红薯地被划分为1x1的方格, 他可以从北边的任何一个格子出发,到达南边的任何一个格子, 但每一步只能走到东南、正南、西南方向的
- VNC remote configuration of Galaxy Kirin server system
猜你喜欢
![[signalr complete series] Net6 Zhongshi signalr communication](/img/af/4b8bfea6238c646c54352635d5da98.png)
[signalr complete series] Net6 Zhongshi signalr communication

Interface performance optimization ideas

如何提高回归测试效率

MAUI 遷移指南

SSLStrip 终极版 —— location 劫持

编程大作战 -- 挑战高考题

Linq. pdf

Quartz: an old and robust open source task scheduling framework, which is smooth enough to use

pmm监控oracle
![From function test to advanced automation test, I stayed up 7 days to sort out this 3000 word super complete learning guide [with network disk resources]](/img/bd/478558d50aa14320c70d3f8a7b76a5.png)
From function test to advanced automation test, I stayed up 7 days to sort out this 3000 word super complete learning guide [with network disk resources]
随机推荐
雷达辐射源调制信号仿真(代码)
Makefile |
ETH 中继接口
unforgettable moments
VIM quickly select a method / function
A - Eddy's AC puzzle (C language)
Pci/pcie related knowledge
7. 列表标签
什麼樣的人才是幸福的?
三层带防护内网红队靶场
基于SSM的大学生社团管理系统
Host computer development (how to develop host computer)
合理使用线程池以及线程变量
From function test to advanced automation test, I stayed up 7 days to sort out this 3000 word super complete learning guide [with network disk resources]
Pictures that make people feel calm and warm
Student teacher examination management system based on SSM framework
Record a VMware problem
[CNN]|平移不变性
Market prospect analysis and Research Report of Ethernet scanner in 2022
Simulation of radar emitter modulated signal