title: HTTP requests and Apache modules: Creative attack vectors
body: <p>Slightly unorthodox question here:</p>
  
  <p>I'm currently trying to break an Apache with a handful of custom modules.</p>
  
  <p>What spawned the testing is that Apache internally forwards requests that it considers too large (e.g. 1 MB trash) to modules hooked in appropriately, forcing them to deal with the garbage data - and lack of handling in the custom modules caused Apache in its entirety to go up in flames. Ouch, ouch, ouch.</p>
  
  <p>That particular issue was fortunately fixed, but the question's arisen whether or not there may be other similar vulnerabilities.</p>
  
  <p>Right now I have a tool at my disposal that lets me send a raw HTTP request to the server (or rather, raw data through an established TCP connection that could be interpreted as an HTTP request if it followed the form of one, e.g. "GET ...") and I'm trying to come up with other ideas. (TCP-level attacks like Slowloris and Nkiller2 are <em>not</em> my focus at the moment.)</p>
  
  <p><strong>Does anyone have a few nice ideas how to confuse the server's custom modules to the point of server-self-immolation?</strong></p>
  
  <ul>
  <li>Broken UTF-8? (Though I doubt Apache cares about encoding - I imagine it just juggles raw bytes.)</li>
  <li>Stuff that is only barely too long, followed by a 0-byte, followed by junk?</li>
  <li>et cetera</li>
  </ul>
  
  <p>I don't consider myself a very good tester (I'm doing this by necessity and lack of manpower; I unfortunately don't even have a more than basic grasp of Apache internals that would help me along), which is why I'm hoping for an insightful response or two or three. Maybe some of you have done some similar testing for your own projects?</p>
  
  <p>(If stackoverflow is not the right place for this question, I apologise. Not sure where else to put it.)</p>