<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.communities.hp.com/securitysoftware/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Following the White Rabbit Blog : hacking</title><link>http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/hacking/default.aspx</link><description>Tags: hacking</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>Web Application Security - Vital in Academia</title><link>http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/2009/01/20/web-application-security-vital-in-academia.aspx</link><pubDate>Tue, 20 Jan 2009 03:05:00 GMT</pubDate><guid isPermaLink="false">94bda21f-7d63-4095-85de-7c2a68fb172c:87545</guid><dc:creator>RafalLos</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.communities.hp.com/securitysoftware/blogs/rafal/rsscomments.aspx?PostID=87545</wfw:commentRss><comments>http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/2009/01/20/web-application-security-vital-in-academia.aspx#comments</comments><description>&lt;p&gt;&lt;font size="2"&gt;&lt;b&gt;&amp;quot;Police: School data hacked, grades altered&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.republicanherald.com/articles/2009/01/15/news/local_news/pr_republican.20090115.a.pg1.pr15hacker_s1.2230498_top4.txt" title="Police: School data hacked, grades altered" target="_blank"&gt;http://www.republicanherald.com/articles/2009/01/15/news/local_news/pr_republican.20090115.a.pg1.pr15hacker_s1.2230498_top4.txt &lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;Every once in a while, we get a great example of why web application security is vital no matter where in the world you operate.&amp;nbsp; Even though academia often feels like they are the exception due to lack of funding, chaotic environments and a cornucopia of other reasons we occasionally read a news nugget that proves they are just as needy as the rest of the business world of good web application security.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; An article in the Pottsville, PA Republican Herald, posted last Thursday January 15th, 2009 identified an incident that caused a bit of a ruckus.&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;p&gt;&lt;i&gt;&amp;nbsp;&amp;quot;&lt;span&gt;Pottsville police anticipate filing charges against one or more
computer hackers who unlawfully made changes to an online grading
system used by Pottsville Area School District.&lt;br /&gt;&lt;br /&gt;“You had some
people who hacked into a school-functioned, online site and found ways
to change data that was put in there,” Pottsville police Capt. Ronald
J. Moser said Wednesday&lt;br /&gt;&lt;br /&gt;“In this case, someone figured out a
teacher’s login and password. It is still a federal offense,” said
Monica Langenberg, Shawnee, Okla., director of business development for
&lt;a href="http://classroll.com/"&gt;Classroll.com&lt;/a&gt;.&amp;quot;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp; There are several things we can gleam just from that critical quote... let&amp;#39;s address:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;First, this incident highlights the dangers of having publicly accessible grading systems and school-tied information available on the public Internet.&amp;nbsp; Perhaps the school system should evaluate the sanity of having such critical information for its students protected by a simple username/password system available to the whole of the Internet?&lt;/li&gt;&lt;li&gt;&amp;nbsp;Unless I misunderstand the content of this article... no one &amp;quot;hacked into&amp;quot; anything... the students simply guessed the login credentials of a teacher, who, coincidentally should be held accountable as well for having easily guessable credentials to such a system&lt;/li&gt;&lt;li&gt;A &amp;quot;federal offense&amp;quot;? That&amp;#39;s fascinating...&lt;/li&gt;&lt;li&gt;The student demonstrated lack of malicious intent in my view, simply by making the types of changes that would get them caught... it very well could have been done silently over time to really cause some damage&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp; What does this teach you, if you&amp;#39;ve in academia and evaluating or building an online system like this?&amp;nbsp; Secure it.&amp;nbsp; Base-level login/password authentication from 1999 isn&amp;#39;t going to work... Also because of COPPA (Child Online Privacy Protection Act) there is some much greater accountability for academic environments when it comes to protecting children and their information. &lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.communities.hp.com/securitysoftware/aggbug.aspx?PostID=87545" width="1" height="1"&gt;</description><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/hacking/default.aspx">hacking</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/breach/default.aspx">breach</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/application+security/default.aspx">application security</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/academic+hack/default.aspx">academic hack</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/student+hacker/default.aspx">student hacker</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/school+hack/default.aspx">school hack</category></item><item><title>Hacking: Next Up Movie Theaters</title><link>http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/2008/12/18/hacking-next-up-movie-theaters.aspx</link><pubDate>Thu, 18 Dec 2008 08:25:00 GMT</pubDate><guid isPermaLink="false">94bda21f-7d63-4095-85de-7c2a68fb172c:87200</guid><dc:creator>RafalLos</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.communities.hp.com/securitysoftware/blogs/rafal/rsscomments.aspx?PostID=87200</wfw:commentRss><comments>http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/2008/12/18/hacking-next-up-movie-theaters.aspx#comments</comments><description>&lt;p&gt;Reference: &lt;a href="http://breachblog.com/2008/12/16/zyacorp.aspx" title="The Breach Blog" target="_blank"&gt;http://breachblog.com/2008/12/16/zyacorp.aspx&lt;/a&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In one of those &amp;quot;&lt;i&gt;I bet they didn&amp;#39;t see this coming&lt;/i&gt;&amp;quot; moments a CineMagic movie theater in Merrimack, NH has fallen victim to digital thieves (or hackers, if you prefer).&amp;nbsp; What I see here is a rather obvious comparison case for tackling the &amp;quot;we&amp;#39;re too insignificant to be hacked&amp;quot; argument.&amp;nbsp; If you have data &lt;i&gt;or&lt;/i&gt; click-stream... you have something of value.&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; I&amp;#39;ve said it before and I&amp;#39;ll say it again - hackers aren&amp;#39;t just targeting the huge repositories of information.&amp;nbsp; They&amp;#39;re coming after anyone and everyone with exposures and unmitigated risks.&amp;nbsp; While there is direct indication that this was done with a web application hack... I wouldn&amp;#39;t discount it as an avenue for easy attack.&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Think of how many times you&amp;#39;ve bought movie tickets online or anything else that you wouldn&amp;#39;t think twice about... what if that entity was compromised?&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; In what I can only call an unfunny twist of comedy, the article&amp;#39;s writer comments -&lt;/p&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;p&gt;&lt;i&gt;&lt;font size="2" face="Verdana"&gt;&amp;quot;Anytime I read about credit card
breaches, PCI compliance comes to mind.&amp;nbsp; If I were to guess, I would
guess that there is a 50/50 chance that Zyacorp is compliant.&amp;nbsp; &lt;b&gt;Not that
compliance = secure&lt;/b&gt;.&lt;/font&gt;&lt;/i&gt;&amp;quot;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.communities.hp.com/securitysoftware/aggbug.aspx?PostID=87200" width="1" height="1"&gt;</description><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/hacking/default.aspx">hacking</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/PCI+Compliance/default.aspx">PCI Compliance</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/movie+theater+hacked/default.aspx">movie theater hacked</category></item><item><title>Web Application Security 101: Simple SQL Injection</title><link>http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/2008/10/04/web-application-security-101-simple-sql-injection.aspx</link><pubDate>Sat, 04 Oct 2008 05:08:00 GMT</pubDate><guid isPermaLink="false">94bda21f-7d63-4095-85de-7c2a68fb172c:86018</guid><dc:creator>RafalLos</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.communities.hp.com/securitysoftware/blogs/rafal/rsscomments.aspx?PostID=86018</wfw:commentRss><comments>http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/2008/10/04/web-application-security-101-simple-sql-injection.aspx#comments</comments><description>&lt;p&gt;&amp;nbsp; Web application security is a hot topic, no doubting that these days.&amp;nbsp; The awareness is growing and developers are starting to take notice of the security shortfalls in their code.&amp;nbsp; Awareness of attacks like SQL injection, cross-site scripting, and CSRF (Cross-Site Request Forgery) is starting to spread and so are ways to protect against these types of attacks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;With this Security 101 post I&amp;#39;d like to call attention to a particular type of attack that (after nearly 5 years of executing it successfully) is finally starting to trend towards extinction - but sadly still is all-too-common.&amp;nbsp; Let&amp;#39;s do this by example... &lt;/p&gt;&lt;p&gt;&amp;nbsp; As you visit your favorite site one of the first thing that the server on the other end of your connection does is checks your browser.&amp;nbsp; It does this for an obvious reason: it needs to know whether to serve you java or ActiveX/.Net -based content.&amp;nbsp; This isn&amp;#39;t going to go away since I don&amp;#39;t see either Microsoft or Mozilla dropping out of the browser game, so the checking of &amp;quot;user-agent&amp;quot; will continue. Moving on in our example, the server pulls the &amp;quot;user-Agent&amp;quot; header component and has to compare it against known types of browsers.&amp;nbsp; Now, there are a number of ways that the server can check your browser version (against an XML file, using JavaScript from within the page, or using a database call) but it is fairly likely that it will be done with a database call to the back-end database server against a table of supported browsers.&amp;nbsp; Here&amp;#39;s where the magic happens if you&amp;#39;re an attacker.&amp;nbsp; Most of the time, if the developer is making a database call to check browser version compatibility they are *not* sanitizing that parameter before passing it into the database server.&amp;nbsp; This, of course, leads to &lt;b&gt;SQL Injection&lt;/b&gt;.&lt;/p&gt;&lt;p&gt;&amp;nbsp; This absolutely fundamental check can cause a site or application with *zero form inputs* to still be vulnerable to SQL Injection.&amp;nbsp; I&amp;#39;ve seen it first-hand, so I know it exists in &amp;quot;the wild&amp;quot;. Absolutely fascinating since I&amp;#39;ve had developers ask me why they need to sanitize parameters when they have little (or no) form inputs on a site.&amp;nbsp; My answer is always this example.&lt;/p&gt;&lt;p&gt;&amp;nbsp; The moral of this story is don&amp;#39;t get over-confident.&amp;nbsp; Just because your site/application is &amp;#39;basic&amp;#39; or short of complex inputs it does not necessarily mean that you&amp;#39;re invulnerable to attacks like SQL Injection.&amp;nbsp; Check and sanitize &lt;b&gt;all&lt;/b&gt; your parameters coming from the user-side.&amp;nbsp; Never, ever, under any circumstances trust data coming from the client.&amp;nbsp; This goes for *any* data, including header fields! &lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.communities.hp.com/securitysoftware/aggbug.aspx?PostID=86018" width="1" height="1"&gt;</description><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/hacking/default.aspx">hacking</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/web+application+security/default.aspx">web application security</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/input+validation/default.aspx">input validation</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/sql+injection/default.aspx">sql injection</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/web+application+hacking/default.aspx">web application hacking</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/data+sanitization/default.aspx">data sanitization</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/user-agent/default.aspx">user-agent</category></item><item><title>What's the point of "penetration testing"?</title><link>http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/2008/04/04/What_2700_s-the-point-of-_2200_penetration-testing_22003F00_.aspx</link><pubDate>Fri, 04 Apr 2008 14:45:00 GMT</pubDate><guid isPermaLink="false">94bda21f-7d63-4095-85de-7c2a68fb172c:75890</guid><dc:creator>Rafal Los</dc:creator><slash:comments>8</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.communities.hp.com/securitysoftware/blogs/rafal/rsscomments.aspx?PostID=75890</wfw:commentRss><comments>http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/2008/04/04/What_2700_s-the-point-of-_2200_penetration-testing_22003F00_.aspx#comments</comments><description>&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Over the last 8 years in IT Security, I&amp;#39;ve had at least a professional interest in the idea of penetration testing and the opinion of this service has evolved as the IT Security market niche matures and grows.&amp;nbsp; I wanted to take a minute to discuss it with the readers out there, and maybe solicit some opinions on the topic if you&amp;#39;re willing to offer yours.&amp;nbsp; I&amp;#39;ll reserve my personal opinion for the end, but wanted to present some thoughts, rebuttals and commentary on these here.&amp;nbsp; I&amp;#39;m going to address penetration testing in the context of web applications - but this can be allied virtually to any technology out there.&lt;/p&gt;&lt;p&gt;&lt;u&gt;Let&amp;#39;s first look at the arguments &lt;strong&gt;for&lt;/strong&gt; penetration testing:&lt;/u&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Penetration testing provies a &lt;em&gt;hackers-eye view of your web application attack surface&lt;/em&gt;&lt;/li&gt;&lt;li&gt;Penetration testing provides an outsider&amp;#39;s view of your web application attack surface&amp;nbsp;&lt;/li&gt;&lt;li&gt;Penetration testers will often find ways to manipulate your applications in ways your developers never thought possible&lt;/li&gt;&lt;li&gt;Penetration testing offers the client an opportunity to get a snapshot picture of your security posture&lt;/li&gt;&lt;li&gt;A penetration test goes more in-depth than a &amp;quot;security scan&amp;quot; by &lt;em&gt;identifying and exploiting real weaknesses&lt;/em&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Those are some compelling points, to be sure.&amp;nbsp; Security is a very strange f1sh, it changes so drastically so often it&amp;#39;s almost impossible to be entirely up-to-date all the time, unless that is your sole job.&amp;nbsp; This is precisely what penetration testers are great at - they focus their entire energy on researching, identifying, and exploiting security weaknesses in, in this example, web applications.&amp;nbsp; There really isn&amp;#39;t any amount of &amp;quot;scanning&amp;quot; that an automated tool can do which will match the power and adaptive capability of the human mind - I don&amp;#39;t think anyone will argue that - so the value of employing someone who is extremely versed in this sort of thing is akin to having your transmission looked at by a transmission-only specialist... you do it because you want to go to the expert.&amp;nbsp; There are varying degrees of expertise; of course, and let&amp;#39;s not even try and disagree that you get what you pay for.&amp;nbsp; If you want a top-notch security expert, you&amp;#39;re likely going to be hiring someone with a shady past, and it&amp;#39;s going to cost a lot - but at least you know you&amp;#39;re getting the top talent matching wits with your pro-active security measures.&amp;nbsp; But what about the other side of the coin?&lt;/p&gt;&lt;p&gt;&lt;u&gt;Let&amp;#39;s look at arguments&amp;nbsp;&lt;strong&gt;against&lt;/strong&gt; penetration testing:&lt;/u&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Penetration testing can be argued to be a&amp;nbsp;test of the &amp;#39;tester&amp;#39; not the target&lt;/li&gt;&lt;li&gt;Penetration testing isn&amp;#39;t an exact science, and rarely standardized&lt;/li&gt;&lt;li&gt;Penetration testing results are inconsistent&lt;/li&gt;&lt;li&gt;Penetration testing is too expensive&lt;/li&gt;&lt;li&gt;Penetration testing is only a snapshot in time&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; With those arguments against penetration testing - how can one reasonably conclude it&amp;#39;s a good idea?&amp;nbsp; Well, the fact of the matter is that penetration testing is expensive, inconsistent and rarely an exact, standardized process (unless you pick one of the top firms which have standardized).&amp;nbsp; Yes, sometimes the results are inconsistent and a mere snapshot in time, not an accurate assessment of your stategy as a whole.&amp;nbsp;&amp;nbsp;The argument has also been made that a penetration test result is often a test of the &amp;quot;tester&amp;#39;s&amp;quot; intelligence and hacking prowess, and not necessarily of the defenses...&amp;nbsp;however I would say think twice about that argument.&amp;nbsp; Isn&amp;#39;t that the point?&amp;nbsp; You hire the best, they put their mind to the test against your defenses?&amp;nbsp; So now the pros are weighed against the cons... and the money issue is always on the forefront of the decision to go one way or the other.&amp;nbsp; I will only offer you these&amp;nbsp;words...Strike a balance in your strategy - but do not fail to test yourself.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Remember, the right balance when it comes to penetration testing is in moderation.&amp;nbsp; You can&amp;#39;t reasonably have a penetration test done once a week,&amp;nbsp;as it would destroy your budget.&amp;nbsp; You also&amp;nbsp;shouldn&amp;#39;t do it once a year - as that&amp;#39;s probably too rare.&amp;nbsp; The right balance is a combination of&amp;nbsp;automated tools which you&amp;nbsp;and your security team can use to&amp;nbsp;self-assess plus a seasoned expert tester to check your sanity and environment.&amp;nbsp; &lt;u&gt;Heed my warning... find your vulnerabilities because if you&amp;#39;re not testing the security of your web applications - rest-assured someone else is.&lt;/u&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.communities.hp.com/securitysoftware/aggbug.aspx?PostID=75890" width="1" height="1"&gt;</description><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/webinspect/default.aspx">webinspect</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/tools/default.aspx">tools</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/hacking/default.aspx">hacking</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/penetration+testing/default.aspx">penetration testing</category><category domain="http://www.communities.hp.com/securitysoftware/blogs/rafal/archive/tags/services/default.aspx">services</category></item></channel></rss>