Is AJAX and cross-site scripting safe ?
By Samir on Sep 27 2006 [Wed] | EMail This Post | 952 ViewsQuick answer is NO.
I have been looking into web 2.0 and AJAX lately. AJAX is great. No doubt about that. Everyone loves it and it does provide killer experience for users. But there is cost of it. AJAX and other web 2.0 technologies allows use of cross-site scripting and XMLHttpRequests, which can open up yet another door for vulnerabilities.
Cross-site scripting vulnerabilities are now far more attractive targets than more notorious bugs such as buffer overflows, according to new figures from Mitre, a U.S. government-funded research organization.
Buffer overflows have long been one of the most common types of bugs attacked by malware, with Intel and Advanced Micro Devices (AMD) even building in hardware support for an anti-buffer overflow technology called NX (No Execute) or XD (Execution Disable).
But a shift is under way, according to Mitre’s findings. While buffer overflows affect executable files written in languages such as C, the increasing popularity of cross-site scripting (XSS) bugs indicates attackers are looking more at programming languages typically used for Web applications, such as Java, .Net and PHP.
Client-side scripting languages generally include same-origin policies, which allow interaction between Web objects and pages only as long as they come from the same domain and over the same protocol. XSS bugs allow malicious Web sites to find ways around these policies, potentially accessing sensitive data in other objects or browser windows.
The second most popular type of attack was SQL injection, which allows attackers to execute malicious SQL statements within a database. Third most popluar were PHP “include” vulnerabilities, which can allow attackers to execute arbitrary script on a server by including them in an existing script.
Out of about 20,000 reported vulnerabilities recorded by Mitre so far this year, 21.5% were XSS, 14% were SQL injection and 9.5% were PHP includes. Buffer overflows came in fourth, at 7.9%.
Filed under General, Reviews, TechZone


