Attacks/Breaches
8/30/2007
10:00 AM
50%
50%

When Web Servers Attack

Even in a DMZ, a Web server can be a dangerous weapon

6:00 AM -- Web technology has added lots of complexity to security. Aside from issues of design, secure coding, and protecting user information, Web technology gives rise to a number of new threats. One such threat is using the Web server as a proxy to hack other devices on the same network.

Using one machine to scan or attack another isn't a new concept. For instance, take the concept of idle scan, which uses one machine to do reconnaissance on a target using TCP sequencing.

Just this week, I published a paper on a new attack that takes place via a Web server running in a DMZ. That DMZ may have many machines sitting in it -- development machines, database machines, staging machines, QA machines, customer machines, and others -- connected by the same network. In many cases, this is the most important part of the network to penetrate, because often, this is where all of the most important corporate assets live.

DMZs often are improperly built, allowing any machine on the network to connect out to the world. This configuration makes patch management and software downloading easy, but it also opens up those devices to attack.

Because the Web server and the other devices coexist on a common LAN in the DMZ, we can use the Web server to attack the other devices. For example, we can employ image-uploading scripts that pull content from the Internet.

Figure 1:

In this example, instead of requesting something on the Internet, we request something from the intranet -- or the same LAN that the DMZ lives on. Because the request doesn't actually have to be an image, we can ask the Web server to perform PHP remote file includes, command injection, or injection of an xp_cmdshell via SQL injection.

Once the Web server attacks the other machine on the same network, that machine can connect back out to the Internet and make a connection with the attacker. The attacker now has the ability to execute any command he wants on a server in the DMZ.

Although this situation is not common, it exemplifies one of the security oddities presented by modern Web design, which is sometimes done without an understanding of good network design. Simple egress filtering at the firewall -- or insuring the software you use to download images does not allow connections to internal address spaces -- could fix this issue.

The real question is: How many people will take the initiative and fix these vulnerabilities before the bad guys find them?

— RSnake is a red-blooded lumberjack whose rants can also be found at Ha.ckers and F*the.net. Special to Dark Reading

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Register for Dark Reading Newsletters
Dark Reading Live EVENTS
INsecurity - For the Defenders of Enterprise Security
A Dark Reading Conference
While red team conferences focus primarily on new vulnerabilities and security researchers, INsecurity puts security execution, protection, and operations center stage. The primary speakers will be CISOs and leaders in security defense; the blue team will be the focus.
White Papers
Video
Cartoon Contest
Write a Caption, Win a Starbucks Card! Click Here
Latest Comment: This comment is waiting for review by our moderators.
Current Issue
Security Vulnerabilities: The Next Wave
Just when you thought it was safe, researchers have unveiled a new round of IT security flaws. Is your enterprise ready?
Flash Poll
[Strategic Security Report] Assessing Cybersecurity Risk
[Strategic Security Report] Assessing Cybersecurity Risk
As cyber attackers become more sophisticated and enterprise defenses become more complex, many enterprises are faced with a complicated question: what is the risk of an IT security breach? This report delivers insight on how today's enterprises evaluate the risks they face. This report also offers a look at security professionals' concerns about a wide variety of threats, including cloud security, mobile security, and the Internet of Things.
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2017-0290
Published: 2017-05-09
NScript in mpengine in Microsoft Malware Protection Engine with Engine Version before 1.1.13704.0, as used in Windows Defender and other products, allows remote attackers to execute arbitrary code or cause a denial of service (type confusion and application crash) via crafted JavaScript code within ...

CVE-2016-10369
Published: 2017-05-08
unixsocket.c in lxterminal through 0.3.0 insecurely uses /tmp for a socket file, allowing a local user to cause a denial of service (preventing terminal launch), or possibly have other impact (bypassing terminal access control).

CVE-2016-8202
Published: 2017-05-08
A privilege escalation vulnerability in Brocade Fibre Channel SAN products running Brocade Fabric OS (FOS) releases earlier than v7.4.1d and v8.0.1b could allow an authenticated attacker to elevate the privileges of user accounts accessing the system via command line interface. With affected version...

CVE-2016-8209
Published: 2017-05-08
Improper checks for unusual or exceptional conditions in Brocade NetIron 05.8.00 and later releases up to and including 06.1.00, when the Management Module is continuously scanned on port 22, may allow attackers to cause a denial of service (crash and reload) of the management module.

CVE-2017-0890
Published: 2017-05-08
Nextcloud Server before 11.0.3 is vulnerable to an inadequate escaping leading to a XSS vulnerability in the search module. To be exploitable a user has to write or paste malicious content into the search dialogue.