This blog is created to keep track of my activities and place holder for sharing. Enjoy!
Friday, January 13, 2012
Password extraction from Ajax/DOM/HTML5 routine – Poor programming calls
Saturday, January 07, 2012
Blind WebSQL and Storage extraction for HTML5 Apps
Wednesday, January 04, 2012
Global Sensitive Information Extraction from DOM – post DOM based XSS
Thursday, December 22, 2011
Cross Origin Resource Jacking (CORJacking) - DOM based attack vector
Here is a small DEMO of CORJacking with Flash resource.
Thursday, December 08, 2011
Top 10 HTML5 Threats & Attack Vectors
Read full article here (net-security.org)
Top 10 Attack Vectors
Tuesday, December 06, 2011
OWASP and Blackhat (Movie and Paper) - HTML5, XHR and DOM Security
Next Generation Web Attacks - HTML 5, DOM (L3) and XHR (L2) with Shreeraj Shah, Blueinfy Solutions Pvt. Ltd. from OWASP on Vimeo.
Paper presented at Blackhat USA 2011
Friday, December 02, 2011
Double eval() for DOM based XSS
Monday, November 28, 2011
CSRF with JSON – leveraging XHR and CORS
Wednesday, March 30, 2011
Training at Syscan - Web Hacking – Threats & Countermeasure
Web Hacking – Threats & Countermeasure
Introduction and adaptation of new technologies like Ajax, Rich Internet Applications and Web Services has changed the dimension of Web Hacking and Security. We are witnessing new ways of hacking and exploiting web based applications and it needs better understanding of technologies to perform penetration testing and assessment of web security. The course is designed by the author of “Web Hacking: Attacks and Defense”, “Hacking Web Services” and “Web 2.0 Security – Defending Ajax, RIA and SOA” bringing his experience in application security and research as part of curriculum to address new challenges for pen-testers, consultants, auditors and QA teams. Web Hacking 2.0 is extensively hands-on class with real life challenges and lab exercises. Participants would be methodically exposed to various different attack vectors and exploits. The learning sessions feature real life cases, hands one exercises, new scanning tools and exploits.Visit syscan training page - here
Wednesday, March 23, 2011
HTML 5, XHR (L2) and DOM (L3) - Top 10 Attacks

Top 10 Attack Vectors
1. XSS abuse with tags and attributes
2. DOM based XSS and Redirects
3. Stealing from the storage
4. Injecting and Exploiting WebSQL
5. Abusing network API and Sockets
6. CSRF across streams – JSON, AMF and XML
7. Sandbox attacks and ClickJacking
8. Abusing new features like drag-and-drop
9. Botnet/Spynet gets persistent life using WebWorkers
10. Threats to widgets and mashups
Friday, September 24, 2010
DOM Hacking - Paper and Tools
Paper on DOM Hacking
Download
PDF document from here [BlackHat site]
Presentation slides from here [BlackHat site]
DOMScan (Beta)
DOMScan - Scanning and Analyzing DOM
DOMScan is utility to drive IE and capture real time DOM from the browser. It gives access to active DOM context along with JavaScripts. One can observe the DOM in detail using this utility. It has predefined rules to scan DOM. One can run the scan on existing DOM and fetch interesting entry points and calls. It allows tracing through JavaScript variables as well. Using this utility one can identify following vulnerabilities.
• DOM based XSS
• DOM based vulnerable calls
• Source of abuse and external content loading methods
• Possible DOM logic and business layer calls
• Same Origin Bypass calls and usage
• Mashup usage inside DOM
• Widget Architecture review using the tool
Download
DOMTracer (Beta)
DOMTracer - Firefox Plugin (Trace DOM and JavaScript Calls)
The DOM as seen in all the aforementioned cases needs to be analyzed in many aspects. Run-time analysis of the DOM/JavaScript is vital and aids one to look at the calls made during the ‘dynamic DOM manipulation’. The DOMTracer is a Firefox Extension for this same purpose. It has been written using the standard method of writing extensions using the XUL platform and the JavaScript language in majority. This is in beta and we are working on new features.
Download
Thursday, September 23, 2010
HITB - Malaysia
Hacking a Browser’s DOM – Exploiting Ajax and RIA
Web 2.0 applications are using dynamic DOM manipulations extensively for presenting JSON or XML streams in the browser. These DOM calls mixed with XMLHttpRequest (XHR) object are part of client side logic written in JavaScript or part of any other client side technology be it Flash or Silverlight. DOM driven XSS is a sleeping giant in the application code and it can be exploited by an attacker to gain access to the end user’s browser/desktop. This can become a root cause of following set of interesting vulnerabilities – Cross Widget Sniffing, RSS feed reader exploitation, XHR response stealing, Mashup hacking, Malicious code injection, Spreading Worm etc. This set of vulnerability needs innovative way of scanning the application and corresponding methodology needs to be tweaked. We have seen DOM driven XSS exploited in various different popular portals to spread worm or virus. This is a significant threat on the rise and should be mitigated by validating un-trusted content poisoning Ajax or Flash routines. DOM driven XSS, Cross Domain Bypass and CSRF can cause a deadly cocktail to exploit Web 2.0 applications across Internet. This presentation will be covering following important issues and concepts.
* Web 2.0 Architecture and DOM manipulation points
* JavaScript exploits by leveraging DOM
* Cross Domain Bypass and Hacks
* DOM hacking for controlling Widgets and Mashups
* Exploiting Ajax routines to gain feed readers
* Scanning and detecting DOM driven XSS in Web 2.0
* Tools for scanning the DOM calls
* Mitigation strategies for better security posture
Tuesday, April 27, 2010
Thursday, February 25, 2010
Future Trainings and Talks ...
| InfoSecWorld 10 - Orlando Web 2.0 Hacking: Attacks and Defense HANDS-ON
|
| | InfoSecWorld 10 - Orlando Defending Against the Worst Web-Based Application Vulnerabilities of 2010 |
| | HackInTheBox - Dubai Web Application Security – Threats & Countermeasures |
Sunday, October 25, 2009
SecurityByte & OWASP event in India

Blueinfy is conducting one day workshop and sharing research at this event.
Cloud Hacking – Distributed Attack & Exploit Platform
We are witnessing applications, networks and infrastructures moving towards cloud computing. These clouds are emerging as a common platform to perform distributed attacks. Web/Enterprise 2.0 technologies are adding a new dimension to compromise cloud security. In this talk following topics will be covered with real life cases, tools and demonstrations.
- Fingerprinting and Footprinting clouds and resources
- Clouds internals and discoveries
- Cloud applications’ internal APIs and session hijacking & fixations
- Privilege and authorization escalations in cloud computing
- Network and Operating Systems hacks inside clouds
- Exploiting client side of cloud users
- Attack methods and exploits
- Impact analysis of cross domain access inside cloud - Twitter, Facebook, LinkedIn, MySpace etc.
- Google’s model and security threats – lessons to learn
- Live hacks and demos
- Tools to take away
Advanced Web Hacking – Securing Ajax, RIA and SOA
Introduction and adaptation of new technologies like Ajax, Rich Internet Applications and Web Services has changed the dimension of Application Hacking. We are witnessing new ways of hacking web-based applications and it needs better understanding of technologies to secure applications. The only constant in this space is change. In this dynamically changing scenario in the era of Web 2.0 it is important to understand new threats that emerge in order to build constructive strategies to protect corporate application assets. Application layers are evolving and lots of client side attack vectors are on the rise like Ajax based XSS, CSRF, Widget injections, RSS exploits, Mashup manipulations and client side logic exploitations. At the same time various new attack vectors are evolving around SOA by attacking SOAP, XML-RPC and REST. It is time to understand these advanced attack vectors and defense strategies.
Research and Talk
Friday, October 02, 2009
Web 2.0 Hacking class at DeepSec from Blueinfy
Visit here for detail on event
Thursday, October 01, 2009
Secure Coding Class in Singapore
Description
Enterprise application source code, independent of languages and platforms, is a major source of vulnerabilities. The class is designed and developed to focus on enterprise architecture and application analytics to discover vulnerabilities. One of the CSI surveys on vulnerability distribution suggests that in 64% of cases, a vulnerability crops up due to programming errors and in 36% of cases, due to configuration issues. We will be covering analysis techniques, with tools, for assessment and review of enterprise application source code. Enterprise 2.0 and mashups, along with other different Web 2.0 concepts, reinforced by hands-on experience, will help in understanding next generation application requirements.
It is imperative to know source code review methodologies and strategies for analysis. The emphasis of the class would be to develop a complete understanding of source code analysis, audit methodologies, techniques and tools. Knowledge gained would help in analyzing and securing enterprise applications at all different stages - architecture, design and/or development. The course is designed by the author of "Web Hacking: Attacks and Defenses", "Hacking Web Service" and "Web 2.0 Security - Defending Ajax, RIA and SOA", bringing his experience in application security and research to the curriculum. Special focus is given to compliance and Top-25 errors for enterprise applications.
This class is hands-on and needs laptops to implement its numerous exercises designed to run hand-in-hand with their concepts. The class features real life cases, hands-on exercises, code scanning tools and defense plans. Participants would be methodically taken down to the source code level and exposed to the possible flaws in architecture, design and coding practices. The class would then focus on the proper ways of writing secure code and analyzing the code base.
Visit for full detail
Tuesday, September 29, 2009
Annual Conference IT Audit & Controls 2009
W3 Conducting an Enterprise Application Audit DEMO
Date: Monday, 12 October 2009
Time: 9am - 5pm
The focus of this workshop is to analyze applications within an enterprise architecture to discover vulnerabilities. You will learn scanning, auditing and source code review methodologies – all critical tools to enable application analysis. The workshop features real-life cases, demonstrations, scanning tools and defense plans.
This workshop will cover:
• The most common vulnerabilities and proven methodologies for their detection
• Auditing for compliance and standards like PCI-DSS, OWASP Top 10 and CVE/CWE Top 25 errors
• Common programming errors and source-code scanning methodologies
• Conducting an architecture and design audit to ensure security
• Securing SDLC with best practices
• Effective scanning tools and approaches
• Mitigation strategies and frameworks
5 Auditing and Securing Web/Enterprise 2.0 Applications and Architectures
Date: Tuesday, 13 October 2009
Time: 10:30am - 12pm
• Web 2.0 threats, hacks and incidents
• Auditing and assessing the security of Web 2.0 architectures and design
• Web 2.0 vulnerabilities and mitigation
• Discovering JSON-based SQL injections, XML-driven XSS, CSRF 2.0, RSS feed injections, widget exploits, mashup hacks and more
• Auditing Web 2.0 source code and frameworks
• New tools, methodologies and audit strategies for Web 2.0
Monday, September 28, 2009
OWASP - Belgium chapter talk...
PDF of presentation - here (http://www.owasp.org/index.php/File:Shreeraj_OWASP_Belgium.pdf)









