Security & Mobility Now
Security is top-of-mind everywhere, especially right here where Juniper experts share their thoughts on the latest security breakthroughs and product advancements
JUNOSRob

NoSQL Injection: AWS Hosting

by Juniper Employee ‎07-05-2012 09:00 AM - edited ‎07-05-2012 11:04 AM

As a follow up to my other NoSQL injection blog I wanted to take a quick survey of an AWS public IPv4 subnet and how many hosts were listening. I choose a block of IP addresses and then did a scan across all of them to see if they were listening for MongoDB or Redis. I did each scan on separate days and I only scanned for one service at a time. Through the scan I saw 45 hosts openly running MongoDB and only 2 running Redis. None of the hosts had authentication or SSL enabled for the service. While the scan covered 16 million IP addresses, finding any open service would be a bad thing as the impact can be severe.

 

If an attacker were to utilize these open services they could do many “bad things”. Besides the obvious, data theft of information in the database, an attacker could also use the database to host malicious or illegal software.

On AWS the usage of public IP addresses and the actual availability of hosts widely varies. Anyone can sign up for AWS and immediately start initializing hosts. This includes the use of public IP addresses. Because of this it is highly unpredictable for what is available in the address block. Its not uncommon for a developer to start up a system and use it only for a few hours of testing. But I would not be surprised to see someone or a series of bots constantly scanning the AWS IP blocks for available services to exploit.

 

Solving this problem is fairly simple. By default all inbound traffic to AWS instances is blocked leaving you secure. For any of the services that were left open, it was done so by the choice of the administrator that configured the host. If you choose to open up services to the Internet, restrict them to only the hosts that are required or at least to your source subnet if your not sure. For AWS you can also utilize VPCs, or virtual private clouds, for security. VPCs allow you to create a private network only accessible to yourself. You can even setup an IPSec VPN to connect into the VPC to allow for secure transport of data.

 

When working with any open service on the Internet you should always expect the worst. If something is on the Internet expect people and or bots to find it and hammer away at it. Especially in a place where the IP addresses are assigned to a cloud provider, people know that services are hosted on those addresses, so do your best to protect whatever you are hosting.


 

Comments
by Paul Aan(anon) on ‎07-10-2012 05:01 AM

Cool article!

Luckly that I did take care these security issue on the first time to approach new technologies.

by Juniper Employee on ‎07-10-2012 10:53 AM

Thanks! The availability of the services widely varies. From testing a few different times we saw that various bots/scanners found new services on AWS in a matter of minutes. So even if you put up a service for a short time it has a good chance of getting seen and potentially exploited. 

Post a Comment
Be sure to enter a unique name. You can't reuse a name that's already in use.
Be sure to enter a unique email address. You can't reuse an email address that's already in use.
Type the characters you see in the picture above.Type the words you hear.
About Security & Mobility Now

Discussing a wide range of topics impacting enterprises and data center security.

Subscribe to Security & Mobility Now RSS Icon

Our Bloggers

Steve Hanna
Distinguished Engineer

Profile | Subscribe

Ashwin Krishnan
Director, Product Management

Profile | Subscribe

Oliver Tavakoli
CTO, SBU

Profile | Subscribe

Karim Toubba
VP, Product Marketing

Profile | Subscribe

Kevin Kennedy
Senior Director,
Product Management

Profile | Subscribe

Daniel V. Hoffman, CISSP, CEH, CHFI
Chief Mobile Security Evangelist

Profile | Subscribe

Kyle Adams
Senior Software Engineer

Profile | Subscribe

Tamir Hardof
Director, Product Marketing

Profile | Subscribe

Johnnie Konstantas
Director, Product Marketing

Profile | Subscribe

Galina Pildush
Product Line Engineer

Profile | Subscribe

Bill Pfeifer
Product Line Engineer

Profile | Subscribe

Rod Bachelor
Product Line Manager

Profile | Subscribe

Ashutosh Thakur
Product Line Manager

Profile | Subscribe

Stefan Fouant
Technical Trainer

Profile | Subscribe

Seema Kathuria
Product Marketing Manager

Profile | Subscribe

Erin O'Malley
Product Marketing Manager

Profile | Subscribe

Karl Lynn
Security Research Engineer

Profile | Subscribe

Gajraj Singh
Director, Product Marketing

Profile | Subscribe

Kenneth Tom
Senior Product Marketing Manager

Profile | Subscribe

Labels
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.