OWASP O2 Platform Blog

Using WatiN as a browser automation engine

When I was looking for a Browser Automation engine for O2, I looked at a bunch of option (including Selenium) and ended up using WatiN which is a .NET port of Watir

The result is great, specially after wrapping most WatiN functionality in O2-driven .NET Extension methods. Here is an example of an UnitTest that I wrote using WatiN (in this case the admin section VIEWSTATE password disclosure)

public void vulnerability_Sensitive_Information_Disclosure_in_Admin_Section()
    ie.link("Admin Section").flash().click();                    

    var response = ie.viewState().ViewState_Values[12];

Here are more examples on HacmeBank and here is a video that shows it in action

February 28, 2011 - Posted by | IE Automation, WatiN

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: