Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Utility > Tilted Suggestions


 
 
LinkBack Thread Tools
Old 11-13-2006, 06:27 PM   #1 (permalink)
Wehret Den Anfängen!
 
Location: Ontario, Canada
Disable inline images and image hosting

Reason:
http://metatalk.metafilter.com/mefi/12920
http://www.metafilter.com/mefi/55720

Example (I made the IMG tag not work -- remove the spaces, and something neat happens):
[ img ]http://tinyurl.com/fwzbm[ /img ]

well, that probably wouldn't work. But the IMG tag above would cause your browser to do a HTTP GET request on the link:
http://tinyurl.com/fwzbm
which is
http://collect.myspace.com/index.cfm?fuseaction=signout
which signs you out of myspace. As that isn't a valid image, you don't see anything visible.

Any website that uses unvalidated GETs to change state (yes, that is against the RFCs, but people do it)....

...

And, as an aside, if TFP hosts user-generated images, someone can use flash and a cutely-written GIF (or other) file to have a browser run arbitrary POST and GET operations, using the user's state, on TFP.

In effect you fool the browser into thinking a GIF file is a crossdomain.xml instruction that states "TFP accepts cross domain flash POSTs and GETs from any website", then get flash to do arbitrary gets/posts on TFP.

Worse, the flash can munge the headers all it wants, so you can't check by referrer.

To prevent this attack, you have to not host images that hostile people can upload. Or you could check and try to make sure the images don't contain crossdomain.xml instructions...

You can reduce this attack by making sure that user-submitted hosted images are hosted in a unique and deep subdirectory, or on a different domain. Then the attack applies to the subdirectory or the different domain only.

Just thought you would like to know!

Note that the first problem (images can cause GET requests) is mainly a problem for other websites -- it appears that TFP adds randomized tokens to the end of state-changing GET requests (and, more importantly, checks to see if they are there -- myspace has such a token, but it seems to ignore it...).

So linking of images is less important -- however, it does mean that I could, say, have any metafilter reader mark a post of mine on metafilter as their favorate without them realizing it.

The "crossdomain.xml" image attack is new, and more dangerous. In effect, with a hostile hosted image, a flash application on another website can do arbitrary user actions (or moderator actions, if a moderator looks at the flash app) on TFP.
__________________
Last edited by JHVH : 10-29-4004 BC at 09:00 PM. Reason: Time for a rest.

Last edited by Yakk; 11-14-2006 at 08:21 AM.. Reason: Automerged Doublepost
Yakk is offline  
Old 06-13-2007, 12:57 AM   #2 (permalink)
Upright
 
I know you won’t believe me but this is true……I was not aware of image hosting. Yesterday my little nephew was doing his homework; I offered him help and he asked me to give the extensions for images. As I only know about jpeg so I told him so but my nephew told me that the questions demands 2 answers hence I took his textbook to search for the answer. When I was reading his book, I came to know that there are image hosting sites like http://www.uploadit.org or http://2and2.net that act as a store for your pictures. Isn’t it pretty cool?
baggy20 is offline  
Old 06-14-2007, 02:12 PM   #3 (permalink)
The Reforms
 
Jetée's Avatar
 
Location: Rarely, if ever, here or there, but always in transition
Has a mod taken a look at Yakk's detailed explanation of something tthat, I think, would be harmful to the site

just a heads-up... oh, and buggy, welcome to the age of discovery, my friend.
__________________
As human beings, our greatness lies not so much in being able to remake the world (that is the myth of the Atomic Age) as in being able to remake ourselves.
Mohandas K. Gandhi
Jetée is offline  
Old 09-10-2007, 06:17 PM   #4 (permalink)
MSD
The sky calls to us ...
 
MSD's Avatar
 
Super Moderator
Location: CT
Quote:
Originally Posted by Jetstream
Has a mod taken a look at Yakk's detailed explanation of something tthat, I think, would be harmful to the site

just a heads-up... oh, and buggy, welcome to the age of discovery, my friend.
It's never been a problem before; TFP isn't exactly a high-profile target and those who would attack us are well known, whether banned, active, or using alter egos.

It's fairly simple to block third-party GET and POST requests, I'll mention it and see if the admins want to make changes.

Last edited by MSD; 09-10-2007 at 06:19 PM..
MSD is offline  
 

Tags
disable, hosting, image, images, inline


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 09:32 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360