nodeJS and Web APIs
74.4K views | +4 today
nodeJS and Web APIs
about node.js and Web APIs
Your new post is loading...
Your new post is loading...

Popular Tags

Scooped by Srdjan Strbanovic
March 19, 2014 5:02 PM
Scoop.it!

Bypassing web application firewalls using HTTP headers

Bypassing web application firewalls using HTTP headers | nodeJS and Web APIs | Scoop.it
Web application firewalls (WAF’s) are part of the defense in depth model
for web applications. While not a substitute for secure code, they offer
great options for filtering malicious input. Below is a story from a
real assessment where an enterprise deployment of such a device was
vulnerable to being bypassed. The vulnerability is one of a bad design
and/or configuration and as an attacker it was very useful. Read below
to find out more! ---------- Testing the security of an app in its
production deployment is important. While this app might have been
assessed in development or QA, when you deploy live you might introduce
new attack vectors due to configuration issues. Such was the case with
our fictional customer Heisenberg Bank. While firing up the assessment I
quickly ran into issues fuzzing all the application points I usually go
after first, see below: Well… that’s both humorous and unsatisfying.
After a bit of investigating I knew that I was up against a WAF that was
triggering on a few things: Rapid succession of POST request to
formsRapid succession of GET requests to *most* pagesLack of a CSRF
token*Bad* characters After one of these conditions were met it would
block me with said error code for 5 minutes. So, how to proceed? The
normal method of encoding payloads to bypass WAF regexes is hit or miss
these days. WAF’s have come a long ways. Still, I gave it a shot, no
dice. While waiting in one of my *timeouts* I decided to do some WAF
research. While going through several WAF implementation guides I found
a forum that mentioned integrating a WAF with your caching
service/device. It described a user’s trouble with standing up something
*like* Varnish or a proxy/accelerator appliance running on a different
host, and that the WAF was blocking that server. Of course the vendor
promptly replied that you can whitelist devices based on IP, allowing
them not be inspected by the WAF. At this point, everything is still
fine. Below is where things went bad for Heisenberg Bank and the WAF.
After reading more, I found that instead of doing a real lookup on
incoming requests (something akin to REMOTE_ADDR or something similar),
the WAF was looking at a *custom* HTTP header. This is how it’s supposed
to work if a user or other server contacts the WAF: Instead, the WAF
checks the requests HTTP Headers. The specific implementation was
checking the request for the header X-originating-IP. So, who would this
WAF be configured to trust? In this instance the default was… Itself!
Since I control all HTTP requests sent out of my browser I can easily
add this header fooling the WAF to think I was itself, allowing me to
bypass its protections completely: After further research there are
several headers that can be defined for WAF’s to whitelist (instead of
doing a proper lookup):
X-forwarded-forX-remote-IPX-originating-IPx-remote-addr There is also a
hit-list of *types* of addresses/configurations that *might* be
whitelisted/vulnerable. (some fictitious examples below): After figuring
out the bypass, the rest of the assessment yielded many other
vulnerabilities and was expedited due to the fact that I could bypass
the WAF. It was as simple as having my inline interception proxy add the
header to all requests. A simple solution is having your frontend proxy
strip all *non-standard* headers but then you’re still playing the cat
and mouse game of blacklisting. Better yet, consult with your WAF vendor
and see what headers are accepted and defaults are enabled. Then find a
solution that doesn’t rely on information that the attacker can forge.
In general you can also audit the security of HTTP headers on your site
using Gethead, a project from our dynamic testing team’s leader, Nathan
LaFollette (@httphacker). As always, feel free to reach out with any
questions via Twitter (@jhaddix) or via email (jason.haddix@hp.com).
Happy hacking! -------- Here at FoD we have a premium tier of our
dynamic application testing service. In this tier we give the app a
thorough grokking with one of our senior web penetration testers and our
industry leading tools. It goes through an extensive methodology driven
assessment. This vulnerability is akin to something that would show up
on that tier of test. To learn more about Fortify on Demand’s dynamic
assessments for web applications or mobile applications, visit the link
below: hp.com/go/fortifyondemand
No comment yet.
Scooped by Srdjan Strbanovic
March 13, 2014 4:53 PM
Scoop.it!

Is TLS Fast Yet?

Is TLS Fast Yet? | nodeJS and Web APIs | Scoop.it
TLS has exactly one performance problem: it is not used widely enough. Everything else can be optimized.
No comment yet.
Scooped by Srdjan Strbanovic
March 13, 2014 4:45 PM
Scoop.it!

node framework: mach

node framework: mach | nodeJS and Web APIs | Scoop.it
mach - A better way to build web servers in node.js
No comment yet.
Scooped by Srdjan Strbanovic
March 13, 2014 12:18 PM
Scoop.it!

Node.js and Hapi - Creating a REST API

A simple to tutorial to help get started with Hapi. Goes over building a basic application and the start of a real RESTful API.
No comment yet.
Scooped by Srdjan Strbanovic
March 12, 2014 6:03 PM
Scoop.it!

29 Node.js Frameworks for Fast Web Application Development

29 Node.js Frameworks for Fast Web Application Development | nodeJS and Web APIs | Scoop.it
Node.js has great community support, there are more than sixty thousands of modules written and many frameworks available to be used. Here we have chosen 29 best Node.js frameworks to speed up your web application development by providing robust set of features and also enhance the ease of programming with MVC programming pattern.
No comment yet.
Scooped by Srdjan Strbanovic
March 11, 2014 3:59 PM
Scoop.it!

From Jekyll site to Unikernel in fifty lines of code. | Amir Chaudhry

From Jekyll site to Unikernel in fifty lines of code. | Amir Chaudhry | nodeJS and Web APIs | Scoop.it
No comment yet.
Scooped by Srdjan Strbanovic
March 9, 2014 10:34 AM
Scoop.it!

Solving the 4 Problem Categories of Web Development with the MEAN Stack

Solving the 4 Problem Categories of Web Development with the MEAN Stack | nodeJS and Web APIs | Scoop.it
Valeri Karpov from MongoDB provides e a high-level overview of how the MEAN stack, and in particular Node.js and npm, solve each of these pain points.
No comment yet.
Scooped by Srdjan Strbanovic
March 8, 2014 9:51 PM
Scoop.it!

Open sourcing kraken.js | PayPal Engineering Blog

Open sourcing kraken.js | PayPal Engineering Blog | nodeJS and Web APIs | Scoop.it
No comment yet.
Scooped by Srdjan Strbanovic
March 8, 2014 10:33 AM
Scoop.it!

Portable Class Libraries + HttpClient: So Happy Together!

Portable Class Libraries + HttpClient: So Happy Together! | nodeJS and Web APIs | Scoop.it
I was recently on Channel 9’s VS Toolbox talking about Xamarin and Portable Class Libraries where I showed of an expense taking application called My Expenses. This little app uses a portable class...
No comment yet.
Scooped by Srdjan Strbanovic
March 19, 2014 9:31 AM
Scoop.it!

Local IP discovery with HTML5 WebRTC: Security and privacy risk?

No comment yet.
Scooped by Srdjan Strbanovic
March 14, 2014 4:00 PM
Scoop.it!

10 Habits of a Happy Node Hacker

No comment yet.
Scooped by Srdjan Strbanovic
March 13, 2014 4:53 PM
Scoop.it!

Security/Server Side TLS - MozillaWiki

Security/Server Side TLS - MozillaWiki | nodeJS and Web APIs | Scoop.it
No comment yet.
Scooped by Srdjan Strbanovic
March 13, 2014 4:48 PM
Scoop.it!

WebdriverJS - Selenium 2.0 javascript bindings for nodejs

WebdriverJS - Selenium 2.0 javascript bindings for nodejs | nodeJS and Web APIs | Scoop.it
A nodejs bindings implementation for selenium 2.0/webdriver.
No comment yet.
Scooped by Srdjan Strbanovic
March 13, 2014 10:42 AM
Scoop.it!

Sweet.js Tutorial #2: Recursive Macros and Custom Pattern Classes

No comment yet.
Scooped by Srdjan Strbanovic
March 11, 2014 5:30 PM
Scoop.it!

Websploit Framework: open source vulnerability scanner | Sicurezza, System | HTML.it

Websploit Framework: open source vulnerability scanner | Sicurezza, System | HTML.it | nodeJS and Web APIs | Scoop.it
No comment yet.
Scooped by Srdjan Strbanovic
March 11, 2014 4:34 PM
Scoop.it!

Inspectlet - Website Heatmaps, Session Recording, Form Analytics

Inspectlet - Website Heatmaps, Session Recording, Form Analytics | nodeJS and Web APIs | Scoop.it
No comment yet.
Scooped by Srdjan Strbanovic
March 10, 2014 11:55 AM
Scoop.it!

Getting Started with Ruby and WebSockets

Getting Started with Ruby and WebSockets | nodeJS and Web APIs | Scoop.it
Getting Started with Ruby and WebSockets
No comment yet.
Scooped by Srdjan Strbanovic
March 8, 2014 10:16 PM
Scoop.it!

A dozen of concepts you should know about Node.js

A dozen of concepts you should know about Node.js | nodeJS and Web APIs | Scoop.it
Node.js is a platform based on the JavaScript Google which is used in the browser Chrome V8 engine. It is intended to facilitate the development of applicat
No comment yet.
Scooped by Srdjan Strbanovic
March 8, 2014 10:39 AM
Scoop.it!

Transitioning Persona to Community Ownership

Transitioning Persona to Community Ownership | nodeJS and Web APIs | Scoop.it
Persona is living proof that federated authentication on the Web can be more safe, usable, and private. With that framework in place, Mozilla has reallocated Persona’s full-time developers to other...
No comment yet.