Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Share Post: Reddit Facebook
Nginx: Server misconfigurations found in the wild that expose websites to attacks
#1
Security researchers at Detectify have discovered a series of middleware misconfigurations in Nginx that could leave web applications vulnerable to attack.
 
Lightweight, modular, [color=var(--theme-link_a)]open source, and with a user-friendly configuration format, Nginx is one of the most widely-used web servers, powering one in three websites globally.[/color]
 
However Detectify, which maintains an automated web application scanner, says this very flexibility makes it easy to make mistakes that could leave a site open to attack.
 
Late last year, the Detectify team [color=var(--theme-link_a)]analyzed almost 50,000 unique Nginx configuration files downloaded from GitHub with Google BigQuery, finding a number of possible misconfigurations that could leave web applications open to attack.[/color]
These issues included issuing root location, unsafe variable use, raw backend response reading, and merge slashes set to off.
Proof of concepts
And, says Frans Rosen, the company’s co-founder and security advisor, many similar misconfigurations have been [color=var(--theme-link_a)]spotted in the wild.[/color]
“A lot of companies nowadays use bug bounties as a way for external security researchers to report security bugs to the company,” Rosen told The Daily Swig.
“This allowed us to identify some of these misconfigurations on live targets and make proof of concepts showing how we utilized the misconfiguration to serve our own content on their main domain.”
 
The team says it has seen an increasing number of hosts using proxy solutions for static content against Google Cloud Storage and AWS S3 on /media/, /images/, /sitemap/, and similar locations, with weak regular expressions allowing HTTP splitting to happen.
 
This bug, says Detectify, was found in the wild multiple times on bug bounty programs.
Dangerous variables
The team also examined other possible misconfigurations that allowed for controlling of a proxied host, accessing internal Nginx blocks, and accessing localhost-restricted Nginx blocks.
 
Rosen says many of these issues weren’t picked up by Gixy, the Nginx configuration static analyzer created by Yandex, when scanning the configuration files.
 
So how safe is middleware generally, and Nginx in particular?
 
“The main idea is that it allows a lot of flexibility and control by utilizing the webserver like this. However due to the fact that it’s really common, these misconfigurations will happen,” says Rosen.
 
“There are some things when configuring Nginx that makes it easy to do wrong. For example, using the variable $uri is dangerous, but $request_uri is safe.
 
“Those things are very easy to do wrong, and it’s not clear when using one or the other if you are okay or not.”


Source
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Kaspersky Ymir: new stealthy ransomware in the wild mrtrout 0 69 11-12-2024 , 08:25 AM
Last Post: mrtrout
  Chinese developers expose data belonging to Android gamers mrtrout 0 718 08-26-2021 , 11:49 PM
Last Post: mrtrout
  Cloud misconfigurations take an average 25 days to fix Bjyda 0 836 02-22-2021 , 10:28 PM
Last Post: Bjyda
  Apple fixes three iOS zero-days exploited in the wild mrtrout 0 1,196 11-06-2020 , 02:47 AM
Last Post: mrtrout
  Do you expose yourself to the public? guardian 3 2,619 05-29-2020 , 02:48 PM
Last Post: Goodfella



Users browsing this thread: 1 Guest(s)