Tuesday, July 19, 2011

VAS (or Quest Authentication Services) and AD

here's an explanation of how it works  12:51 PM
http://blogs.technet.com/b/askds/archive/2009/02/15/test2.aspx

Sunday, July 10, 2011

Google Labs runs a web “hackme” application on Google Apps (infosec)

Google Labs runs a web “hackme” application on Google Apps that is free to use and provides a host of atypical web vulnerabilities to exploit.

https://google-gruyere.appspot.com/

From the website:

This codelab is built around Gruyere /ɡruːˈjɛər/ - a small, cheesy web application that allows its users to publish snippets of text and store assorted files. "Unfortunately," Gruyere has multiple security bugs ranging from cross-site scripting and cross-site request forgery, to information disclosure, denial of service, and remote code execution. The goal of this codelab is to guide you through discovering some of these bugs and learning ways to fix them both in Gruyere and in general.

Good exercises for web developers, infosec geeks and the security curious. A little easier to use than having to set up VMWare, java, etc for other hackmes.

Friday, July 01, 2011

setting cookies & doing redirects in clunky frameworks

Sometimes when doing operation and maintenance coding you find yourself working a framework where the original developers left some functionality out and adding the "right way" is just not worth the effort.  In these types of scenarios it is good to know about "http-equiv" meta tags.

  • Setting cookies & redirection
sub upd_server_type_filter {
        my $server_type_filter = $cgi->param('server_type_filter_text_area');

        # a clunky solution for a clunky framework
        print "<meta http-equiv=\"Set-Cookie\" content=\"server_type_filter=$server_type_filter; path=/; expires=\"\"\">\n";
        print "<meta http-equiv=\"refresh\" content=\"0\">\n";
}

  • Getting the  cookie
sub get_server_type_filter {
        my @filter;

        # fetch cookies
        my %cookies             = CGI::Cookie->fetch;
        my $server_type_filter  = $cookies{'server_type_filter'}->value if $cookies{'server_type_filter'};
        $server_type_filter =~ s/\s//g;
        @filter = split /,/, $server_type_filter;
        return @filter;
}