Another example.
http://example.com/admin/articles/delete/2
This will delete the article if you are logged in and have the correct rights. If your site accepts comments, for example, and the user passes this link as an image; So:
<img src="http://example.com/admin/articles/delete/2" alt="This will delete your article."/>
Then, when you yourself, as the admin user, view comments on your site, the browser will try to extract this image by sending a request to this URL. But since you are logged in while the browser does this, the article will be deleted.
You may not even notice without looking at the source code, since most browsers show nothing if they cannot find the image.
Hope this makes sense.
Neil Mar 11 '11 at 17:08 2011-03-11 17:08
source share