The Learning Center touches 50
We posted our 50th question on the new Plynt Learning Center today - on buffer overflows in web apps. I quite like this one, so posting it here directly :)
Why are buffer overflows unlikely in web applications?
There are two reasons why we don’t see buffer overflows in web applications.
First, to discover a buffer overflow, an attacker has to either get access to the source code, or get local access to the system on which the application is running. It’s by checking the app’s response to long inputs and tracing the execution that an attacker learns if it’s vulnerable. Web apps are usually attacked remotely and the adversaries rarely see the source code. It then becomes very difficult to discover a buffer overflow in a web app.
Secondly, to perform a buffer overflow, the compiler should let data be stored into memory that has not been properly allocated. Languages like Java do not support that (unlike C, C++). So it’s impossible to do buffer overflows in Java apps anyway. FAQS.org explains this well here.
On a cautionary note, there have been instances of PHP library functions (written in C themselves) being vulnerable to buffer overflows. Here’re two examples [1, 2]. So open source PHP web apps need to take special care against buffer overflows when they call unsafe functions.
Jeremiah Grossman wrote a lucid article de-bunking buffer overflows in web applications: Myth-Busting Web Application Buffer Overflows Do check that out.
Plynt provides penetration testing and code review services to clients worldwide. If you are interested, please contact us for a quote. We’ll get back to you within one working day.Add yours.closed for this post.
Monthly Archives
- June 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- May 2008
- April 2008
- March 2008
- January 2008
- December 2007
- November 2007
- April 2007
- March 2007
- February 2007
- January 2007
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
Syndication
You can read full entries of Palisade Blog using an RSS reader. Use this link —




