<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,14 +1,15 @@
 class PostsController &lt; ApplicationController
   # GET /posts
   # GET /posts.xml
+  # codecite SQL injection flaw
   def index
     if (!params[:search].blank?)
-      # codecite SQL injection flaw
+      # insecure!
       @posts = Post.find(:all, :conditions =&gt; &quot;title = '#{params[:search]}'&quot;)
-      # codecite SQL injection flaw
     else
       @posts = Post.find(:all)
     end
+  # codecite SQL injection flaw
 
     respond_to do |format|
       format.html # index.html.erb</diff>
      <filename>app/controllers/posts_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,7 @@
   &lt;p&gt;
     &lt;%= f.label :body %&gt;&lt;br /&gt;
     &lt;%= f.text_area :body %&gt;
-  &lt;/p&gt;
+  &lt;!-- broken html, missing closing p --&gt;
   &lt;p&gt;
     &lt;%= f.label :published %&gt;&lt;br /&gt;
     &lt;%= f.check_box :published %&gt;</diff>
      <filename>app/views/posts/edit.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,13 @@
 &lt;h1&gt;Listing posts&lt;/h1&gt;
 
+&lt;%# codecite search form %&gt;
 &lt;% form_tag({ }, {:method =&gt; &quot;get&quot;}) do  %&gt;
   &lt;p&gt;
     &lt;%= submit_tag &quot;Search&quot; %&gt; &lt;%= text_field_tag :search, params[:search] %&gt;
   &lt;/p&gt;
 &lt;% end %&gt;
-
+&lt;%# codecite search form %&gt;
+g
 &lt;table&gt;
   &lt;tr&gt;
     &lt;th&gt;Title&lt;/th&gt;</diff>
      <filename>app/views/posts/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -16,4 +16,5 @@
 
 
 &lt;%= link_to 'Edit', edit_post_path(@post) %&gt; |
-&lt;%= link_to 'Back', posts_path %&gt;
+&lt;%= link_to 'Back', posts_path %&gt; |
+&lt;%= link_to 'Broken link', &quot;/broken&quot; %&gt;</diff>
      <filename>app/views/posts/show.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -11,10 +11,12 @@ class TarantulaTest &lt; ActionController::IntegrationTest
       :input =&gt; &quot;&lt;script&gt;gotcha!&lt;/script&gt;&quot;,
       :output =&gt; &quot;&lt;script&gt;gotcha!&lt;/script&gt;&quot;,
     }
+    # codecite SQL injection attack
     AttackFormSubmission.attacks &lt;&lt; { 
       :name =&gt; :sql_injection,
       :input =&gt; &quot;a'; DROP TABLE posts;&quot;,
     }
+    # codecite SQL injection attack
     t.handlers &lt;&lt; AttackHandler.new
     t.fuzzers &lt;&lt; AttackFormSubmission
     t.times_to_crawl = 2</diff>
      <filename>test/tarantula/tarantula_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9af205d85a6ab40e14bc67fd7f3379fee246867c</id>
    </parent>
  </parents>
  <author>
    <name>Stuart Halloway</name>
    <email>stu@thinkrelevance.com</email>
  </author>
  <url>http://github.com/relevance/flawd/commit/730588413b11612877041c163ee23673ac52ae6c</url>
  <id>730588413b11612877041c163ee23673ac52ae6c</id>
  <committed-date>2008-06-05T10:46:09-07:00</committed-date>
  <authored-date>2008-06-05T10:46:09-07:00</authored-date>
  <message>more flaws
* bad HTML
* busted links
* markers for codecite</message>
  <tree>317b5989f8d3ab090cd43c54eb9b525d3ecfac71</tree>
  <committer>
    <name>Stuart Halloway</name>
    <email>stu@thinkrelevance.com</email>
  </committer>
</commit>
