Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
The Internet Java Networking Programming

TinyDisk, A File System on Someone Else's Web App 188

Psy writes "I attended Phreaknic this weekend where Acidus released TinyDisk, a shared file system that runs on top of TinyURL or his own implementation NanoURL. TinyDisk compresses a file, encrypts it, and dices it into clusters. Each cluster is submitted to TinyURL as if it were a url. This clusters can be read back out of the database, making TinyDisk a global file system anyone can use. There are safeguards in the default config to prevent people from dumping gigs of MP3s into TinyURL. While file-system-on-web-applications are nothing new (GMail file system anyone?) this hack shows how easy it is to accidentally design a web application insecurely despite the default PHP protections. See his presentation for more info"
This discussion has been archived. No new comments can be posted.

TinyDisk, A File System on Someone Else's Web App

Comments Filter:
  • Insecure? Really? (Score:5, Insightful)

    by Afty0r ( 263037 ) on Tuesday October 25, 2005 @08:10AM (#13870632) Homepage
    this hack shows how easy it is to accidentally design a web application insecurely despite the default PHP protections.
    The design of these TinyURL style applications is insecure in the same way as a concrete wall is insecure because someone could spray paint on it.

    Insecure? Rancid tabloid hyperbole more like.
  • by MichaelSmith ( 789609 ) on Tuesday October 25, 2005 @08:20AM (#13870665) Homepage Journal
    It's still interesting work.

    Even more interesting would be something which encrypts your files and spreads them around in various free storage media (slashdot trolls?) in such a way that they can not be easily correlated with each other.

    Cramming all this stuff into tinyurl is bound to be noticed, but if it is a couple of dozen bytes here and there it might be possible to store lots of stuff with a reasonable degree of safety.

  • Re:Nifty hack (Score:1, Insightful)

    by Anonymous Coward on Tuesday October 25, 2005 @08:23AM (#13870680)
    who hasnt had this idea to hide data in multiply dns records, or webhops, frame redirectors. I dont think i ever thoguht of putting it into use with a frontend for files. always thought it was kinda for malware to use. or cheap ppl like myself.
  • by tezza ( 539307 ) on Tuesday October 25, 2005 @08:27AM (#13870696)
    You could put this in an unapproved pending queue for Wikipedia, comments on Joel Spolsky's blog or wherever.

    But overall 'WHY?' must be the question? Al Quaeda or The Real IRA? They still have their old working communication channels. Also who needs space like this? Space of this amount could be made redundant and available by using GoogleMail, Yahoo and Hotmail in synchrony. If none of those are available, presumably you'd have it on USB key as well.

  • It's simple. (Score:3, Insightful)

    by TheSpoom ( 715771 ) * <{ten.00mrebu} {ta} {todhsals}> on Tuesday October 25, 2005 @08:36AM (#13870732) Homepage Journal
    If you want your online app to not be used by scripts such as this, implement a CAPTCHA [captcha.net]. Sure, people could still use it if they wanted to input a bunch of letters for every single chunk of their file...
  • Re:It's simple. (Score:5, Insightful)

    by Smidge204 ( 605297 ) on Tuesday October 25, 2005 @08:40AM (#13870753) Journal
    Or better yet, validate all entered URLs by attempting to establish a connection to the server. If the URL is invalid then kick it back.

    You wouldn't even need to do this with every URL added to the system. Spot-checking every 1 in 10 URLs or so will go a long way to preventing any sort of abuse.
    =Smidge=
  • by grimJester ( 890090 ) on Tuesday October 25, 2005 @08:46AM (#13870779)
    Which makes it more like what it really is, hosting your file on someone else's web server. "Compression" my ass.
  • by Anonymous Coward on Tuesday October 25, 2005 @08:49AM (#13870804)
    It is a nifty hack, but let's not kid ourselves and pretend this is anything new, or that it's even a good thing.

    At its core, Tinyurl is just a write-once database. You add data and get back a key/pointer to said data. As with typical databases, the size of the pointer is logarithmic in the size of the input (* number of keys stored, not bytes; however, the number of bytes/key is bounded under some constant, so it's effectively the number of bytes).

    This gives us a logarithmic compression scheme, where our compression ratio (N-logN)/N approaches 100% as N gets large. This kind of "infinite compression" is what makes the method attractive: you put in say a kilobyte of data and get out a (currently) 5 byte key. All you have to do is keep an index of the keys.

    TinyDisk doesn't seem to do this, but you could then turn around and store the index as a key. Take 1000/5 = 200 keys and get back one key. Lather. Rinse. Repeat. In the end, you have a single key that points to the backup of your mp3 collection, all in one TinyUrl! Not too shabby. After all, it's free storage, right? Wrong. Someone ends up paying for the infinite compression. In this case, it's Tinyurl. If this kid had stopped to think for a few minutes before publishing his hack, he would have realized that he's actually doing a malicious, antisocial thing. I suspect there will be a dozen copycats in the wild before the end of the day.

    Farewell TinyUrl, we knew ye well.
  • by tmroyster ( 309750 ) on Tuesday October 25, 2005 @08:58AM (#13870866)
    The end of TinyURL is in sight. Yes, this is (probably) a clever hack.
    But this is a misuse of a really useful service.

    When TinyURL's administrator has to either go out and buy his
    second 2Terabyte disk array in a week or shutdown, which do
    you think he will pick?

  • by julesh ( 229690 ) on Tuesday October 25, 2005 @09:10AM (#13870939)
    URLs could be checked on the serverside on availability for example; if your URL is phony, then it's rejected. I suppose that would make massive DOS-attacks possible

    It would also prevent tinyurl being useful for private URLs (e.g. those behind firewalls which only allow connections from known IP addresses). You can also use currently use tinyurl with protocols that the tinyurl server knows nothing about, e.g. ed2k: or magnet:.

    The better solution is just to disallow any single IP from creating more than, say, 10 URLs in an hour. This would make such a filesystem implementation useless without overly restricting legitimate users.
  • Sorry to be Mr. Obvious this morning, but I take issue with submitter's conclusion that TinyDisk illustrates a security issue on the part of tinyurl.com. It rather illustrates the ease of creating a leachable web app that resource pirates can abuse. Yes, I have a negative opinion of those using such a creative hack against others who provide services to the general public in good faith.
  • Great Idea! (Score:4, Insightful)

    by Se7enLC ( 714730 ) on Tuesday October 25, 2005 @09:22AM (#13871014) Homepage Journal
    I was looking for another way to store files online in such a way as to make them:
    • Difficult to access
    • Unreliable
    • Split into many different pieces
    • Under somebody else's control that has motivation to delete them

    I guess once this goes down, I'll have to go back to posting UUencoded files in peoples blogs.
  • by pizza_milkshake ( 580452 ) on Tuesday October 25, 2005 @09:23AM (#13871029)
    looks like an implementation of Michael Zalewski's Juggling With Packets [coredump.cx] concept, the storing of data in buffers of publicly available services for use as a filesystem.
  • by ezzzD55J ( 697465 ) <slashdot5@scum.org> on Tuesday October 25, 2005 @10:06AM (#13871406) Homepage
    In the end, you have a single key that points to the backup of your mp3 collection, all in one TinyUrl! Not too shabby.

    Sure, but I think it's a pretty dumb idea because of the large overhead (in time and data) of actually retrieving that data.. http request and response, encoding, etc. And the fact that tinyurl will (rightly) kick your ass off the service once he's on to you.

"Ninety percent of baseball is half mental." -- Yogi Berra

Working...