Reports of Turkey border guards killing Syrians denied AL JAZEERA ENGLISH (AJE)(cached at December 6, 2016, 11:30 pm)

Senior Turkish official rejects accusations that dozens of Syrian refugees were killed this year trying to cross border.
Reports of Turkey border guards killing Syrians denied AL JAZEERA ENGLISH (AJE)(cached at December 6, 2016, 11:30 pm)

Senior Turkish official rejects accusations that dozens of Syrian refugees were killed this year trying to cross border.
Settlement in Tampa General Hospital Insider Breach Lawsuit (InfoRiskToday) SANS ISC SecNewsFeed(cached at December 6, 2016, 11:30 pm)

Settlement in Tampa General Hospital Insider Breach Lawsuit (InfoRiskToday) SANS ISC SecNewsFeed(cached at December 6, 2016, 11:30 pm)

Google Patches 74 Vulnerabilities in Android (SecurityWeek) SANS ISC SecNewsFeed(cached at December 6, 2016, 11:30 pm)

Google Patches 74 Vulnerabilities in Android (SecurityWeek) SANS ISC SecNewsFeed(cached at December 6, 2016, 11:30 pm)

SANS 2016 Security Analytics Survey (SANS Reading Room) SANS ISC SecNewsFeed(cached at December 6, 2016, 11:30 pm)

SANS 2016 Security Analytics Survey (SANS Reading Room) SANS ISC SecNewsFeed(cached at December 6, 2016, 11:30 pm)

T-Mobile CFO: Less Regulation, Repeal of Net Neutrality By Trump Would Be 'Positive Slashdotby BeauHD on business at January 1, 1970, 1:00 am (cached at December 6, 2016, 11:04 pm)

An anonymous reader quotes a report from TmoNews: T-Mobile CFO Braxton Carter spoke at the UBS Global Media and Communications Conference in New York City, and he touched a bit on President-elect Donald Trump and what his election could mean for the mobile industry. Carter expects that a Trump presidency will foster an environment that'll be more positive for wireless. "It's hard to imagine, with the way the election turned out, that we're not going to have an environment, from several aspects, that is not going to be more positive for my industry," the CFO said. He went on to explain that there will likely be less regulation, something that he feels "destroys innovation and value creation." Speaking of innovation, Carter also feels that a reversal of net neutrality and the FCC's Open Internet rules would be good for innovation in the industry, saying that it "would provide opportunity for significant innovation and differentiation" and that it'd enable you to "do some very interesting things."

Read more of this story at Slashdot.

Some Children's Headphones Raise Concerns of Hearing Loss, Report Says Slashdotby msmash on hardware at January 1, 1970, 1:00 am (cached at December 6, 2016, 10:34 pm)

Some headphones marketed for children may not restrict enough noise for young ears. From a report on ABC: The Wirecutter, a technology products review website (owned by the New York Times), tried out 30 different children's headphones for style, fit and safety by using both a plastic model ear and a few real children. "There's no governing board that oversees this," Lauren Dragan, the Headphone Editor at The Wirecutter, told "Good Morning America" in an interview that aired today. Dragan added that the headphones for children all claim to limit volume to around 85 decibels. Sound below the 85 decibel mark for a maximum of eight hours is considered safe, according to the World Health Organization. The Wirecutter report found that some of these headphones emit sound higher than the 85 decibel mark. The full report here.

Read more of this story at Slashdot.

Some Children's Headphones Raise Concerns of Hearing Loss, Report Says Slashdotby msmash on hardware at January 1, 1970, 1:00 am (cached at December 6, 2016, 10:34 pm)

Some headphones marketed for children may not restrict enough noise for young ears. From a report on ABC: The Wirecutter, a technology products review website (owned by the New York Times), tried out 30 different children's headphones for style, fit and safety by using both a plastic model ear and a few real children. "There's no governing board that oversees this," Lauren Dragan, the Headphone Editor at The Wirecutter, told "Good Morning America" in an interview that aired today. Dragan added that the headphones for children all claim to limit volume to around 85 decibels. Sound below the 85 decibel mark for a maximum of eight hours is considered safe, according to the World Health Organization. The Wirecutter report found that some of these headphones emit sound higher than the 85 decibel mark. The full report here.

Read more of this story at Slashdot.

Trump wants to cancel Boeing's Air Force One contract AL JAZEERA ENGLISH (AJE)(cached at December 6, 2016, 10:30 pm)

'Costs are out of control,' says US president-elect who wants to cancel 'ridiculous' order on new planes.
Trump wants to cancel Boeing's Air Force One contract AL JAZEERA ENGLISH (AJE)(cached at December 6, 2016, 10:30 pm)

'Costs are out of control,' says US president-elect who wants to cancel 'ridiculous' order on new planes.
U.S. lawmaker: Sony hack may have inspired Russian election hacking (Yahoo Security) SANS ISC SecNewsFeed(cached at December 6, 2016, 10:30 pm)

Attacking NoSQL applications, (Tue, Dec 6th) SANS Internet Storm Center, InfoCON: green(cached at December 6, 2016, 10:30 pm)

In last couple of years, the MEAN stack (MongoDB, Express.js, Angular.js and Node.js) became the stack of choice for many web application developers. The main reason for this popularity is the fact that the stack supports both client and server side programs written in JavaScript, allowing easy development.

The core database used by the MEAN stack, MongoDB, is a NoSQL database program that uses JSON-like documents with dynamic schemas allowing huge flexibility.

Although NoSQL databases are not vulnerable to standard SQL injection attacks, they can be exploited with various injection vulnerabilities depending on creation of queries which can even include user-defined JavaScript functions.

This diary is actually based on a real penetration test I did on a MEAN based application that initially looked completely safe. So let">db.products.find( { qty: { $gt: 25 } } )

This is important for us as penetration testers since we can potentially influence how a query will be executed and we all know that as long as we can modify input parameters we can make the database do whatever we want it to do (or close enough).

Notice here that JSON, which is used to format queries, has different dangerous characters than those we know from SQL databases: here we care about characters / { } :

Easy development with MEAN

One of the best things of the MEAN stack is that it is very easy and simple to develop web applications. After setting some basic configuration, it is trivial to create a route to our own JavaScript function that will handle certain requests. Let">app.get(/documents/:id">a9577050-31cf-11e6-957b-43a5e81bf71e) and search for it in MongoDB.
Notice here that, although the URL looks static, it is not static at all the GUID here is a parameter that is later used in a function. A question for you: what will your web scanner of choice try to do with this query? Will it insert a ">db.collection(documents">var searchparam = JSON.parse({ \friendly:\ + param + }">db.collection(documents">id parameter taken from the HTTP body) into a JSON string.
Now, as you can probably presume, this is treated differently by MongoDB.

Exploitation time

In case above we can actually manipulate the query quite a bit. Let">$ curl http://vulnsite/documents/ -d id={ \\$ne\: null }">{ $regex: ^a">{ friendly: { $regex: ^a} }

And this will retrieve the first document whose GUID starts with the character a. Nice! We can now retrieve things character by character and do not have to brute force it any more. And just in case we have some kind of WAF (does your WAF understand">{ friendly: { $in: [ /^a/ ] } }

This will result in the same document.

As we can see, NoSQL databases and applications that use them can also be quite vulnerable to injection attacks, so we should never underestimate what an attacker can do that can manipulate input parameters: we should always properly filter and sanitize them.

MongoDB actually supports quite a bit of search operators that can be used in this example you can read more about them at https://docs.mongodb.com/manual/reference/operator/

As NoSQL databases are becoming more popular, I am sure that we will see new and innovative attacks against them. Interesting time is coming for sure!

--
Bojan
@bojanz
INFIGO IS

(c) SANS Internet Storm Center. https://isc.sans.edu Creative Commons Attribution-Noncommercial 3.0 United States License.