New Cache Key Injection Attack Lets Hackers Bypass Access Controls and Poison Nginx Caches
Researchers found a cache key injection flaw in Nginx that lets attackers bypass access controls and execute stored cross-site scripting attacks.
Overview
Security researchers have identified a new attack method called cache keyThe secret value that locks or opens a message injection that allows hackersA person who explores and manipulates computer systems, either as a criminal intruder or a security researcher to bypass access controlsThe rules and checks that decide which users or programs are allowed to view or change a resource on Nginx web serversA computer or program on a network that stores data and responds to requests from client devices. This technique exploitsA piece of code or technique that uses a software flaw to break into or crash a system a flaw where the server creates cache keys by joining different request values together without clear separators between them. Because these values are not separated, two different requests can accidentally create the same key, causing the server to serve the wrong cached page. This issue affects organizations that use Nginx to speed up their websites by storing copies of pages for quick retrieval. The attack can expose sensitive data, cause the website to crash, or inject malicious code into the pages that users see. Any organization using Nginx with this specific configurationA text file that stores settings, network addresses, and options for how a program or server runs is at risk of having their cached content manipulated by an attacker.
Terms in this story
- Key
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- Hackers
- A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
- Access Controls
- The rules and checks that decide which users or programs are allowed to view or change a resource. Even after a user logs in, access control determines whether that regular customer account can only view its own profile or accidentally read every other customer's records. Security+ objective 2.5 lists the term
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- exploits
- A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
- configuration
- A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
- cache poisoning
- Tricking a DNS resolver or web cache into storing a fake response and serving it to other visitors. When an attacker succeeds at cache poisoning on a shared DNS server or CDN, thousands of users who ask for a real website get handed the attacker's malicious page instead.
- denial-of-service
- An attack that floods or crashes a server or network so real users cannot reach it. An attacker can cause a denial-of-service either by overwhelming a website with junk traffic or by sending a single malformed request that triggers a crash bug. Security+ objective 2.4 lists the term
- stored cross-site scripting
- A cross-site scripting flaw where malicious script is saved on the server and served to later visitors. In stored cross-site scripting, an attacker posts a booby-trapped comment on a forum or profile page so the script runs automatically in every reader's browser.
- cross-site scripting
- A web flaw where an attacker sneaks malicious script into a page that other visitors' browsers run. If a forum or comment box shows user text without filtering out script tags, an attacker can use cross-site scripting to steal session cookies from anyone who views the page. Security+ objective 2.3 lists the term
- cookies
- A small piece of text that a website asks your browser to store and return on later visits. Online stores and portals use a cookie to remember who is logged in or what is in a shopping cart, which is why infostealer malware targets the browser database where cookies are stored.
- proxy
- An intermediate server that forwards network requests between a client and a destination server. Companies use a proxy to filter employee web traffic, while attackers route their traffic through chains of proxy servers to hide their real IP address.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the GBHackers website. Cite the article, not this page.
Read the full article on GBHackers (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Research and reports
"Security researchers have unveiled a cache poisoning technique..." Found by reading the article; these exact words are in it - Security+ 2.3 Explain various types of vulnerabilities.
"......and potentially execute stored cross-site scripting (XSS) attacks against vulnerable Nginx deployments. Research..." Found in the opening sentences - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......access controls, expose cached sensitive pages, trigger denial-of-service conditions, and potentially execute stored cross-site scripting..." Found in the opening sentences - Security+ 2.5 Explain the purpose of mitigation techniques used to secure the enterprise.
"......Cache Key Injection Attack Lets Hackers Bypass Access Controls and Poison Nginx Caches..." Found in the headline - Security+ 4.7 Explain the importance of automation and orchestration related to secure operations.
"......denial-of-service conditions, and potentially execute stored cross-site scripting (XSS) attacks against vulnerable Nginx deployments. Research..." Found in the opening sentences - Security+ 5.1 Summarize elements of effective security governance.
"......Cache Key Injection Attack Lets Hackers Bypass Access Controls and Poison Nginx Caches..." Found in the headline - CYBR 101 week 10: the web, cookies, phishing, incident response and logs
"......trigger denial-of-service conditions, and potentially execute stored cross-site scripting (XSS) attacks against vulnerable Nginx deployments. Research..." Found in the opening sentences - CYBR 101 week 11: penetration testing, OSINT, MITRE ATT&CK and hacking back
"Security researchers have unveiled a cache poisoning technique called..." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"Security researchers have unveiled a cache poisoning technique called cache key injection that lets..." Found in the opening sentences - CYBR 101 week 8: networks, ports, DNS and packets
"......access controls, expose cached sensitive pages, trigger denial-of-service conditions, and potentially execute stored cross-site scripting..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of web applications and their common attack vectors.
"...bypass access controls, expose cached sensitive pages..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of web application vulnerabilities.
"...trigger denial-of-service conditions..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role