当前位置:网站首页>Apache uses setenvif to identify and release the CDN traffic according to the request header, intercept the DDoS traffic, pay attention to the security issues during CDN deployment, and bypass the CDN
Apache uses setenvif to identify and release the CDN traffic according to the request header, intercept the DDoS traffic, pay attention to the security issues during CDN deployment, and bypass the CDN
2022-06-25 21:25:00 【Deng_ Xian_ Sheng】
Origin of this paper On “ Deployed CDN Still found true IP”, There are two themes ; One is how to deploy safely CDN, The second is how to discover the deployment CDN The truth after IP. A little bit “ stultify oneself ” It smells good. .
Author's server Ubuntu Deployed Tencent cloud CDN, And pass IP Use https Back to the source , It was unexpectedly found to be true IP Exposed loopholes ( Thanks to our team of researchers Safe little spider ) He found it was ssl The truth of the certificate disclosure IP, I haven't found out the specific reason myself .
Bypass CDN Get real IP This website
Can help you
https://censys.io/ipv4?q=uosblog.top
Obvious , Found out my truth IP( But it's not that important anymore )
How to defend ?CDN Security issues to pay attention to during deployment
Above , The author's server is through IP Back to source , If you disable IP visit ( Security cannot be guaranteed , An attacker can still modify hosts The file specifies the real name corresponding to a domain name IP, be based on IP Will be bypassed ) Cannot go back to the source , So identify CDN Flow for apache distinguish .
Back to the source HTTP Request header configuration , majority CDN All manufacturers have this function 
apache To configure :
SetEnvIf, Set environment variables according to client request properties , Support regular expression matching request headers
Detailed explanation >>https://developer.aliyun.com/article/451524
Match request header xcdn: Tencent, If it matches, let go
Order allow,deny
SetEnvIf ^xcdn* ^Tencent.* local_ref=0
Allow from env=local_ref
The intercepted will return 403:
About ssl Lead to reality IP Exposed problems , I found an article saying : If do not have CDN, The server is configured https, Browser pass https visit , There's no problem with that .
however , Yes CDN Under the circumstances , The server is configured with https,CDN adopt https Back to the source , There is still no problem ; but , User pass https visit CDN;CDN Your certificate will reveal the source IP.
边栏推荐
- How testers write functional test cases
- Lesson 1 Preparation
- PHP compressed file
- [nailing scenario capability package] exhibition admission
- OLED driven learning based on ssd1306 (II): addressing mode of ssd1306
- Is it safe for Xiaobai to open a stock account online?
- Basic process of configuring utf8 in idea
- What is API
- Jmeter- (II) basic interface and common components for interface testing
- Ecu-test report converted to excel format
猜你喜欢

js (1)

Dbeaver offline installation driver
![[summary] 2021unctf Campus (cry & MISC)](/img/b1/8c4fb9c6d4f1b89361c0487762cdbd.jpg)
[summary] 2021unctf Campus (cry & MISC)

Canoe learning notes (4)
![[nailing scenario capability package] video conference (official conference system)](/img/ec/c2f342a54ab69d8b834a8a1c8f8a01.jpg)
[nailing scenario capability package] video conference (official conference system)

A simple file searcher

Volatile qualifier

Canoe learning notes (3)

Command 'GCC' failed with exit status 1 when PIP install mysqlclient
![[nailing - scenario capability package] nailer card](/img/ec/c2f342a54ab69d8b834a8a1c8f8a01.jpg)
[nailing - scenario capability package] nailer card
随机推荐
Shell scripts: Variables
The difference between strcpy and memcpy
Using two stacks to realize the function of one queue?
Analysis and cleaning of kdevtmpfsi virus content
Unable to connect to the server remotely locally using the Jupiter notebook
js (1)
Is it safe to fry stocks with compass or securities software? Where can I open an account and how
[nailing scenario capability package] video conference (official conference system)
Jmeter- (IV) regular expression for interface testing
Kubernetes related knowledge - surprise interview
JS__ This, arguments, cloning, ternary operator__ Duyi
The robotframework executes JS commands to move the mouse from X to y
[summary] 2021unctf Campus (cry & MISC)
What is API
On merging and sorting
Rounding related calculation
Big end and small end
Insert picture in markdown
MySQL operation Basics
C language soul torture: do you know the difference between the two?