Author Topic: More FA coding failure  (Read 885 times)

ColeTrain

  • *
  • Posts: 46
  • E-points: +1/-0
  • Stupid Newbie
    • View Profile
More FA coding failure
« on: September 05, 2011, 02:59:50 am »
So it appears someone on lulz discovered some small coding backholes, which allow user to spam someone's page tab with one and same shouts, by pressing F5 repeatedly at the "Your shout has been made!" notification page. Some other holes include for example, a thumbnail hack:

Quote
first post gets bigger thumbnail, scaled up to 185x185 preserving aspect ratio so squares get pretty big.

What is funnier is how FA handles avatar scaling in :iconuser: links in journals and comments. It scales the icon preserving aspect ratio to make it 50px horizontally.

Try setting attached image as your av then post a comment with text :icon your username : (without spaces).

So basically, you can get a result like something on this page here: http://www.furaffinity.net/user/rainpup/

Let's see what else might be found with fiddling...
EDIT: nevermind, looks like Yak sniffed it out and fixed the avatar enlargement issue, or at least patched it up. As for the multiple shouts one, it's still present.
 
 
« Last Edit: September 05, 2011, 09:01:21 am by ColeTrain »

ProvincialTwit

  • Abuse Dept.
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 774
  • E-points: +72/-33
    • View Profile
Re: More FA coding failure
« Reply #1 on: September 05, 2011, 09:16:10 am »
Screenshots, people.  Screenshots.  alt-prtscn in windows, open mspaint, ctrl-v to paste, save. 

Jim Demintia

  • Postcount ate Whippany, NJ
  • ****
  • Posts: 628
  • E-points: +24/-6
  • Deflator Mouse
    • View Profile
Re: More FA coding failure
« Reply #2 on: September 05, 2011, 12:08:26 pm »
For what it's worth the multiple shouts thing isn't a bug as such. This is possible on almost any website, it's just that the retarded use of GET vs. POST means that the browser doesn't pop up the "This action will be repeated" box.
« Last Edit: September 05, 2011, 06:30:32 pm by Jim Demintia »
Can it be this sad design
Could be the very same
A wooly man without a face
And a beast without a name

Conan

  • Sean Piche Wannabe Club
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 603
  • E-points: +33/-9
  • ¯\(°_o)/¯
    • View Profile
Re: More FA coding failure
« Reply #3 on: September 05, 2011, 01:17:30 pm »
They "fixed" the avatar thing by forcing avatars to display as squares (but not before fucking up avatars on the entire site).

Now, because FA doesn't mandate perfectly square icons be uploaded, anyone with something that's not perfectly square will end up with a stretched avatar. No one bothered to think that one through before mashing their keyboard and rolling out a "fix".

Jim Demintia

  • Postcount ate Whippany, NJ
  • ****
  • Posts: 628
  • E-points: +24/-6
  • Deflator Mouse
    • View Profile
Re: More FA coding failure
« Reply #4 on: September 05, 2011, 03:15:14 pm »
So are they just setting the HTML height/width attributes, or are they actually munging the image bits when it is uploaded? With FA as overloaded as it is it seems unwise to add additional server side image checks, especially since image format loaders are well known sources of security vulnerabilities due to mishandling of malformed input.
Can it be this sad design
Could be the very same
A wooly man without a face
And a beast without a name

Conan

  • Sean Piche Wannabe Club
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 603
  • E-points: +33/-9
  • ¯\(°_o)/¯
    • View Profile
Re: More FA coding failure
« Reply #5 on: September 05, 2011, 04:30:26 pm »
So are they just setting the HTML height/width attributes, or are they actually munging the image bits when it is uploaded? With FA as overloaded as it is it seems unwise to add additional server side image checks, especially since image format loaders are well known sources of security vulnerabilities due to mishandling of malformed input.

I should have clarified, the avatars themselves are untouched, but when you embed them with :icon[username]: they're simply stretched, squished, and distorted into 50px*50px.

This goes in:

and with :icon[username]:, this comes out:


They're both the same file, loaded from the same place.

Pi

  • POOR IMPULSE CONTROL
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 614
  • E-points: +40/-10
  • <blink>yes hello</blink>
    • View Profile
    • Clan Spum userpage
Re: More FA coding failure
« Reply #6 on: September 05, 2011, 04:41:39 pm »
Nevermind when it obviously breaks! It works well enough!
"we did farts.  now we do sperm.  we are cutting edge." — Theo DeRaadt

Jim Demintia

  • Postcount ate Whippany, NJ
  • ****
  • Posts: 628
  • E-points: +24/-6
  • Deflator Mouse
    • View Profile
Re: More FA coding failure
« Reply #7 on: September 05, 2011, 06:29:05 pm »
Seems like you used to be able to crash Mozilla (and the X server with it) in the olden days by making it try to resample, say, a 16,384px PNG. Who knows what the deal is now with this GPU bullshit that's everywhere, but I suspect this is far from all the havoc you can wreak with image rendering on FA.
Can it be this sad design
Could be the very same
A wooly man without a face
And a beast without a name

ProvincialTwit

  • Abuse Dept.
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 774
  • E-points: +72/-33
    • View Profile
Re: More FA coding failure
« Reply #8 on: September 05, 2011, 08:04:43 pm »
This would be a lot funnier if you could embed an mp3 into a gif and trick FA into serving up the secondary mime type, so for every instance of an icon on a page, it makes the browser play a separate instance of an mp3.