﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Thomas Krause commented on A web server in 30 lines of code</title><description>Oh, you're right. I missed that somehow. I read something like:
  
  
fullPath = Path.Combine(path, context.Request.RawUrl)
  
  
Nevermind...
</description><link>http://ayende.com/3235/a-web-server-in-30-lines-of-code#comment5</link><guid>http://ayende.com/3235/a-web-server-in-30-lines-of-code#comment5</guid><pubDate>Mon, 31 Mar 2008 20:20:58 GMT</pubDate></item><item><title>Ayende Rahien commented on A web server in 30 lines of code</title><description>Well, did you note
  
  
Path.GetFileName(context.Request.RawUrl)
  
  
??
  
  
That will stop those attacks
</description><link>http://ayende.com/3235/a-web-server-in-30-lines-of-code#comment4</link><guid>http://ayende.com/3235/a-web-server-in-30-lines-of-code#comment4</guid><pubDate>Mon, 31 Mar 2008 16:35:27 GMT</pubDate></item><item><title>Thomas Krause commented on A web server in 30 lines of code</title><description>But, what happens if you pass something like:
  
http://localhost/prefix/../../../Windows/System32/Secret.File
  
  
Sorry, couldn't resist ;-)
</description><link>http://ayende.com/3235/a-web-server-in-30-lines-of-code#comment3</link><guid>http://ayende.com/3235/a-web-server-in-30-lines-of-code#comment3</guid><pubDate>Mon, 31 Mar 2008 16:31:19 GMT</pubDate></item><item><title>Tuna Toksoz commented on A web server in 30 lines of code</title><description>the altdotnet style :)
</description><link>http://ayende.com/3235/a-web-server-in-30-lines-of-code#comment2</link><guid>http://ayende.com/3235/a-web-server-in-30-lines-of-code#comment2</guid><pubDate>Sun, 30 Mar 2008 20:31:19 GMT</pubDate></item><item><title>Pieter Joost van de Sande commented on A web server in 30 lines of code</title><description>Wow, let's benchmark! Instead of switching to IIS7 we should use this :)
</description><link>http://ayende.com/3235/a-web-server-in-30-lines-of-code#comment1</link><guid>http://ayende.com/3235/a-web-server-in-30-lines-of-code#comment1</guid><pubDate>Sun, 30 Mar 2008 20:17:15 GMT</pubDate></item></channel></rss>