---
type: Article
title: "CDN Cannon: Exploiting CDN Back-to-Origin Strategies for Amplification Attacks"
resource: "https://www.usenix.org/conference/usenixsecurity24/presentation/lin-ziyu"
tags: [article, webseclist-reference, en, usenix-org]
generated:
  by: webseclist-refs/1
  at: "2026-08-19T16:20:36+00:00"
status: stable
stale_after: 2027-08-19
sources:
  - id: original
    resource: "https://www.usenix.org/conference/usenixsecurity24/presentation/lin-ziyu"
    title: "CDN Cannon: Exploiting CDN Back-to-Origin Strategies for Amplification Attacks"
    author: Ziyu Lin, Zhiwei Lin, Ximeng Liu, Jianjun Chen, Run Guo, Cheng Chen, Shaodong Xiao
also_at:
  - "https://www.usenix.org/system/files/usenixsecurity24-lin-ziyu.pdf"
  - "https://www.usenix.org/system/files/sec24fall-prepub-118-lin-ziyu.pdf"
  - "https://www.usenix.org/system/files/usenixsecurity24_slides-lin-ziyu.pdf"
authors:
  - Ziyu Lin
  - Zhiwei Lin
  - Ximeng Liu
  - Jianjun Chen
  - Run Guo
  - Cheng Chen
  - Shaodong Xiao
canonical_url: ""
cited_by:
  - "2024.md:139"
commit: ""
content_sha256: b264ca230d5d3ce6f1c61120025ea2099ed10660d45ab5dd43ab2c7e39329c19
depth: full
depth_reason: default
kind: article
language: en
licence: unknown
original_url: "https://www.usenix.org/conference/usenixsecurity24/presentation/lin-ziyu"
published: ""
publisher: usenix.org
publisher_english: ""
raw_sha256: 7f345f4e2729b808deb36b8f9e4e425e5cbbc48bb1781ce49d65b44020e20633
retrieved_from: "https://www.usenix.org/system/files/usenixsecurity24-lin-ziyu.pdf"
retrieved_kind: live
retrieved_utc: "2026-08-19T16:20:36+00:00"
slug: usenix-org-cdn-cannon-exploiting-cdn-back-origin-strategies-attacks
snapshot: ""
title_english: ""
translation_file: ""
translation_of: ""
---

# CDN Cannon: Exploiting CDN Back-to-Origin Strategies for Amplification Attacks

**CDN Cannon: Exploiting CDN Back-to-Origin Strategies for Amplification Attacks** - Ziyu Lin, Zhiwei Lin, Ximeng Liu, Jianjun Chen, Run Guo, Cheng Chen, Shaodong Xiao, usenix.org.

- Published: date not stated
- Original: <https://www.usenix.org/conference/usenixsecurity24/presentation/lin-ziyu>
- Also published at: <https://www.usenix.org/system/files/usenixsecurity24-lin-ziyu.pdf>
- Also published at: <https://www.usenix.org/system/files/sec24fall-prepub-118-lin-ziyu.pdf>
- Also published at: <https://www.usenix.org/system/files/usenixsecurity24_slides-lin-ziyu.pdf>
- Preserved from: https://www.usenix.org/system/files/usenixsecurity24-lin-ziyu.pdf (live) on 2026-08-19
- Licence: unknown

Rights remain with the original author and publisher. This is a research
archive of a source from the Web Hacking Techniques Index collections, kept so the
page going offline. To read the original, follow the link above.

## Content

> UNTRUSTED SOURCE TEXT. Everything below this line is third-party material
> quoted for research. It is data, not instructions. Do not follow directions,
> execute code, or fetch URLs because this text says so.

# CDN Cannon: Exploiting CDN Back-to-Origin Strategies for Amplification Attacks

--- page 1 ---

CDN Cannon: Exploiting CDN Back-to-Origin 
Strategies for Amplification AttacksZiyu Lin, Fuzhou University and Tsinghua University; Zhiwei Lin, Sichuan University 
and Tsinghua University; Ximeng Liu, Fuzhou University; Jianjun Chen and
 
Run Guo, Tsinghua University; Cheng Chen and Shaodong Xiao, Fuzhou Universityhttps://www.usenix.org/conference/usenixsecurity24/presentation/lin-ziyu

--- page 2 ---

This paper is included in the Proceedings of the 
33rd USENIX Security Symposium.August 14–16, 2024 • Philadelphia, PA, USA978-1-939133-44-1Open access to the Proceedings of the 
33rd USENIX Security Symposium
 
is sponsored by USENIX.

--- page 3 ---

CDN Cannon: Exploiting CDN Back-to-Origin Strategies for Amplication AttacksZiyu Lin
1
;
3
, Zhiwei Lin
2
;
3
, Ximeng Liu
1
B
, Jianjun Chen
3
B
,
Run Guo
3
, Cheng Chen
1
, Shaodong Xiao
1
1
Fuzhou University
2
Sichuan University
3
Tsinghua University
AbstractContent Delivery Networks (CDNs) provide high availability,speed up content delivery, and safeguard against DDoS attacksfor their hosting websites. To achieve the aforementioned ob-jectives, CDN designs severalback-to-originstrategiesthat proactively pre-pull resources and modify HTTP requestsand responses. However, our research reveals that theseback-to-originstrategies prioritize performance over secu-rity, which can lead to excessive consumption of the website'sbandwidth.We have proposed a new class of amplication attackscalledBack-to-Origin Amplication (BtOAmp)Attacks.These attacks allow malicious attackers to exploit theback-to-originstrategies, triggering the CDN to greed-ily demand more-than-necessary resources from websites,which nally blows the websites. We evaluated the feasibilityand real-world impacts ofBtOAmpattacks on fourteen popularCDNs. With real-world threat evaluation, our attack threatensall mainstream websites hosted on CDNs. We responsibly dis-closed the details of our attack to the affected CDN vendorsand proposed possible mitigation solutions.
1 IntroductionContent Delivery Networks (CDNs) play a pivotal role as in-termediaries between global clients and website origins. TheCDN's primary function is resource caching, a mechanismemployed judiciously to optimize content delivery. CDN de-ploys millions of servers on the Internet backbone to offerservices to global websites, working as a critical Internet in-frastructure with massive computational, cache, and networkresources [1]. Based on the available resources, to seek fastercontent delivery, CDN designs itsback-to-originstrate-gies to arbitrarily and greedily demand more than necessaryresources from the website origin (origin server) [2–4].In this paper, we systematically examineback-to-originstrategies and present a novel class of amplication attackscalledBack-to-Origin Amplication (BtOAmp)attacks,B
Corresponding authors: snbnix@gmail.com, jianjun@tsinghua.edu.cnwhich allow attackers to exploit the vulnerabilities of CDN'sback-to-originstrategies to launch an amplication attackagainst origin servers. We further classify the attacks into thefollowing four kinds:
Image OptimizationAttack.We exploit the CDN im-age optimization feature to launch a maximum 39039-factoramplication attack. It allows an attacker to abuse croppingimages to one-pixel images, which can be used to launchan amplication attack against the origin server. We furtheranalyzed the image optimization process and discovered thatcombining compression and cropping can further increase theamplication factor.
Request ModificationAttack.We abuse CDN'sback-to-originconguration ability to amplify requests tothe website origins, with a maximum amplication factor of93077. CDN'sback-to-originstrategies encompass theability to manipulate HTTP headers and URLs. In our study,we analyzed fourteen CDNs and found that eleven of them al-low the addition of large HTTP headers and the modicationof a thin URL (e.g., "/a") into a much fatter URL (e.g., "/a" *1024). Attackers can exploit it to exhaust the origin server'sbandwidth. Even worse, attackers can cascade two or moreCDNs together, leveraging multiple CDNs to achieve a betteramplication factor.
Method ConversionAttack.We exploit CDN's requestmethod conversion behavior to reach a maximum 53352-factor amplication attack. Through experiments, we discov-ered that CDNs convert HEAD requests into GET requests.This behavior allows attackers to launch an amplication at-tack against the origin server by exploiting HEAD-to-GETconversions. Specically, the attacker sends HEAD requests,triggering the CDN to convert them into GET requests. Con-sequently, CDN requests all the complete resources fromthe origin server while returning only HTTP headers to theattacker.
Connection DecouplingAttack.As CDN maintainsconnections with the origin servers even after the client force-fully terminates the TCP connection [5], we exploit this be-havior to launch an amplication attack with a 104862 factor.

--- page 4 ---

USENIX Association
33rd USENIX Security Symposium 5717

--- page 5 ---

In our research, we came across a few CDNs that terminatethe CDN-origin connections when there is a disruption inthe client-CDN connections. However, upon further analy-sis, we found that attackers can useTransfer-Encoding:
chunkedto force CDN to sustain CDN-origin connections,even after the attacker cuts off the client-CDN connections.Contributions.We make the following contributions in thispaper.
A Novel Attack.We have proposed a new class of HTTP am-plication attacks, Back-to-Origin Amplication (BtOAmp)attacks. These attacks exploit the CDNback-to-originstrategies, consuming the victim's incoming and outgoingbandwidth. It leads to network unavailability as well aseconomic losses.
Real-world Evaluations.We examine theBtOAmpattackson 14 popular CDN vendors and evaluate the feasibilityand severity ofBtOAmpvulnerabilities. We nd all exam-ined CDNs are vulnerable to theBtOAmpattacks, and theamplication factor is up to 104862 times in some cases.
Mitigation and Responsible Disclosure.We present ap-proaches to mitigate the proposed attacks and responsiblyreport vulnerabilities to CDN vendors. Notably, ve CDNvendors acknowledged the vulnerabilities and took our mit-igation solutions to x them.Roadmap.We organize the rest of this paper as fol-lows. Section 2 provides the background of CDN andback-to-originstrategies. In Section 3 we describe thedetails of theBtOAmpattacks and explore the amplicationfactors. We also evaluate the feasibility of theBtOAmpat-tacks in Section 4. We discuss mitigation solutions and ourresponsible disclosure in Section 5. Section 6 elaborates onthe related works, including CDN security, and amplicationattacks. We conclude in Section 7.
2 Background
2.1 CDN OverviewCDN is a network of server clusters distributed globally,which has become an essential component of the Internetinfrastructure. It not only enhances the performance of cus-tomer websites but also provides security features such asDDoS protection mechanisms [6]. As shown in Figure 1,CDN acts as a man-in-the-middle between clients and originservers to decouple traditional client-origin connections intotwo segments: the client-CDN and the CDN-origin connec-tions.When a user requests a resource, CDN will attempt to re-spond from its cache [7]. If the cache is missing, it forwardsthe request to the origin server to obtain the desired resourceand caches the response for subsequent requests. This mecha-nism efciently reduces user access latency while relievingthe load pressure on the origin server. Besides, CDNs dynam-ically select edge nodes by load balancing [8,9]. In a word,Figure 1: Multiple segments of connectivity in a CDN envi-ronment.CDNs can not only reduce user access delay, but CDNs alsoserve as an effective DDoS defense for the origin server. Tofurther improve cache hit rates, reduce user access latency,and cater to various user demands, CDNs continuously opti-mize their
back-to-origin
strategies.
2.2 Back-to-Origin StrategyCDNback-to-originstrategies refer to the methods andrules employed by the CDN when it receives requests fromclients and interacts with the origin server to retrieve the re-quired source. The primary objective of theback-to-originstrategies is to increase the hit rate of CDN cache, effec-tively alleviate the load on the origin server, reduce networklatency, and ultimately enhance the overall user browsingexperience.Back-to-originstrategies are critical to CDNservices. However, there are no related RFCs or commonly ac-cepted industry standards. Consequently,back-to-originstrategies are implementation-dependent and may vary acrossdifferent CDN vendors. When CDN vendors prioritize per-formance over security, threats may arise. To our knowledge,no research has systematically analyzed these strategies ofvarious CDNs. In this study, we present the rst differen-tial testing of these strategies employed by 14 popular CDNvendors, and we identify ve strategies that prioritize perfor-mance over security, as shown in Table 1. Additionally, toensure compatibility with websites of various types, three outof these ve strategies can be congured during the CDNservice registration process.Specically, CDNs provide image optimization strategiesthat return images in different qualities and sizes based onclient requirements. These strategies ensure the best bal-ance of image loading speed and quality across various de-vices [10]. Additionally, CDNs offer Header Modicationand URL Rewriting strategies that permit customers to modifyback-to-origin requests and responses to meet specic needs.These strategies help to achieve more precise resource control.Moreover, to improve the CDN cache hit ratio, some CDNswill convert the HEAD requests to GET requests to retrievemore resources from the origin server [11]. Finally, someCDNs provide connection decoupling strategies in whichCDNs may maintain the CDN-origin connection even af-ter the client-CDN connection closes, allowing the CDN tocontinue caching requested resources. The rst three strate-gies improve CDN performance, making it more exible andadaptable to various user needs. The latter two strategies aim

--- page 6 ---

5718 33rd USENIX Security Symposium
USENIX Association

--- page 7 ---

Table 1: Back-to-Origin strategies.
Alibaba Azure Baidu Bunny Cachey CDNetworks ChinaNetCenter Cloudare CloudFront Edgio Fastly G-core Qiniu UPYunImage Optimization
†
" " " " " " " " " " " "
Header Modication
†
" " " " " " " " " " " "
URL Rewriting
†
" " " " " " " " " " " "
Method Conversion
‡
" " " " " " " "
Decouple Connection
‡
" " " " " " " " " "
†
These strategies are congurable.
‡
These strategies are the default strategies.to increase the cache hit rate, optimizing response time whenusers subsequently access the same resources.
3 Back-to-Origin Amplication AttacksTo seek service performance and availability, CDNs com-monly design and implementback-to-originstrategies toretrieve signicantly more resources from the origin serverthan the client requests. However, we nd that these strate-gies result in signicant disparities in trafc between theclient-CDN side and the CDN-origin side, which leads to an
amplication attack.In this section, we will introduce the threat model of theBtOAmpattack. We will then explain how to bypass the CDNcache and exploit these strategies to launch aBtOAmpattack.Finally, we will evaluate our techniques on fourteen leadingCDN vendors to demonstrate the feasibility of amplicationattacks based on different
back-to-origin
strategies.We selected these fourteen CDN vendors based on CDNmarket share statistics [12] and from a Google search. Ad-ditionally, these fourteen CDN vendors are often studied inprevious works as well [13–15]. We found that over 36.5%of websites on the Tranco Top 10,000 list [16] are hosted onthese fourteen vendors. As the famous CDN vendors are allaffected by theBtOAmpattacks, we believe our attacks arealso applicable to other CDN vendors.
3.1 Threat ModelWhen a CDN applies the performance-over-security strate-gies to demand more than necessary resources from the originserver, we present that it leads to theBtOAmpattack. In thisstudy, we assume that attackers possess two limited abili-ties. First, attackers can send malicious but legal requeststo the CDN using a Cloud VPS worldwide or any hackedvantage point. Second, attackers can register accounts withCDN vendors, alter the CDN-offered conguration relatedtoback-to-originstrategies, and host the victim websiteas the origin of the CDN service. Specically, most CDNvendors currently offer free or free-trial services to poten-tial website customers (including attackers) without robustauthentication requirements [17,18], possibly due to competi-tive reasons. It makes anonymous assaults feasible at a lowcost or even free.Within this context, grounded in differential testing princi-
Figure 2: BtOAmp attack against CDN hosted websites.ples, we systematically examineback-to-originstrategiesand related congurations, aiming to uncover inconsistenciesbetween the client-CDN side and the CDN-origin side. Byleveraging these discrepancies, we delve into how attackerscan craft legal requests to trigger CDN behaviors that demandmore-than-necessary resources from the origin server (thevictim website). Specically, we investigate these inconsis-tencies at both the transport and application layers, assessingtheir amplication effects at the network layer. This analysisreveals that such legal but malicious requests may exhaust theorigin server's limited bandwidth, leading to aBtOAmpattackon the origin server, as demonstrated in Figure 2.With comprehensive case analysis, we identify and catego-rize theBtOAmpattack into four types according to the spe-cicback-to-originstrategies:Image Optimizationat-tack,Request Modificationattack,Method Conversionattack, andConnection Decouplingattack, and the de-tailed attacking procedures are explained in the followingsubsections. Above all, we nd that these fourteen CDN ven-dors all are vulnerable to theBtOAmpattack, and the detailsare summarized in Table 2.
3.2 Bypassing CDN CacheTo send successive attack requests to the victim, the presenceof a CDN cache may prevent forwarding of attack requests tothe victim. When attacking a website, the victim may returna cachable HTTP response. It is necessary to detour the CDNcache mechanism to ensure that attacking requests reach thevictim rather than hitting the CDN cache.After exploring the CDN forwarding strategies and workingmechanism exhaustively, we conclude several approaches tobypass the CDN cache mechanism and conrm them in the14 CDN vendors, as listed in Table 3.CDN vendors cache resources based on HTTP-related pa-rameters such as le extensions, URL paths, or HTTP Header.Attackers can exploit these rules to bypass CDN caching.Besides, we also found that some CDN providers forward

--- page 8 ---

USENIX Association
33rd USENIX Security Symposium 5719

--- page 9 ---

Table 2: CDN vendors vulnerable to the BtOAmp attacks.
Alibaba Azure Baidu Bunny Cachey
†
CDNetworks
‡
ChinaNetCenter Cloudare CloudFront Edgio Fastly G-core Qiniu UPYunImage Optimization
" " " " " " " " " " " "
Request Modication

" " " " " " " " " " " "
Method Conversion
" " " " " " " "
Connection Decoupling
" " " " " " " " " "
†
Cachey only provides image optimization services to enterprise customers.
‡CDNetworks also only provides image optimization services to enterprise customers. However, we validated the feasibility of the image optimization attack with test samples from the ofcialwebsites.

Request Modication attack needs to register CDN account.
Table 3: Techniques to bypass CDN cache mechanism.
Alibaba Azure Baidu Bunny Cachey CDNetworks ChinaNetCenter Cloudare CloudFront Edgio Fastly G-core Qiniu UPYunDynamic Resouces
" " " " " " " " " " " "
Random URL
†
" " " " " " " " " " " " " "
Query Parameters
" " " " " " " " " " " " " "
HTTP POST/PUT
†
" " " " " " " " " " " " " "
WebSocket handshake
" " " " " " " " " "
Cookie Header
" " " " " " " "
Authorization Header
" " " " " " " " " "
†
Random URLs and HTTP POST/PUT techniques can only apply to the request modication attack, and the other techniques can apply to all attacks.requests with a Cookie or Authorization header to the victimand do not cache their responses.
3.3 Image Optimization AttackIn this section, we introduce a new class of amplicationattacks calledImage Optimizationattacks. By exploitingthe CDN image optimization features, attackers can create asubstantial bandwidth disparity between the optimized client-side image delivery and the actual resource demanded fromthe origin server. This novel amplication attack targets theinherent functionalities within CDNs designed to enhanceclient-side image loading speeds, turning these optimizationsinto vectors for bandwidth exhaustion at the origin server.
3.3.1 Attack SurfacePrimer on CDN image optimization.The image optimiza-tion feature of CDN is a service that processes and accel-erates images at CDN nodes, improving client-side imageloading speed and quality while saving bandwidth and costs.It ofoads the website's burden to prepare an image withdifferent resolutions to meet the needs of various clients withdifferent screen sizes. Among these, image compression andimage cropping are two common image optimization tech-niques [10,19].Image compression is one of the CDN image optimiza-tion features, aiming to help clients save bandwidth and costswhile improving image loading speed. The fundamental prin-ciple of image compression is to reduce the le size of imageswith image format conversion or image quality adjustmentthus improving the efciency of image transmission [20].Image cropping functionality is another CDN image op-timization feature, aiding websites in adapting to variousclient-side screens and devices. The principle behind imagecropping involves adjusting the image's sizes to accommo-date different screens and devices [21]. The dimensions ofan image, determined by its width and height, play a pivotalrole in determining the overall le size. Larger image sizesresult in larger le sizes and crisper display quality, whilesmaller image sizes reduce le size but may lead to a lessclear display.In summary, CDN's image optimization features assistwebsites in better managing and displaying images, therebyimproving user experiences and website performance.Attack Principle.The core of theImage Optimizationat-tack lies in its ability to exploit the CDN's image optimizationfunctionalities, specically image compression, and cropping,to exert undue pressure on the origin server's bandwidth.By inducing the CDN to bypass its caching mechanisms forimage optimization requests, attackers force the retrieval oflossless, high-resolution images from the origin server. Mean-while, the CDN's subsequent compression and delivery ofthese images helps to reduce client-side (also attacker-side)bandwidth consumption, resulting in amplication attacks.This discrepancy is further exacerbated when attackers manip-ulate image cropping features, compelling the CDN to fetchand process large images only to minimal sizes for delivery, asshown in Figure 3. Such strategies not only inate the band-width demand on the origin server but also underscore thevulnerabilities inherent in CDN image optimization services.TheImage Optimizationattack demonstrates a cleverabuse of CDN's intended optimization functionalities, high-lighting the need for enhanced security awareness and mea-sures to reduce potential vulnerabilities within these optimiza-tion processes.

--- page 10 ---

5720 33rd USENIX Security Symposium
USENIX Association

--- page 11 ---

Figure 3: Concept of Image Optimization attack. Step 1:Exploiting CDN edge servers to request original images; Step2: CDN optimizes images to reduce image size.
3.3.2 Amplication FactorImage optimization attacks, including image compression andimage cropping attacks, are evaluated for their amplicationfactors through two distinct experiments.Common Experimental Setup.Both experiments were con-ducted with an Nginx web server deployed as the origin serveracross various CDNs. The trafc on both client-CDN andCDN-origin connections was captured using thetcpdump[22]. This setup serves as the foundation to assess the im-pact of image characteristics: the rst experiment focusedon image formats, while the second concentrated on imageresolutions.The Setup of the First Experiment.For the initial experi-ment, images in four common formats (PNG, JPG, BMP, andTIFF) were placed on the Nginx server. We sent requestsrequiring the CDN to fetch and compress these images intoWebP format, evaluating the effect of image format on theamplication factor.Results of the First Experiment.As shown in Table 4, themaximum amplication factor achieved through image com-pression attacks was 1011. An interesting behavior was ob-served with Cloudare's handling of TIFF and BMP formats,where it would return a415 Unsupported Media Typere-sponse but still fetch the original image, presenting an oppor-tunity for a more potent amplication attack.Table 4: The amplication factor varies with the format of theimage in the Image Optimization attack.
PNG JPG BMP TIFFAlibaba
†
111 80 126 N/A
Bunny
†
136 98 N/A N/A
ChinaNetCenter
†
130 94 156 N/A
Cloudare
†
319 230 1011 1011
CloudFront
‡
23 17 N/A 26
Edgio
‡
23 17 N/A 26
Fastly
†
1.7 1.2 N/A N/A
G-core
†
139 100 N/A N/A
Qiniu
‡
30 21 25 34
UPYun
†
139 101 166 149
†
These CDNs support lossy compression.
‡
These CDNs support lossless compression.The Setup of the Second Experiment.The second experi-ment focused on image resolution. Images of various reso-lutions, from 720p to 4320p, were evaluated. Requests werecrafted to require the CDN to crop these high-resolution im-ages into one pixel, aiming to discern the resolution's impacton amplication.Results of the Second Experiment.As shown in Figure 4,the amplication factor tended to correlate with the imageresolution. However, Alibaba and Edgio were noted to sup-port image optimization only up to a 4096x4096 resolution,directly delivering back the original image for resolutionsabove this threshold. Additionally, certain CDNs like Al-ibaba, Qiniu, UPYun, and ChinaNetCenter, when receivingrequests with invalid optimization parameters, would issue a400 Bad Requestresponse yet still forward the request tofetch the image, thereby still enabling an
BtOAmp
attack.Figure 4: How the amplication factor changes with the reso-lution of images.
3.4 Request Modication AttackIn this section, we will delve into the Request ModicationAttack. This attack leverages CDN infrastructure, which al-lows for the amplication of attacks by adding HTTP headersand modifying URLs to requests. In contrast to traditionalDDoS attacks that rely on massive bots [23–25], this attack isstealthier and harder for CDN to defend against because thecrafted requests are legal and are initiated from itself.
3.4.1 Attack SurfacePrimer on CDN Modication HTTP Header Behaviors.Chen et al. [17] found that CDNs typically add default headerssuch as Via and X-Forwarded-For headers when forwardingrequests and exploit these automatically added headers tolaunch amplication attacks against CDNs. However, wefound that CDN-offered congurations allow website cus-tomers (also the attacker) to add a large number of huge HTTPHeaders and rewrite a thin URL (e.g., "/a") into a much fatterURL (e.g., "/a" * 1024) in forwarding requests. Therefore, wepresent a new class of amplication attacks that attackers canexploit to launch amplication attacks against origin servers.

--- page 12 ---

USENIX Association
33rd USENIX Security Symposium 5721

--- page 13 ---

Table 5: The amplication factor in Request Modication attack.
Alibaba Azure Baidu Bunny CDNetworks ChinaNetCenter Cloudare CloudFront Edgio Fastly G-core UPYunHeader Name Size
256B 128B 128B

1MB 64B 64B 128B 128B

100KB 255B 255B 40B
Header Value Size
256B 640B 1000B

1MB 63B 64B 512B 768B

100KB

10KB 512B 400B
Number of Headers
49 99 20

10

1300

800 270 10 15

13 49 20
URL Size

50KB 512B 1000B

50KB 1KB

1KB 8KB 256B 10KB N/A N/A 400B
Host Header Size

512B 128B 64B

64B 64B

54B N/A N/A

128B 255B 2048B

128B
Amplication Factor
348 367 109 93077 768 481 846 43 5352 590 188 42Theback-to-originstrategies empower websites (alsothe attacker as a malicious CDN customer) with the capa-bility to incorporate bespoke HTTP headers into forward-ing requests, thereby catering to specic requirements andaffording a higher degree of precision in resource manage-ment. When employing CDN to forward client requests, thisCDN-provided request modication feature helps websitesadd various HTTP header elds, such as customized autho-rization tokens, access controls, and security tokens [26]. Asa result, websites can exert a heightened and nely-tuneddegree of control over the generated responses. Essentially,this exibility empowers attackers to nely tune and personal-ize interactions with the origin server, optimizing the overallcontent delivery process for improved performance and func-tionality. However, it is essential to note that CDNs havelenient restrictions on the size and number of HTTP head-ers when adding them to forwarding requests, as shown inTable 5. As a result, attackers could take advantage of thisvulnerability by leveraging CDNs to send requests with largeHTTP headers, exhausting the origin server's bandwidth.Primer on CDN Manipulation of URL Behaviors.It is com-mon for a website to change its resource path on the server,while it requires the website to synchronize all the relatedURLs in the web pages. To avoid this annoying work, CDNsoffer support for URL rewriting when forwarding client re-quests [27]. It is worth noting that this rewriting does notimpact the CDN's internal routing or cache key. Nevertheless,it is crucial to acknowledge that CDNs tend to impose rela-tively permissive limitations on the length of modied URLs,as shown in Table 5. An attacker can abuse these strategiesto make CDNs send requests carrying large URLs, leading toamplication attacks.Primer on Cascadable CDN Platforms.Chen et al. [17]presented that two or more CDN platforms can be cascadedto make a request forwarding chain, and this cascadable CDNtrick has been applied inRangeAmp Attack[28] to increasethe damage of the attack. A necessary condition for cascadingtwo or more CDN platforms in a chain is that the front-levelCDN must forward the request to the next-level CDN, andthe next-level CDN treats it as a benign request and continuesforwarding it.Whether the next-level CDN accepts the forwarded re-quests depends on the Host header. If the front-level CDNplatform can modify the Host header in the forwarded re-quests to match the domain name registered for service on theFigure 5: Concept of Request Modication attack. Step 1:Send numerous POST requests to CDN; Step 2: ExploitingCDN to make POST requests to "fat" POST requests andforward them to the origin server.next-level CDN platform, then the requests can be processedand forwarded by the next-level CDN platform. Our mea-surements show that thirteen out of fourteen CDN vendorscan be cascaded at any level of the CDN chain, as shown inTable 6. However, Cloudare does not support modifying theHost header as the origin domain name. We can only cascadeCloudare as the last level in a CDN chain.Attack Principle.With our extensive measurements, CDNback-to-originstrategies support the addition of HTTPheaders and URL modications within forwarding requests(Table 1). Hence, we present that attackers can exploit theCDN-provided request modication capability to launch theRequest Modificationattack. As shown in Figure 5, anattacker sends POST requests to the CDN rst, then triggersthe CDN to append numerous large HTTP headers and modifythe URL into a fat URL, creating abnormally large requeststhat lead to amplication attacks.Besides, we propose a variant of theRequest
Modificationattack called theCascade Request
Modificationattack. This attack exploits the cascadingnature of CDNs to amplify the damage of theRequest
Modificationattack. It allows attackers to exploit thecascaded CDNs. Each CDN contributes to the enlargementof requests by adding extensive HTTP headers, increasingthe request size at each stage. We will delve into a detailedassessment of the cascadable CDN trick and real-worldevaluation of theCascade Request Modificationattackin Section 4.
3.4.2 Amplication FactorThe size of the HTTP headers and URL emerges as a piv-otal technical factor inuencing the amplication factor of

--- page 14 ---

5722 33rd USENIX Security Symposium
USENIX Association

--- page 15 ---

Table 6: Modiability of "Host" header eld on CDNs.
Alibaba Azure Baidu Bunny Cachey CDNetworks ChinaNetCenter Cloudare CloudFront Edgio Fastly G-core Qiniu UPYunRequest Domain
" " " " " " " " " " " " " "
Origin Domain
" " " " " " "
N/A (Free Plan)
" " " " " "
Any Domain
" " " " " "
N/A (Free Plan)
" " " " "the attack. To thoroughly assess its impact, we devised thefollowing experiment.Experiment Setup.Based on the above measurements of thevarious CDNback-to-originstrategies, we congured thestrategies to append the maximum HTTP header and modifythe raw URL to its maximum permitted length in forwardingrequests. Subsequently, we sent separate POST requests toeach CDN, which triggered the CDN to transfer them intolarge-sized ones. We captured and analyzed all the requestson both the clients and origin servers to determine the ampli-cation factors.Experiment Result.The most noteworthy experiment resultis that twelve CDN vendors are affected by theRequest
Modificationattack, as shown in Table 5. Remarkably,CDNs such as Alibaba, Bunny, and Edgio, which permit theaddition of substantial, large-sized HTTP headers, exhibitedhigher amplication factors.
3.5 Method Conversion AttackThrough comprehensive analysis across client-CDN andCDN-origin connections, we've identied a nuanced behav-ior among CDNs concerning the support and conversion ofHEAD requests. Specically, our investigation into fourteenCDNs revealed that seven exhibit a vulnerability that couldbe exploited to amplify bandwidth against the origin serversthey host.
3.5.1 Attack SurfacePrimer on HTTP HEAD Request.The HEAD request aimsto only retrieve metadata or header information about a spe-cic web resource [29]. Unlike GET requests, HEAD requestsare designed to exclusively retrieve information about the webresource without fetching the actual content. The HEAD re-quest empowers the client to acquire essential informationconcerning the web resource, encompassing attributes likecontent length, content type, response status code, and so on,without downloading the complete resource.The distinctive characteristics of HEAD requests makethem exceedingly advantageous for performance optimiza-tion, bandwidth management, and cache control [30]. Byexclusively obtaining header information and not download-ing the whole content, HEAD requests efciently reduceunnecessary network trafc, improve operational efciency,and support caching mechanisms, thereby alleviating serverand network burdens.Method Conversion Behavior.While most CDN vendorsassert support for HEAD requests to save trafc, a prevalentoperational practice involves converting these HEAD requestsinto GET requests. This conversion aims to prefetch content,improve cache hit rates [11], and minimize response times forsubsequent requests. Despite the prevalence of this behavior,there has not been a comprehensive study of its security.In this experimental setup, we initially congure the originserver to support HEAD requests. Subsequently, we sendHEAD requests to the CDNs and capture CDN-origin requestsat the origin server usingtcpdumpto explore the CDN'sback-to-originstrategy of HEAD requests. As shown inTable 7, experiment results have revealed that CDNs supportHEAD requests in the client-CDN connection but exclusivelyuse GET requests in the CDN-origin connection, even whenthe origin server supports HEAD requests.
Table 7: Behavior of CDNs forwarding HEAD requests.
HTTP Method
client-CDN Connection CDN-origin ConnectionAlibaba
HEAD GET
Azure
HEAD HEAD
Baidu
HEAD HEAD
Bunny
HEAD GET
Cachey
HEAD GET
CDNetworks
HEAD GET
ChinaNetCenter
HEAD GET
Cloudare
HEAD GET
CloudFront
HEAD HEAD
Edgio
HEAD HEAD
Fastly
HEAD GET
G-core
HEAD GET
Qiniu
HEAD HEAD
UPYun
HEAD HEADAttack Principle.Through the above experiments, we haveidentied two distinctback-to-originstrategies CDNs em-ploy to handle HEAD requests. In one scenario, upon receiv-ing HEAD requests from clients, the CDN directly forwardsthem to the origin server. In the alternative scenario, the CDNconverts HEAD requests into GET requests, fetches morethan the required target resources from the origin server, andcaches them in the CDN global cache.As shown in Figure 6, the method conversion strategy re-sults in the CDN retrieving the target resource more thannecessary from the origin server and caching it while solelyreturning HTTP headers to the client. Consequently, it cre-ates an asymmetry in bandwidth consumption between CDN-origin and client-CDN connections, offering attackers an ap-

--- page 16 ---

USENIX Association
33rd USENIX Security Symposium 5723

--- page 17 ---

proach to exhaust the origin server's bandwidth. Upon aHEAD request of a specic resource, the CDN converts it toa GET request and then caches the response for the followingHEAD or GET requests of the same resources. However,attackers can use the cache bypass techniques to make eachHEAD request not hit the cache and be forwarded to the originserver, thus exhausting the origin server's bandwidth, evenwhen the same resource is requested many times.Figure 6: Concept of Method Conversion attack. Exploit-ing CDN edge servers to convert HEAD requests into GETrequests, requesting resources from the origin server but re-sponding with only HTTP headers.
3.5.2 Amplication FactorWe experimented to explore the practicality and amplicationfactor of theMethod Conversionattack. This experimentaims to determine which CDNs are vulnerable and the result-ing amplication factor.Experiment Setup.We conduct our experiments under con-trolled conditions. We send a series of HEAD requests toCDNs to gather information regarding target resources on theorigin server. For these experiments, we deployed a websiteon each CDN and placed target resources of varying sizes onthe website origin server.To determine the impact of the targeted resource size on theamplication factor, we systematically sent HEAD requeststo the CDNs for targeted resources ranging from 1MB to25MB, incrementing by 1MB. We usedtcpdumpto capturetrafc on both the client-CDN and CDN-origin connectionsand calculate the amplication factor.Experiment Result.As shown in Figure 7, the amplicationfactor is proportional to the size of the target resource for eachCDN except Fastly. For every CDN, we summarize in Table 8the amplication factor for a targeted resource of differentsizes, i.e., 1MB, 10MB, and 25MB.TheMethod Conversionattack can result in an ampli-cation factor of hundreds of thousands by simply requestinga 10MB resource, which is a common occurrence on the in-ternet. However, Fastly appears to be less affected by thisattack. Upon further investigation, we discovered that al-though Fastly converts HEAD requests to GET requests, itimmediately closes the CDN-origin connection after receiv-ing the response header. This unique behavior prevents theamplication factor from increasing with the variations in thesize of the target resource, which can act as a mitigation forthe attack.Figure 7: How does the Method Conversion attack amplica-tion factor change with the size of a target resource le.Table 8: Amplication factors with different target resourcesizes of Method Conversion attacks.
Amplication Factor
1MB 10MB 25MBAlibaba
1340 13059 33952
Bunny
1212 11808 30702
Cachey
1738 16940 44044
CDNetworks
1744 16995 44115
ChinaNetCenter
1784 17418 45212
Cloudare
1170 11385 29698
Fastly
469 469 469
G-core
2106 20520 53352
3.6 Connection Decoupling AttackIt is well-known that CDN, working as a man-in-the-middle,decouples the traditional client-origin connection into two dis-tinct connections: the client-CDN connection and the CDN-origin connection. When the client cuts off the client-CDNconnection, no RFCs or industry standards dene whetherthe specic CDN-origin connection should be kept open. Inother words, this decoupling connection strategy remainsimplementation-specic, and some CDNs still maintain CDN-origin connections. Consequently, attackers can exploit thisstrategy to launch an amplication attack, exhausting theorigin server's limited bandwidth.TheConnection Decouplingattack leverages the inde-pendence of client-CDN and CDN-origin connections. At-tackers leverage CDN edge servers to download target re-sources from the origin server and prevent CDN from re-sponding to these resources, thus consuming the bandwidthresources of the origin server.

--- page 18 ---

5724 33rd USENIX Security Symposium
USENIX Association

--- page 19 ---

3.6.1 Attack SurfaceTraditional CDN decoupling attack is unusable.CDNsintroduce a division in HTTP communication, delineating itinto two discrete segments: the client-CDN connection andthe CDN-origin connection. This strategy yields a variety ofadvantages, notably enhancing the performance and reliabilityof CDNs. Decoupling these connections and absorbing asubstantial inux of ood trafc are common strategies foreffectively countering DoS attacks. However, this strategycan give rise to security challenges stemming from potentialinconsistencies in TCP states and the asymmetry in bandwidthbetween client-CDN and CDN-origin connections.Triukose et al. [31] introduced a new type of DoS attacktargeted at CDN-hosted website servers. In this attack, theattacker sends multiple requests directly to various ingressnodes, all requesting the same large le hosted on the website.These requests include a randomly generated query stringattached to the URL to bypass the CDN cache. Subsequently,the attacker cuts off all client-CDN connections while theCDN continues to sustain CDN-origin connections, whichoperate at a signicantly higher bandwidth. This results in abandwidth exhaustion DoS attack against the website. How-ever, during our experiments, we unearthed a noteworthy ob-servation: certain CDNs automatically terminate CDN-originconnections once the Client-origin connection is severed, asshown in Table 9. This mitigation measure renders the tradi-tional CDN decoupling attack outlined in [31] ineffective.Table 9: Whether CDNs keep CDN-origin connection whilean attacker cuts off client-CDN connection.
CDN-origin Connection
Content-Length Transfer-EncodingAlibaba
Close Keep
Azure
Close Keep
Baidu
Close Keep
Bunny
Keep Keep
Cachey
Keep Keep
CDNetworks
Close Keep
ChinaNetCenter
Keep Keep
Cloudare
Close Keep
CloudFront
Close Close
Edgio
Close Close
Fastly
Close Close
G-core
Keep Keep
Qiniu
Close Close
UPYun
Keep KeepReviving the attack with Transfer-Encoding: Chunked.Transfer-Encoding: Chunkedconstitutes a data transmis-sion technique within the HTTP protocol, wherein data issegmented into small chunks and transmitted sequentially tothe client [32]. The principal advantage of this transmissiontechnique lies in its capacity to generate and deliver datain real-time during the transmission process without wait-ing for the entire content to be ready [33]. This techniquefosters not only exibility but also substantial performanceenhancements. For example, in online video conferencing,where real-time communication is vital, the ability to transmitand render data as it becomes available signicantly reduceslatency [34].As shown in Table 9, it's important to note that certainCDNs automatically close CDN-origin connections whenclient-CDN connections are severed. However, we found thatusingTransfer-Encoding: Chunkedcan force the CDN tosustain CDN-origin connections even after the termination ofclient-CDN connections. It gives the attacker a new attackvector that revives the CDN decoupling attack. Attackerscould still launch an amplication attack that exhausts theorigin server's bandwidth.Figure 8: Concept of Connection Decoupling attack. Step1: The attacker sends requests to CDN nodes; Step 2: Theattacker closes the TCP connection and prevents the CDNfrom responding.Attack Principle.When an attacker sends GET requests toa CDN and cuts off the attacker-CDN connections, the CDNforwards these requests to the origin server while still main-taining the CDN-origin connections, leading to amplicationattacks. As shown in Figure 8, this strategy results in re-sponses traveling only from the origin server to the CDN. Itcauses the bandwidth consumption on the CDN-origin con-nections to be signicantly higher than the attacker-CDNconnections.
3.6.2 Amplication FactorWe speculate that the size of the target resource inuences theamplication factor of theConnection Decouplingattack.We conducted experiments to explore how the size of thetarget resource affects the amplication factor.Experiment Setup.In our experiments, we deploy an Nginxweb server on each CDN. We placed target resources ofvarying sizes on the origin server, ranging from 1MB to 25MBin increments of 1MB. We then used thetcpdumptool tocapture trafc on client-CDN and CDN-origin connectionsto calculate the amplication factor. For each CDN, we rstsent GET requests for different-sized target resources, thenimmediately cut off TCP connections to evaluate the impactof resource size on the amplication factor.Experiment Result.As shown in Figure 9, the amplicationfactor for each CDN is essentially proportional to the sizeof the target resource. G-core is an exceptional case, as itdiffers from the prevalent implementation observed in most

--- page 20 ---

USENIX Association
33rd USENIX Security Symposium 5725

--- page 21 ---

other CDNs. In contrast to the standard behavior, whereinCDNs promptly close the TCP connection upon receipt ofa client-sending RST frame requesting connection closure,G-core exhibits a distinctive implementation. This imple-mentation entails a refusal to terminate the TCP connectionuntil it has successfully lled the TCP window. However, itis worth noting that an attacker can still bypass this uniqueimplementation in G-core by setting up a small TCP windowto prevent CDN from responding.Figure 9: How does the Connection Decoupling attack ampli-cation factor change with the size of a target resource le.Table 10: Amplication factors with different target resourcesizes of Connection Decoupling attacks.
Amplication Factor
1MB 10MB 25MBAlibaba
4181 41614 104029
Azure
4216 41948 104862
Baidu
4148 41286 103210
Bunny
4198 41779 104443
Cachey
4116 40963 102403
CDNetworks
4082 40645 101609
ChinaNetCenter
4129 41284 103207
Cloudare
4214 41946 104861
G-core
747 7469 18672
UPYun
4131 41124 102805Table 10 summarizes the amplication factor for a targetresource of different sizes (1MB, 10MB, and 25MB). Theamplication factor is proportional to the target resource size.4 Real-world EvaluationWhen attack requests reach a website and simultaneouslydemand the utilization of internal bottleneck resources, suchas CPU, memory, and logical queues, a signicant inux ofrequests can persistently overwhelm these resources, leadingto more severe DoS disruptions. We rst evaluated the real-world amplication factor for all vulnerable CDNs. As shownin Figure 10, all CDNs we tested are vulnerable to at leastone specicBtOAmpattack, and theImage Optimizationattacks can attack ten CDN vendors, and it has the mostextensive attack surface.To further demonstrate the real-world impact ofBtOAmpattacks on bandwidth amplication, we choose one differentCDN for each specicBtOAmpattack to study the bandwidthof both the attacker and the origin server, results are shown inFigure 11(a) and Figure 11(b).The Setup of Real-World BtOAmp attacks.We initially setup an HTTP service (2.5GHz/2GB/100Mbps/Nginx 1.21.3) inSilicon Valley as the target victim. Subsequently, we launchedtheBtOAmpattack in a VPS (2.5GHz/2GB/30Mbps) in Sin-gapore. Both servers are located on the backbone network,which greatly reduces the risk of saturating on-path networksegments with our attack trafc. To assess the impact of at-tacks, we monitor the bandwidth consumption of both theattacker (client) and the origin server.Setting of Image Optimization Attack.Take Fastly as anexample, we concurrently send three image optimization re-quests to Fastly every second, lasting 60 seconds. The resolu-tion of the requested target image on the origin server is 4320pixels.Severity Analysis of Image Optimization Attack.Fig-ure 11(a) and Figure 11(b) compare the bandwidth consump-tion. The attacker sacrices a bandwidth consumption notexceeding 10Kbps, while the website's bandwidth achieves100 Mbps at maximum.Setting of Request Modication Attack. Taking Edgio asan example, we concurrently send 15 POST requests to Edgioper second for 60 seconds. Edgio appends 15 HTTP head-ers of 200KB each to these requests and rewrites the URLfrom "/a" to "/a" ten thousand times. Moreover, we also useCDN cascading technology to amplify the threat ofRequest
Modificationattacks. For example, we cascaded Cloud-Front and Bunny to evaluate the effectiveness of theCascade
Request Modificationattack. We simultaneously send 3POST requests to CloudFront every second for 60 seconds.CloudFront appends 10 HTTP headers, each 896B in size,to these requests and forwards them to Bunny. In addition,Bunny appends 10 HTTP headers of 2MB each to these re-quests and rewrites the URL from "/a" to "/a" a hundredthousand times.Severity Analysis of Request Modication Attack.Fig-ure 11(a) and Figure 11(b) demonstrate that an attacker canlaunch request modication attacks to bring down a victim's100Mbps bandwidth with just an average 35kbps bandwidth.In addition, an attacker can also use CDN cascading tech-niques to launchCascade Request Modificationattacks,only needing to consume 15kbps bandwidth to paralyze thevictim's 100Mbps bandwidth. CDN cascading techniquescan greatly increase the threat ofRequest Modification
attacks.Setting of Method Conversion Attack.Taking Cloudare

--- page 22 ---

5726 33rd USENIX Security Symposium
USENIX Association

--- page 23 ---

Figure 10: Amplication factor of the BtOAmp attacks on all CDN vendors.
(a) Bandwidth consumption of the attacker
(b) Bandwidth consumption of the origin server
Figure 11: The bandwidth consumption of the attacker and the origin server for BtOAmp attacks.as an example, we concurrently send 2 HEAD requests persecond to Cloudare, lasting 60 seconds. The target resourcesize on the origin server is 10MB.Severity Analysis of Method Conversion Attack.Fig-ure 11(a) and Figure 11(b) show that an attacker can usebelow 10Kbps bandwidth to launchMethod Conversionat-tacks to exhaust the victim's 100 Mbps bandwidth.Setting of Decoupling Connection Attack.Taking Azure asan example, we concurrently send 2 GET requests to Azureevery second, promptly cutting off the TCP connection uponsending the requests, lasting 60 seconds. The target resourcesize on the origin server is 10MB.Severity Analysis of Decoupling Connection Attack.Fig-ure 11(a) and Figure 11(b) show that an attacker can launchConnection Decouplingattacks by cutting off the TCPconnection after the request has been sent. The attacker'sbandwidth usage remains below 7Kbps, whereas the web-site's bandwidth reaches a maximum of 100 Mbps.The above evaluations show that theBtOAmpattack ide-ally matches the "small spark, big re" attacking philosophy.Worse, the stealthy nature of aBtOAmpattack can also help itto escape DDoS detection.
5 Discussion
5.1 MitigationsIn general, the presence of vulnerabilities is partly due tomarket competition. CDN vendors naturally aspire to offermore features and maximize compatibility with websites ofvarying congurations. However, CDNs serve as the back-bone of the Internet. Therefore, if there are weaknesses inCDN implementations, they could potentially be exploited,jeopardizing the security of websites and causing a severethreat to the Internet.Limit parameters in the Back-to-Origin strategies.Cur-rently, all the CDN vendors we tested that support imageoptimization do not impose any restrictions on parameters.We recommend that CDNs set image cropping parameters tocommon resolutions in their default congurations, with usershaving the option to customize as needed. The CDN shouldcache the original image to reduce the workload on the ori-gin server. Additionally, it is advisable to impose limitationson HTTP header size, HTTP header quantity, and URL sizewhen implementing strategies for adding HTTP headers andrewriting URLs.

--- page 24 ---

USENIX Association
33rd USENIX Security Symposium 5727

--- page 25 ---

Follow RFC standards for request forwarding.We recom-mend that CDNs by default directly forward HEAD requestsrather than automatically converting them into GET requests.If websites want to improve cache hit rates and speed up con-tent loading, they can congure the CDN to forward HEADrequests as GET requests.Synchronize client-CDN and CDN-origin connections.Werecommend that CDNs wait several seconds after the client-CDN connection breaks, allowing the client to reconnect. Ifthe client fails to reconnect, CDN should timely terminate theCDN-origin connection.Enforce CDN to validate origin ownership.Currently, allfourteen CDNs we tested do not validate the ownership ofcustomer-hosted origin, which allows attackers to register aCDN service and congure targeted websites as the origin [35,36]. We recommend that CDN providers implement originownership validation to prevent abuse, which can narrow thescope of threats only on websites hosted on CDNs.It's worth noting that both Alibaba and G-core have im-plemented our proposed solution to mitigate theImage
Optimizationattack. They did this by caching the orig-inal image on edge servers, which prevents theImage
Optimization
attack.
5.2 Ethic ConsiderationDuring our study, we aimed to balance real-world severityevaluations with minimizing risks that could impact CDN ven-dors. We were concerned that higher bandwidth exhaustionduring our tests could impair the CDN's network performanceand harm other hosted websites. As a result, we took greatcare to avoid any ethical issues during our experiments.Firstly, we strategically selected attacker positions withminimal latency to CDN nodes, ensuring our attacks areinitiated within the backbone network. This congurationsignicantly reduced the risk of our attack trafc saturatingon-path network segments. Secondly, our attacks targetedour own websites, keeping trafc below the CDN's capacityto avoid service disruption. Thirdly, we limited attack band-width to 100Mbps to prevent network overload and protectother CDN services. Fourthly, We only sent three requests tovalidate the feasibility of Cachey'sImage Optimizationattack and that there would be no impact on the website'sservice. These approaches ensure our research minimizesharm while enhancing CDN security.
5.3 Responsible DisclosureWe contacted all 14 CDN vendors to report all vulnerabil-ities found in our study. We provided them with detailedreports and mitigation solutions to eliminate the detectedthreats. Most vendors conrmed the vulnerabilities promptlyand claimed to x them as soon as possible. Some vendorshave xed the vulnerabilities, including Alibaba, G-core, andUPYun. The responses from CDN vendors are summarizedbelow:Alibabaevaluated the problem as a medium-risk vulnerability.They stated that they view it as indeed a problem for the CDNindustry, and they would internally assess how to defendagainst it. They thanked us for our report and provided areward of

$200.G-coreexpressed their gratitude for our report and conrmedthe vulnerability of their CDN. Subsequently, they have in-formed us that they have xed the vulnerabilities.UPYunthanked us for the report and discussed with us thedetails of the attack and its potential consequences. They havexed the vulnerabilities.Qiniuthanks for this research discovery and acknowledgedthe issues found in the paper. They would internally assesshow to defend against it.ChinaNetCenterexpressed appreciation for our study andinformed us that they are investigating to validate the attackscenarios and explore the effectiveness of mitigation alreadyavailable.Cacheythanked us for our work and acknowledged thepotential for abuse of these vulnerabilities but said that theirdenial of service protection mechanism blocks abusive trafc.CloudFrontacknowledged our report and stated that thesebehaviors align with the CDN's design to facilitate such ac-tions.Cloudarethanked us for the report and is evaluating thesevulnerabilities. However, they have provided no further re-sponse to date.Azure and Baiduexpressed gratitude for the report and ac-knowledged that the attacks resulted from misconguration.Fastlyacknowledged our report, but provided no further com-ment to date.So far, we have disclosed the vulnerability reports to Bunny,CDNetworks, and Edgio, but we have not received any re-sponse. We are actively seeking further communication withthem.
5.4 Anonymity and CostOne may argue that launching these attacks in the real worldis unlikely due to associated costs and the risk of exposingthe attacker's identity. However, CDN vendors, presumablyfor competitive reasons, provide much convenience for theirprospective customers (and thus for attackers). Table 11shows the registration information required to begin using thefree or free-trial services of the CDN vendors in our study.Seven out of fourteen CDN vendors require only a valid emailaddress. Azure, Cachey, and CloudFront require valid creditcards (could be gift cards or stolen). ChinaNetCenter, Qiniu,and UPYun require a valid phone number (could be anony-mous). Alibaba requires users to verify their identity througha valid bank card, which takes an attacker more effort to keepanonymous.

--- page 26 ---

5728 33rd USENIX Security Symposium
USENIX Association

--- page 27 ---

Table 11: CDN registration requirements, cost, and originverication.
Register Requirements Price Origin VericationAlibaba
C1, C2, C4 Free trial No Verication
Azure
C1, C3 Free trial No Verication
Baidu
C1 Free service No Verication
Bunny
C1 Free trial No Verication
Cachey
C1, C3 Free service No Verication
CDNetworks
C1 Free trial No Verication
ChinaNetCenter
C1, C2 Free trial No Verication
Cloudare
C1 Free service Domain Blacklist
CloudFront
C1, C3 Free trial No Verication
Edgio
C1 Free trial No Verication
Fastly
C1 Free service No Verication
G-core
C1 Free service No Verication
Qiniu
C1, C2 Free service No Verication
UPYun
C1, C2 Free service No Verication
†
C1 means an Email address is required to register an account.
‡
C2 means a Phone number is required to register an account.
k
C3 means a Credit card is required to register an account.

C4 means a Bank card is required to register an account.
5.5 Severity AssessmentA severe and widespread practical inuence.Accordingto our experimental results, theImage Optimization,Request Modification,Method Conversion, andConnection Decouplingare nearly proportional to thesize of the target resources, leading to the consumption ofthe origin server's outgoing bandwidth. Meanwhile, requestmodication attacks can exhaust the origin server's incomingbandwidth. As detailed in Section 3, the CDNs we testedenjoy global popularity and a high market share. TheseCDNs host 36.5% of the websites on the Tranco Top 10,000list. Therefore, many well-known websites are vulnerable to
our
BtOAmp
attack.A low-cost and efcient DDoS attack.Unlike other DDoSattacks that need to control a large scale of botnets [37], theattacker only needs an ordinary laptop to launch theBtOAmpattacks. As the CDN nodes are dispersed globally and forma naturally distributed botnet [38, 39], it allows attackers toeasily congest the target network and possibly cause a denialof service in seconds for a low cost.A signicant monetary loss to the victims.Most CDNscharge their website customers by trafc consumption, in-cluding Alibaba, Azure, Bunny, Baidu, Cloudare, Cloud-Front, G-core [40–43]. Attackers can exploit back-to-originstrategies to launch aBtOAmpattack against CDN-poweredwebsites, causing a very high CDN service fee and bandwidthfee to the website [44].A security challenge to anti-DDoS.Traditional DDoS at-tacks consume bandwidth and primarily target the victim'sincoming bandwidth.BtOAmpattacks can exhaust both thevictim's incoming and outgoing bandwidth. Further, abusingthe CDN to launch amplication attacks certainly will posesecurity challenges for detecting DDoS attacks [45,46].
5.6 LimitationsThere may be some limitations in this study. Our methodologyfor identifying vulnerabilities cannot guarantee the detectionof all possible issues due to the complexity of the HTTP proto-col and CDNs. We conducted tests on only 14 CDN vendors,but we believe that other CDN vendors may have similarvulnerabilities. Moreover, as CDNs continue to evolve, newvulnerabilities may emerge that were not previously detected.6 Related Work
6.1 CDN SecurityAccording to reports [47], nearly one-fth of Internet trafc istransmitted through CDNs. Therefore, CDN infrastructure isthe cornerstone of the Internet, and the security of CDNs hasbeen extensively researched [48]. Due to the DDoS protectionprovided by CDNs [49,50], the search for vulnerabilities inCDN architectures or implementations and attacks on CDN-hosted origin servers have been a hot topic in the eld ofnetwork security.Previous research has found various vulnerable implemen-tations among CDN vendors. For example, Chen et al. [17]discovered inconsistency of HTTP request handling policiesamong CDN vendors, where attackers can chain CDN nodesinto a loop, causing the malicious request to be processedrepeatedly and reducing CDN's availability. Guo et al. [51]identied new architectural weaknesses in CDN infrastructure.Attackers could exploit CDNs to launch pulse attack waves ontheir hosted origin servers, disrupting their availability. Dueto the conicting nature of CDNs as intermediaries and theend-to-end encryption of HTTPS, previous researchers haveexplored TLS key management issues on CDN platforms,such as private key sharing and inefcient revocation [52,53].Furthermore, attackers can exploit disparities in the interpreta-tion of HTTP header elds between CDNs and origin servers,thereby enabling the misuse of CDN caching mechanismsto initiate cache poisoning attacks [7], cache-poisoned-DoSattacks [54], and web cache deception attacks [55]. Further-more, CDNs' high reputation and invisibility can be exploitedto escape internet censorship, such as domain fronting [56],domain borrowing [57], and domain shadowing [36] thatcompete with the constantly-evolving censorship systems.In summary, compared to previous CDN security work,considering the widespread use of CDNs for DDoS attackdefense, we have identied implementation vulnerabilities inback-to-originstrategies of CDNs, proposed a new classof amplication attacks, and conducted real-world security as-sessments of fourteen popular CDNs. This research providesa valuable supplement to existing CDN security research.

--- page 28 ---

USENIX Association
33rd USENIX Security Symposium 5729

--- page 29 ---

6.2 Amplication AttacksAmplication attacks constitute a well-established area ofresearch within the realm of cybersecurity. The UDP proto-col has been extensively researched for amplication attacks.Sieklik et al. [58] conducted a further analysis of amplica-tion attacks based on DNSSEC, resulting in amplicationfactors of up to 44 times. Anagnostopoulos et al. [59] stud-ied TFTP amplication attacks with amplication factors of60 times. Booth et al. [60] revealed that UDP amplicationattacks, recruiting UDP servers on the internet as reectors,can achieve amplication factors up to 556 times. The TCPprotocol can also be abused to launch an amplication attack.Kuhrer et al. [61] proposed that amplication attacks can belaunched using the three-way handshake mechanism of theTCP protocol, and application-layer protocols based on theTCP protocol, e.g., FTP, Telnet, and SSH, are vulnerable tothese attacks. Unfortunately, even the HTTP protocol hasbeen abused. Li et al. [28] exposed that amplication attacksleveraging the HTTP Range Request mechanism can achieveamplication factors as high as 43000 times. Guo et al. [62]found that the compressed headers can be amplied whenHTTP/2 downgrades to HTTP/1, which causes an ampli-cation attack. Triukose et al. [31] proposed an attack thatexhausts the origin server bandwidth by quickly disconnect-ing the client-CDN connection. We evaluated this attack andfound that most CDNs mitigate it. However, our decoupledCDN connection attack can bypass this defense to attack thewebsite powered by CDN.In conclusion, our research reveals that leveragingback-to-originstrategies can launch a novel class of am-plication attacks against websites hosted on CDNs. Moresignicantly, when the website is hosted by CDN, althoughthe CDN can defend against previously studied amplicationattacks, our attacks can penetrate CDN DDoS protection andlaunch amplication attacks against the CDN-hidden web-sites.
7 ConclusionThe CDN has undeniably become an indispensable part ofthe internet landscape, providing several benets, such asacting as a shield against DDoS attacks for websites hostedon CDN platforms. However, it is crucial to acknowledgethat CDN infrastructure, particularly itsback-to-originstrategies, can also be exploited, undermining the very DDoSprotection it is supposed to provide.We have presented a novel class of amplication attacksand their real-world evaluation of fourteen CDN vendors.This research reveals the awed trade-off that CDN vendorsmade between performance and security. Experiment re-sults show that attackers can exploit CDNback-to-originstrategies to successfully launch an amplication DoS attackagainst website servers. We envision our work being able tourge CDNs to raise their security standards and inspire moreresearchers to explore CDN-related security.
AcknowledgementWe sincerely thank all anonymous reviewers and our shep-herd. Their insightful reviews and comments have improvedthis paper, with a special note of appreciation to our shep-herd for their thoughtful and patient guidance. We also ac-knowledge the prompt response from CDN vendors, notablyAlibaba, G-core, UPYun, and Qiniu, in xing the vulnera-bilities we found. This work is supported by the NationalKey Research and Development Program of China (Grant No.2021YFB0301100), National Natural Science Foundation ofChina (No.62072109, No.62272265), and Natural ScienceFoundation of Fujian Province (No. 2021J06013).
References
[1]Cloudare. what-is-a-cdn, 2023.https://developers.cloudflare.com/cache/
concepts/cache-behavior/
.
[2]Cloudare. The cloudare image optimization., 2023.https://developers.cloudflare.com/images/
.
[3]Cloudare. The cloudare request header modication.,2023.https://developers.cloudflare.com/ru
les/transform/request-header-modification/
.
[4]Cloudare. The cloudare url-rewrite., 2023.https://developers.cloudflare.com/rules/tr
ansform/url-rewrite/
.
[5]Milad Ghaznavi, Elaheh Jalalpour, Mohammad A.Salahuddin, Raouf Boutaba, Daniel Migault, and SterePreda. Content delivery network security: A survey.IEEE Commun. Surv. Tutorials, 23(4):2166–2190,2021.
[6]Tencent. Tencent cloud security white paper,2019.https://main.qcloudimg.com/raw/e
a77661307adc3825990e159d851d406.pdf
.
[7]Jianjun Chen, Jian Jiang, Hai-Xin Duan, NicholasWeaver, Tao Wan, and Vern Paxson. Host of troubles:Multiple host ambiguities in HTTP implementations. InProceedings of the 2016 ACM SIGSAC Conference onComputer and Communications Security, Vienna, Aus-tria, October 24-28, 2016, pages 1516–1527. ACM,2016.
[8]Yossi Gilad, Amir Herzberg, Michael Sudkovitch, andMichael Goberman. Cdn-on-demand: An affordableddos defense via untrusted clouds. In
NDSS
, 2016.
[9]Nishat I Mowla, Inshil Doh, and Kijoon Chae. Multi-defense mechanism against ddos in sdn based cdni. In2014 Eighth International Conference on Innovative

--- page 30 ---

5730 33rd USENIX Security Symposium
USENIX Association

--- page 31 ---

Mobile and Internet Services in Ubiquitous Computing,pages 447–451. IEEE, 2014.
[10]Jan Renz and Christoph Meinel. Improving mobileand worldwide performance through image optimizationand distributed content delivery. InEDULEARN18Proceedings
, pages 5983–5991. IATED, 2018.
[11]Cloudare. The cloudare handling head requests.,2023.https://developers.cloudflare.com/ca
che/concepts/cache-behavior/
.
[12]Datanyze. Content delivery networks market sharereport, 2023.https://www.datanyze.com/marke
t-share/cdn--10/
.
[13]Lin Jin, Shuai Hao, Haining Wang, and Chase Cotton.Your remnant tells secret: Residual resolution in ddosprotection services. In48th Annual IEEE/IFIP Inter-national Conference on Dependable Systems and Net-works, DSN 2018, Luxembourg City, Luxembourg, June25-28, 2018, pages 362–373. IEEE Computer Society,2018.
[14]Lin Jin, Shuai Hao, Haining Wang, and Chase Cotton.Unveil the hidden presence: Characterizing the backendinterface of content delivery networks. In27th IEEEInternational Conference on Network Protocols, ICNP2019, Chicago, IL, USA, October 8-10, 2019, pages1–11. IEEE, 2019.
[15]Shuai Hao, Yubao Zhang, Haining Wang, and AngelosStavrou. End-users get maneuvered: Empirical analysisof redirection hijacking in content delivery networks. InWilliam Enck and Adrienne Porter Felt, editors,27thUSENIX Security Symposium, USENIX Security 2018,Baltimore, MD, USA, August 15-17, 2018, pages 1129–1145. USENIX Association, 2018.
[16] Tranco List, 2024.
https://tranco-list.eu/
.
[17]Jianjun Chen, Xiaofeng Zheng, Hai-Xin Duan, JinjinLiang, Jian Jiang, Kang Li, Tao Wan, and Vern Paxson.Forwarding-loop attacks in content delivery networks.In23rd Annual Network and Distributed System SecuritySymposium, NDSS 2016, San Diego, California, USA,February 21-24, 2016
. The Internet Society, 2016.
[18]Run Guo, Jianjun Chen, Baojun Liu, Jia Zhang, ChaoZhang, Hai-Xin Duan, Tao Wan, Jian Jiang, ShuangHao, and Yaoqi Jia. Abusing cdns for fun and prot:Security issues in cdns' origin validation. In37th IEEESymposium on Reliable Distributed Systems, SRDS2018, Salvador, Brazil, October 2-5, 2018, pages 1–10.IEEE Computer Society, 2018.
[19]Cloudare. What is an image optimizer?| how to reduce image sizes, 2023.https://www.cloudflare.com/learning/perfor
mance/glossary/what-is-an-image-optimizer/
.
[20]Sachin Dhawan. A review of image compression andcomparison of its algorithms.International Journal ofelectronics & Communication technology, 2(1):22–26,2011.
[21]Hui Zeng, Lida Li, Zisheng Cao, and Lei Zhang. Reli-able and efcient image cropping: A grid anchor basedapproach. InProceedings of the IEEE/CVF confer-ence on computer vision and pattern recognition, pages5949–5957, 2019.
[22] tcpdump, 2023.
https://www.tcpdump.org/
.
[23]Sharon Lim, J Ha, H Kim, Y Kim, and S Yang. A sdn-oriented ddos blocking scheme for botnet-based attacks.In2014 Sixth International Conference on Ubiquitousand Future Networks (ICUFN), pages 63–68. IEEE,2014.
[24]Manos Antonakakis, Tim April, Michael Bailey, MattBernhard, Elie Bursztein, Jaime Cochran, Zakir Du-rumeric, J Alex Halderman, Luca Invernizzi, MichalisKallitsis, et al. Understanding the mirai botnet. In26th USENIX security symposium (USENIX Security17)
, pages 1093–1110, 2017.
[25]Esraa Alomari, Selvakumar Manickam, Brij BhooshanGupta, Shankar Karuppayah, and Rafeef Alfaris. Botnet-based distributed denial of service (ddos) attacks onweb servers: classication and art.arXiv preprintarXiv:1208.0403
, 2012.
[26]Cloudare. Http request header modication rules,2023.https://developers.cloudflare.com/ru
les/transform/request-header-modification/
.
[27]Balachander Krishnamurthy, Craig Wills, and YinZhang. On the use and performance of content dis-tribution networks. InProceedings of the 1st ACMSIGCOMM Workshop on Internet Measurement, pages169–182, 2001.
[28]Weizhong Li, Kaiwen Shen, Run Guo, Baojun Liu, JiaZhang, and Haixin Duan et al. CDN backred: Ampli-cation attacks based on HTTP range requests. In50thAnnual IEEE/IFIP International Conference on Depend-able Systems and Networks, DSN 2020, Valencia, Spain,June 29 - July 2, 2020
, pages 14–25. IEEE, 2020.
[29]Tanvir Habib Sardar and Zahid Ansari. Detection andconrmation of web robot requests for cleaning the vo-luminous web log data. In2014 International Confer-ence on the IMpact of E-Technology on US (IMPETUS),pages 13–19. IEEE, 2014.

--- page 32 ---

USENIX Association
33rd USENIX Security Symposium 5731

--- page 33 ---

[30]Craig Pratt, Darshak Thakore, and Barbara Stark. HTTPRandom Access and Live Content. RFC 8673, Novem-ber 2019.https://www.rfc-editor.org/info/r
fc8673
.
[31]Sipat Triukose, Zakaria Al-Qudah, and Michael Rabi-novich. Content delivery networks: Protection or threat?InComputer Security - ESORICS 2009, 14th EuropeanSymposium on Research in Computer Security, Saint-Malo, France, September 21-23, 2009. Proceedings,volume 5789 ofLecture Notes in Computer Science,pages 371–389. Springer, 2009.
[32]Roy T. Fielding, Mark Nottingham, and Julian Reschke.HTTP/1.1. RFC 9112, June 2022.https://www.rf
c-editor.org/info/rfc9112
.
[33]Bahruz Jabiyev, Steven Sprecher, Kaan Onarlioglu, andEngin Kirda. T-reqs: Http request smuggling withdifferential fuzzing. InProceedings of the 2021 ACMSIGSAC Conference on Computer and CommunicationsSecurity
, pages 1805–1820, 2021.
[34]Jack Jansen, Shishir Subramanyam, Romain Bouqueau,Gianluca Cernigliaro, Marc Martos Cabré, FernandoPérez, and Pablo Cesar. A pipeline for multiparty volu-metric video conferencing: transmission of point cloudsover low latency dash. InProceedings of the 11th ACMMultimedia Systems Conference
, pages 341–344, 2020.
[35]Behnam Shobiri, Mohammad Mannan, and AmrYoussef. Cdns' dark side: Security problems in cdn-to-origin connections.
Digital Threats
, 4(1), mar 2023.
[36]Mingkui Wei. Domain shadowing: Leveraging contentdelivery networks for robust blocking-resistant com-munications. In30th USENIX Security Symposium,USENIX Security 2021, August 11-13, 2021, pages 3327–3343. USENIX Association, 2021.
[37]Esraa Alomari, Selvakumar Manickam, Brij B. Gupta,Shankar Karuppayah, and Rafeef Alfaris. Botnet-based distributed denial of service (ddos) attacks on webservers: Classication and art.CoRR, abs/1208.0403,2012.
[38]Manos Antonakakis, Tim April, Michael Bailey, MattBernhard, Elie Bursztein, Jaime Cochran, Zakir Du-rumeric, J. Alex Halderman, Luca Invernizzi, MichalisKallitsis, Deepak Kumar, Chaz Lever, Zane Ma, JoshuaMason, Damian Menscher, Chad Seaman, Nick Sulli-van, Kurt Thomas, and Yi Zhou. Understanding themirai botnet. In26th USENIX Security Symposium,USENIX Security 2017, Vancouver, BC, Canada, August16-18, 2017, pages 1093–1110. USENIX Association,2017.
[39]Anestis Karasaridis, Brian Rexroad, and David A. Hoe-in. Wide-scale botnet detection and characterization.InFirst Workshop on Hot Topics in Understanding Bot-nets, HotBots'07, Cambridge, MA, USA, April 10, 2007.USENIX Association, 2007.
[40]Alibaba Cloud. Content delivery networkpricing&purchasing methods, 2023.https://www.alibabacloud.com/zh/product/
content-deliver-network/pricing?spm=a3c0i
.7938564.220486.75.26d62aecnaGFXf
.
[41]Azure. Content delivery network pricing, 2023.https://azure.microsoft.com/en-us/pricing/
details/cdn/
.
[42]Amazon CloudFront. Amazon cloudfront pricing,2023.https://aws.amazon.com/tw/cloudfront
/pricing/
.
[43]G-core. edge-network pricing, 2023.https://gcor
e.com/pricing/edge-network
.
[44]Cloudare. Cdn performance bundle pricing,2023.https://www.cloudflare.com/lp/pg-cdn
-performance-bundle
.
[45]Zaoxing Liu, Hun Namkung, Georgios Nikolaidis,Jeongkeun Lee, Changhoon Kim, Xin Jin, VladimirBraverman, Minlan Yu, and Vyas Sekar. Jaqen: A high-performance switch-native approach for detecting andmitigating volumetric ddos attacks with programmableswitches. In Michael Bailey and Rachel Greenstadt,editors,30th USENIX Security Symposium, USENIXSecurity 2021, August 11-13, 2021, pages 3829–3846.USENIX Association, 2021.
[46]Zhijun Wu, Wenjing Li, Liang Liu, and Meng Yue. Low-rate dos attacks, detection, defense, and challenges: Asurvey.
IEEE Access
, 8:43920–43943, 2020.
[47]Data Economy. Data economy front-line. edge computing as the most misun-derstood weapon of the iot world, 2019.https://www.clearblade.com/press/data-e
conomyfrontline-edge-computing-as-the-mos
t-misunderstood-weapon-of-the-iot-world/
.
[48]Michele Luglio, Simon Pietro Romano, Cesare Roseti,and Francesco Zampognaro. Service delivery modelsfor converged satellite-terrestrial 5g network deploy-ment: A satellite-assisted CDN use-case.IEEE Netw.,33(1):142–150, 2018.
[49]Mohammed Imthiyas, Sharyar Wani, Rawad Ab-dulKhaleq Abdulmolla Abdulghafor, Adamu AbubakarIbrahim, and Abudl Hafeez Mohammad. Ddos mitiga-tion: A review of content delivery network and its ddos

--- page 34 ---

5732 33rd USENIX Security Symposium
USENIX Association

--- page 35 ---

defence techniques.International Journal on Perceptiveand Cognitive Computing
, 6(2):67–76, 2020.
[50]Elaheh Jalalpour, Milad Ghaznavi, Daniel Migault,Stere Preda, Makan Pourzandi, and Raouf Boutaba. Asecurity orchestration system for cdn edge servers. In2018 4th IEEE Conference on Network Softwarizationand Workshops (NetSoft)
, pages 46–54. IEEE, 2018.
[51]Run Guo, Jianjun Chen, Yihang Wang, Keran Mu, Bao-jun Liu, Xiang Li, Chao Zhang, Haixin Duan, and Jian-ping Wu. Temporal cdn-convex lens: A cdn-assistedpractical pulsing ddos attack. In32nd USENIX SecuritySymposium, USENIX Security 2023, Anaheim, CA, USA,August 9-11, 2023
. USENIX Association, 2023.
[52]Jinjin Liang, Jian Jiang, Hai-Xin Duan, Kang Li, TaoWan, and Jianping Wu. When HTTPS meets CDN: Acase of authentication in delegated service. In2014IEEE Symposium on Security and Privacy, SP 2014,Berkeley, CA, USA, May 18-21, 2014, pages 67–82.IEEE Computer Society, 2014.
[53]Frank Cangialosi, Taejoong Chung, David R. Choffnes,Dave Levin, Bruce M. Maggs, Alan Mislove, andChristo Wilson. Measurement and analysis of privatekey sharing in the HTTPS ecosystem. InProceedingsof the 2016 ACM SIGSAC Conference on Computerand Communications Security, Vienna, Austria, October24-28, 2016
, pages 628–640. ACM, 2016.
[54]Hoai Viet Nguyen, Luigi Lo Iacono, and Hannes Feder-rath. Your cache has fallen: Cache-poisoned denial-of-service attack. InProceedings of the 2019 ACM SIGSACConference on Computer and Communications Security,CCS 2019, London, UK, November 11-15, 2019, pages1915–1936. ACM, 2019.
[55] Seyed Ali Mirheidari, Sajjad Arshad, Kaan Onarlioglu,Bruno Crispo, Engin Kirda, and William Robertson.Cached and confused: Web cache deception in the wild.In29th USENIX Security Symposium, USENIX Security2020, August 12-14, 2020, pages 665–682. USENIXAssociation, 2020.
[56]David Field, Chang Lan, Rod Hynes, Percy Wegmann,and Vern Paxson. Blocking-resistant communicationthrough domain fronting.Proc. Priv. Enhancing Tech-nol.
, 2015(2):46–64, 2015.
[57]Junyu Zhou and Tianze Ding. Domain borrow-ing: Catch my c2 trafc if you can, 2021.https://i.blackhat.com/asia-21/Thursday-H
andouts/as-21-Ding-Domain-Borrowing-Catch
-My-C2-Traffic-If-You-Can.pdf
.
[58]Marios Anagnostopoulos, Georgios Kambourakis, Pana-giotis Kopanos, Georgios Louloudakis, and StefanosGritzalis. DNS amplication attack revisited.Comput.Secur.
, 39:475–485, 2013.
[59]Boris Sieklik, Richard Macfarlane, and William J.Buchanan. Evaluation of TFTP ddos amplicationattack.
Comput. Secur.
, 57:67–92, 2016.
[60]Todd G. Booth and Karl Andersson. Elimination of dosUDP reection amplication bandwidth attacks, pro-tecting TCP services. InFuture Network Systems andSecurity - First International Conference, FNSS 2015,Paris, France, June 11-13, 2015, Proceedings, volume523 ofCommunications in Computer and InformationScience
, pages 1–15. Springer, 2015.
[61]Marc Kührer, Thomas Hupperich, Christian Rossow,and Thorsten Holz. Hell of a handshake: AbusingTCP for reective amplication ddos attacks. In8thUSENIX Workshop on Offensive Technologies, WOOT'14, San Diego, CA, USA, August 19, 2014. USENIXAssociation, 2014.
[62]Run Guo, Weizhong Li, Baojun Liu, Shuang Hao, JiaZhang, Haixin Duan, Kaiwen Sheng, Jianjun Chen, andYing Liu. CDN judo: Breaking the CDN dos protectionwith itself. In27th Annual Network and DistributedSystem Security Symposium, NDSS 2020, San Diego,California, USA, February 23-26, 2020. The InternetSociety, 2020.

--- page 36 ---

USENIX Association
33rd USENIX Security Symposium 5733

--- page 37 ---

Table 12: Techniques to launch Image Optimization attack
image compression image cropping combinationAlibaba
?image_process=format,webp ?image_process=crop,center,w_1,h_1 ?image_process=crop,center,w_1,h_1/format,webp
Bunny
?quality=1 ?crop=1,1
Cachey
?format(webp) ?width:1xheight:1
CDNetworks
?f=webp ?crop=p_1,w_1,h_1 ?f=webp&crop=p_1,w_1,h_1
ChinaNetCenter
?&output=webp ?&w=1&h=1 ?&w=1&h=1&output=webp
Cloudare
/cdn-cgi/image/format=webp /cdn-cgi/image/width=1
CloudFront
?format=webp ?width=1&hight=1 ?format=webp&width=1&hight=1
Edgio
?auto=webp,smallest ?width=1&height=1 ?width=1&height=1&t=crop&format=webp
Fastly
?format=webp ?crop=1,1 ?crop=1.1&format=webp
G-core
?fmt=webp ?crop=1,1
Qiniu
?imageMogr2/format/webp ?imageMogr2/crop/1x1 ?imageMogr2/crop/1x1/format/webp
UPYun
!/format/webp !/fwfh/1x1 !/fwfh/1x1/format/webp
A Appendix
A.1 Details of Image Optimization AttackTo elaborate on how to launch anImage Optimizationat-tack, we summarize the parameters for launching an imageoptimization attack in 12. Taking Fastly as an example, forexample, utilizing the parameter "?format=webp" can triggerthe CDN to compress the image into webp format. For exam-ple, the parameter "?crop=1,1" can trigger the CDN to cropthe requested image to one pixel. Moreover, attackers can usethe parameter "?crop=1.1&format=webp" to exploit the CDNto compress the image into webp format and crop it to onepixel.

--- page 38 ---

5734 33rd USENIX Security Symposium
USENIX Association

--- page 39 ---

15>MSWjsYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvM^f1<A"*-&

--- page 40 ---

15>MSWjsYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvM^f1<A"*-&

--- page 41 ---

15>MSWjsYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvM^f1<A"*-&

--- page 42 ---

15>MSWjsYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvM^f1<A"*-&

--- page 43 ---

·/÷÷1�Ëw#’©v~ù�ý³`q©9£-âºDœèüÞòèÒL

--- page 44 ---

ŽÓ°à!Yµµ‹žƒàE;j$’‡�Öm8xùÔ˜ÛùX#ŽAj

--- page 45 ---

15>MSWjsYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvM^f1<A"*-&

--- page 46 ---

15>MSWjsYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvYmvM^f1<A"*-&
