Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Millions of Pages Google Hijacked using ODP Feed

Posted by CmdrTaco on Wed Mar 23, 2005 10:36 AM
from the well-this-isn't-going-well dept.
The Real Nick W writes "Threadwatch reports that millions of pages are being Google Hijacked using the 302 redirect exploit and the ODP's RDF dump. The problem has been around for a couple of years and is just recently starting to make major headlines. By using the Open Directory's data dump of around 4 million sites, and 302'ing each of those sites, the havoc being wreaked on the Google database could have catastrophic effects for both Google and the websites involved."
This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • OMG!!! (Score:1, Funny)

    by justforaday (560408) on Wednesday March 23 2005, @10:37AM (#12024009)
    Nothing for you to see here. Please move along.

    OMG!!! Slashdot's been hijacked too!
  • Ugh. This is so not true. (Score:2, Informative)

    by GoogleGuy (754053) * on Wednesday March 23 2005, @10:40AM (#12024060)
    (http://www.google.com/webmasters/)
    This is a placeholder. I'll include more details of why you shouldn't listen to Threadwatch.org in a bit, and debunk this some. Let me get this posted and I'll follow up.

    (Yes, I am GoogleGuy.)
    • Re:Ugh. This is so not true. (Score:5, Funny)

      by Solder Fumes (797270) on Wednesday March 23 2005, @10:43AM (#12024117)
      This is a placeholder rebuttal, I'll post why your arguments are COMPLETELY STUPID after you actually post them.
      [ Parent ]
    • Re:Ugh. This is so not true. by yagu (Score:2) Wednesday March 23 2005, @10:49AM
    • Re:Ugh. This is so not true. by Anonymous Coward (Score:2) Wednesday March 23 2005, @10:49AM
    • Re:Ugh. This is so not true. by terraformer (Score:1) Wednesday March 23 2005, @10:56AM
    • Re:Ugh. This is so not true. (Score:5, Informative)

      by GoogleGuy (754053) * on Wednesday March 23 2005, @11:14AM (#12024599)
      (http://www.google.com/webmasters/)
      Okay, I'll talk about this whole "millions of webpages hijacked! Film at 11!" piece of scaremongering. If you RTFA, the author (and the submitter of the story?) claims that some scraper sites have pulled down a copy of the dmoz RDF, gotten the urls, and are doing 302 redirects to sites in an attempt to hijack them. Note that this does not mean that lots of pages were hijacked at all.

      Here's the skinny on "302 hijacking" from my point of view, and why you pretty much only hear about it on search engine optimizer sites and webmaster forums. When you see two copies of a url or site (or you see redirects from one site to another), you have to choose a canonical url. There are lots of ways to make that choice, but it often boils down to wanting to choose the url with the most reputation. PageRank is a pretty good proxy for reputation, and incorporating PageRank into the decision for the canonical url helps to choose the right url.

      A lot of sites that try to spam search engine indices get caught, and their PageRank goes lower and lower as their reputation suffers. We do a very good job of picking canonical urls for normal sites; sites with their PageRank going toward zero are more likely to have a different canonical url picked, though, and to a webmaster I understand that it can look like "hijacking" even though the base cause is usually your reputation declining. For a long time, it was hard to get anyone to report canonicalization problems, because the site that got "hijacked" would be free-cheap-texas-holdem-plus-viagra-and-payday-loa ns-as-well.com type sites. In fact, I had to offer to ignore the spamminess of any reported sites in order to get people to send in any real data.

      But even though I suspected that this issue affected very few sites, we still wanted to collect feedback to see how big of a problem it was, and to see if we could improve our url canonicalization. So starting a while ago, we offered a way to report "302 hijacking" to Google; I mentioned the method on several webmaster forums. You contact user support and use the keyword "canonicalpage" in your report. Then I created a little mailing list with some engineers on it, and user support passes on emails that meet the criteria to the mailing list.

      So how much reports has all this work (including posting multiple times on lots of webmaster boards to request data) gotten me? The last time I checked, it was under 30. Not a million pages. Not even a hundred reports. Under 30. Don't get me wrong, we're still looking at how we can do better: one engineer proposed a way that might help these sites, and he's got a testset of sites that would be affected by changes in how we canonicalized urls. A few of us have been looking through it to see if we can improve things, but please know that this is not a wildfire issue that will result in the web melting down.

      As a side note, I'm getting a little tired of debunking the source of this story (NickW at threadwatch). For example, he claimed that Google had removed Greg Duffy from Google's index. When I pointed out that he was making an assertion of fact without evidence, he started out revising the story by sprinkling in words like "appears" and eventually pulled the story at http://www.threadwatch.org/node/1822 off his front page. But given that this is the third link to NickW's site from Slashdot in the last couple weeks, I'm guessing that he's tasted the Slashdot effect and wants more.
      [ Parent ]
      • Re:Ugh. This is so not true. by ghoti (Score:2) Wednesday March 23 2005, @11:35AM
      • Re:Ugh. This is so not true. (Score:5, Insightful)

        by Dynamoo (527749) on Wednesday March 23 2005, @11:38AM (#12024915)
        (http://www.dynamoo.com/)
        You contact user support and use the keyword "canonicalpage" in your report.. So how much reports has all this work gotten me? The last time I checked, it was under 30

        Well shucks GG, not every webmaster is glued to WMW and other forums.. and even if they did the signal/noise ratio on this topic is so low that you probably couldn't find the information even if you were looking. It's hardly an obvious reporting mechanism. Although posting it on /. should help some, so that's appreciated. Thanks.

        But look - what we have here are a whole bunch of webmasters who have been nuked off the face of the earth by 302 redirects and just don't have the technical knowledge to try and fix it. Mom and Pop stores, hobbyists, nonprofits etc etc. These people are just gonna get pasted.. they'll just be wondering why they don't get any visitors any more.

        This is a HUGELY serious problem - and it's getting worse all the time as more and more people deliberately try to exploit the 302 bug. I've been hit by this bug myself, and let me tell you that unless you know EXACTLY what to look for you'd be stuffed - all you'd see is your traffic flatlining.

        The key issue here - and it's the kind of issue that will really, really hit the headlines when it's exploited is redirection. Sure, I can use a 302 and send Googlebot to the correct page.. so first of all I basically 0wn the content of that page not the publisher. *Then* I insert an exploit into the 302 redirect.. and hey presto, I've 0wned hundreds of thousands if not millions of computers. *That's* going to make unpleasant reading for Google when it hits the headlines - "Use Google and Get Owned". Nasty.

        [ Parent ]
      • by ites (600337) on Wednesday March 23 2005, @11:38AM (#12024918)
        (Last Journal: Thursday March 31 2005, @11:31AM)
        This story does not need "debunking".

        What it needs is a rapid and satisfactory answer or Google will find themselves at the receiving end of more angst than they even know is possible.

        A concrete example. My company's web site has been in existence since 1995. So we have pretty good page ranking. Our main page has one phrase, very distinct, unique.

        When I search for this phrase (in quotes), Google reports hundreds of matches. These sites (except our own) do not contain the phrase but are sites that sell traffic boosting.

        The 302 problem is real.

        Incidentally, I just spent 15 minutes at Google.com looking for a way to report the problem. Where is that mention of "canonicalpage"? In the bottom shelf of a filing cabinet, behind a locked door that says "beware of the tiger"?

        I'm not surprised you got only 30 reports. What I am surprised at is that you appear to speak for Google yet have such an inane response to what is a real (and for many people, a terrifying) problem.
        [ Parent ]
      • Re:Ugh. This is so not true. (Score:5, Informative)

        by Anonymous Coward on Wednesday March 23 2005, @11:48AM (#12025073)

        But even though I suspected that this issue affected very few sites, we still wanted to collect feedback to see how big of a problem it was, and to see if we could improve our url canonicalization. So starting a while ago, we offered a way to report "302 hijacking" to Google; I mentioned the method on several webmaster forums. You contact user support and use the keyword "canonicalpage" in your report.

        I'm sorry, but this is a flat-out lie. If you are the GoogleGuy, then there were 1000+ post threads on WebmasterWorld where people were begging you for input, and you essentially disappeared. I think I might remember seeing one post from you about this "canonicalurl" on a short, almost unrelated thread. You certainly didn't make it clear where to send problem reports, at least not on any of the threads that people were actually reading.

        The fact is, this is a huge problem, and has totally fucked a lot of legitimate site rankings. I honestly believe Google was doing everything in their power to ignore the problem up until now, hoping that it was just a figment of people's imagination, or worse, that it would help increase advertising revenue. And now that it's turning out to be a PR disaster for you, you're in damage control mode.

        I run one of the sites that was affected by the 302 bug. I sent a message to Google about it, and got a canned response essentially telling me there was nothing wrong. I read through no less than 10 threads on WebmasterWorld about this, many with hundreds or even thousands of posts. I saw maybe, maybe, two or three from GoogleGuy. Where were you? Did you somehow miss those threads that spanned 80+ pages??? Why weren't you posting on those threads about this "canonicalurl" thing.

        Luckily there was only one site 302-ing me, and they were doing it by accident and were happy to remove me from their directory. Now I'm back up at the top of the rankings. But I know it's going to be nowhere near as easy for many of the thousands of people who are still affected by this.

        Seriously, that you would come on here and try to discredit someone for bringing attention to a very big problem with Google is pretty distasteful. To me it indicates either a cover-up or having your head buried firmly in the sand. Either way, it doesn't bode well for the future of Google. Instead of flaming people now that the problem is getting mainstream press, why not try and actually fix things.

        [ Parent ]
      • You got an email from me! by pastepotpete (Score:3) Wednesday March 23 2005, @11:53AM
      • Re:Ugh. This is so not true. (Score:5, Interesting)

        by metamatic (202216) on Wednesday March 23 2005, @12:21PM (#12025496)
        (http://www.pobox.com/~meta/ | Last Journal: Sunday February 29 2004, @09:19AM)
        Frankly, I'd like to see Google start blocking content-free traffic-boosting sites from the page results entirely.

        Google has login accounts, so let logged-in users have a link saying "report spam site". Track who files the most reliable reports, and if a few of those people all agree that a site is spam, nuke its pagerank.

        See how OpenRatings does reliability calculations for more info. Or buy them :-)
        [ Parent ]
        • Re:Ugh. This is so not true. by S3D (Score:2) Wednesday March 23 2005, @01:32PM
        • Re:Ugh. This is so not true. (Score:4, Insightful)

          by glesga_kiss (596639) on Wednesday March 23 2005, @07:15PM (#12030486)
          Google has login accounts, so let logged-in users have a link saying "report spam site".

          As an alternative, I'd love a cookie based version of this that you could click "ignore all results from this domain". After a couple of weeks you'd get rid of most of them on your personal browser. Make the lists sharable even. All the pagerank wannabies can do is start from scratch with new URLs.

          [ Parent ]
      • Re:Ugh. This is so not true. by bigbloggingbuggar (Score:1) Wednesday March 23 2005, @12:32PM
      • OK, I'll bite ... (Score:4, Insightful)

        by isometrick (817436) on Wednesday March 23 2005, @12:33PM (#12025636)
        Look, there *was* circumstancial evidence for the "Greg Duffy" thing ... i.e. just enough to make it a discussion. I agree that fearmongering is not the way to go. I appreciate that you looked into the issue (and my first instinct is to trust your explanation, that is was a DNS issue).

        However, if this is Google's PR method, I think you are kind of asking for it! In the absence of information, the internet community will speculate until the cows come home. I'm not saying it's right, I'm just saying that's reality. Even though I said on my site that I thought Google didn't do anything underhanded I bet a lot of people were still not convinced. Google can do a little better than this, and although you have been fairly nice to me (thanks) this response is a little flamebaity for PR. Please understand that I mean no offense, it's just constructive criticism. Even if everything you say is true, a representative of the company should always at least attempt to sugar coat something like your last paragraph.

        Also, on a more personal note, maybe Google should embrace the people that are involved [clsc.net] in researching [gregduffy.com] these problems instead of using this broken communications policy. I know that in my case I contacted you guys 5 *months* ago about the Google Print problem I described and never got any followup except for my t-shirt (which I really like). I have some great ideas about possible solutions to the problem I described, and as far as I can see Google has not fixed the root of the problem. When are you guys going to contact me?

        -Greg Duffy
        [ Parent ]
      • Re:Ugh. This is so not true. by cloudmaster (Score:2) Wednesday March 23 2005, @12:39PM
        • 1 reply beneath your current threshold.
      • Re:Ugh. This is so not true. by tfountain (Score:1) Wednesday March 23 2005, @12:47PM
      • Re:Ugh. This is so not true. by _xeno_ (Score:2) Wednesday March 23 2005, @12:53PM
      • Re:Ugh. This is so not true. by Crobb305 (Score:1) Wednesday March 23 2005, @03:29PM
      • Re:Ugh. This is so not true. by Debstips (Score:1) Thursday March 24 2005, @08:07AM
      • He's answered this before by Anonymous Coward (Score:1) Wednesday March 23 2005, @12:13PM
      • 9 replies beneath your current threshold.
    • Ugh. This is so not true. Definitely by boredguru (Score:1) Thursday March 24 2005, @10:39AM
    • 3 replies beneath your current threshold.
  • Robot.txt (Score:3, Insightful)

    by superpulpsicle (533373) on Wednesday March 23 2005, @10:40AM (#12024068)
    I am really extremely entirely confused about the article altogether. Is the hijacking more or less about Google digging into your site even when your robot.txt crawler robot is refusing google entrance?

    • Re:Robot.txt (Score:5, Informative)

      by wizbit (122290) on Wednesday March 23 2005, @10:44AM (#12024144)
      No, it means Google has indexed a page that appears (to googlebot) to contain something legitimate, and visiting the actual page by clicking the link silently redirects you to an illegitimate site (usually phish/scam copy of same, etc).
      [ Parent ]
      • by ites (600337) on Wednesday March 23 2005, @11:49AM (#12025096)
        (Last Journal: Thursday March 31 2005, @11:31AM)
        It's about pushing unrelated sites up in the rankings.

        For instance: I have a site with excellent page ranking. Now a new site will set up, and do a 302 to my site. Google now gives this new site my page ranking. When the new site is indexed, it removes the 302 redirection.

        When you search for my site, you now find these new sites instead. There is no redirection when you click on a link, the the "cached text" that Google shows is wrong.

        Basically this technique allows people to get high page rankings without earning them. It's very widespread - I counted over 60 such parasites for my company's web site (which has excellent page ranking).

        [ Parent ]
      • Re:Robot.txt by Pxtl (Score:2) Wednesday March 23 2005, @01:15PM
        • Re:Robot.txt by ToddBox (Score:2) Wednesday March 23 2005, @03:01PM
      • 1 reply beneath your current threshold.
    • Re:Robot.txt (Score:5, Informative)

      by pluggo (98988) on Wednesday March 23 2005, @10:46AM (#12024183)
      (http://pluggo.net/)
      There was an article a little while back on /. that talked about this exploit.

      Site A can return a 302 HTTP redirect to site B when Googlebot crawls their site. The googlebot will then index site B as site A. Site A could have no affiliation whatsoever with Site B; people could be clicking on SesameStreet.com and get AsianHookers.com, etc.

      I do think the figure of millions of pages being hijacked is a little steep, though.
      [ Parent ]
      • Re:Robot.txt (Score:5, Insightful)

        by PornMaster (749461) on Wednesday March 23 2005, @10:49AM (#12024219)
        (http://www.ilikepuffynipples.com/)
        I do think the figure of millions of pages being hijacked is a little steep, though.

        Why? It can be completely automated. A million is no harder than four.
        [ Parent ]
        • Re:Robot.txt by KillerDeathRobot (Score:2) Wednesday March 23 2005, @11:31AM
          • Re:Robot.txt (Score:5, Informative)

            by PornMaster (749461) on Wednesday March 23 2005, @11:43AM (#12024992)
            (http://www.ilikepuffynipples.com/)
            A million may be no harder than four to hijack, but a million dummy sites that would actually fool people is much harder than four.

            This isn't about fooling people, it's about fooling a flawed technology to get false listings in the search engine results pages. It's about getting a lot of traffic. Yes, some people will be really pissed off when they get redirected to an affiliate program or something of the sort, but some small percentage of people will buy. If the cost to bring in a million visitors is miniscule because you're stealing search engine placement, and you get 50 people to sign up to something that pays you $50 a person, then you're up $2500 minus your hosting costs.

            $2500 to someone in Malaysia is a lot of dough for a little coding... they could work for $200/mo in some kind of outsourcing plan or make a year's wages in their spare time. What do you think they're going to do?
            [ Parent ]
            • Re:Robot.txt by TiggertheMad (Score:2) Wednesday March 23 2005, @01:56PM
      • Re:Robot.txt by fafaforza (Score:1) Wednesday March 23 2005, @11:07AM
        • Re:Robot.txt by mopslik (Score:2) Wednesday March 23 2005, @11:11AM
          • Re:Robot.txt (Score:5, Informative)

            by ReverendLoki (663861) on Wednesday March 23 2005, @12:54PM (#12025890)
            The key is that they are using a 302 redirect, which is used to signify that the redirect is temporary only. In a completely honest and trustworthy Internet, this is used to indicate that for whatever reason (HW failure, slashdotting, etc), the requested pages were temporarily unavailable on the main site and were being hosted elsewhere until the issue can be resolved. This is telling Google et al that the content being redirected to (Sesame Street, for example) is normally hosted on the redirecting site (Asianhookers). From then on, whenever Google returns the result of the Sesame Street pae, it is listed with the URL pointing to the Asianhookers page. It does this under the assumption that once the issue requiring the redirect is resolved, people will want to go to the "original" page, and will still be redirected to the content in the meantime.

            Aside from a filter on Google's end to resolve this, it would be nice if the practice of using 302 redirects also included a means of confirmation of the setup on the site being redirected to. If the site actually hosting the data does not in some way confirm the redirection, either through a tag in the header of the html, or perhaps in a third, predictably place file (much like a robots.txt file). Of course, this would first require te standard to be rewritten, and then would require people to actually abide by it.

            [ Parent ]
        • Re:Robot.txt by AssHatAnonymous (Score:3) Wednesday March 23 2005, @11:13AM
        • Re:RTFA (Score:5, Insightful)

          by Zeinfeld (263942) on Wednesday March 23 2005, @11:27AM (#12024794)
          (http://dotfuturemanifesto.blogspot.com/)
          Read the fucking article - you don't have to have any access to the victim site to do this - you only need to have a higher pagerank than them.

          The article is confused and baddly written. It does not explain the exploit being used ever. So stop dumping on people. It is not at all surprising that people don't get what is going on when the description is crud.

          What is really going on has nothing to do with 302, or at least very little. What these people are doing is to set up fake web sites using content filched from genuine Web sites. This allows (or is beleived to allow) them to climb the google rankings.

          I don't see why someone would use a 302 response when they can just copy the entire content unless there is some sort of bug in Google's pagerank that is not being explained. Copying the entire content is much simpler.

          So what the attacker does is to set up their site so that when the googlebot comes round it publishes some legitimate content, then when other folk follow the site from a google search they get pages infested with spyware or the like.

          This would certainly explain the number of times I have done a Google search and ended up at an idiotic 'search site' that does nothing for me.

          [ Parent ]
          • Re:RTFA (Score:5, Informative)

            by mla_anderson (578539) on Wednesday March 23 2005, @12:09PM (#12025347)
            (http://127.0.0.1/)

            No, the way it works is with the 302, but only for the googlebot.

            1. Googlebot goes to scammer's site
            2. Googlebot is given a 302 (redirect) to the victim's site
            3. Googlebot indexes the victim's site as belonging to the original URL
            4. Googlebot goes to the victim's site
            5. Googlebot realizes this URL is already indexed and "belongs" (according to the Google code) to the scammer.
            6. The victim's site get's lower rankings as the page is not even indexed, the scammer's site gets a higher ranking.

            For this to work the scammer has to give the 302 only to the googlebot, all other browsers need to get the content of the scammer's page. If you google for "cheapest car insurance" (IIRC) you can find an example of this. Change your User Agent accordingly and click on the top Google link, you'll end up at another site. Change back to Mozilla and you'll get the scammer's site.

            [ Parent ]
            • Re:RTFA by IMarvinTPA (Score:2) Wednesday March 23 2005, @12:29PM
            • Re:RTFA by kevjava (Score:1) Wednesday March 23 2005, @01:19PM
            • 1 reply beneath your current threshold.
          • Re:RTFA by Shaper_pmp (Score:2) Wednesday March 23 2005, @12:18PM
            • Re:RTFA by Zeinfeld (Score:3) Wednesday March 23 2005, @01:00PM
              • Spot on by clsc (Score:2) Wednesday March 23 2005, @02:51PM
        • 1 reply beneath your current threshold.
      • .....and get AsianHookers.com, etc.

        couldn't you have made that a link so I can just click on it?
        [ Parent ]
        • Re:Robot.txt by geminidomino (Score:2) Saturday March 26 2005, @10:48AM
        • 1 reply beneath your current threshold.
      • Re:Robot.txt by bill_mcgonigle (Score:2) Wednesday March 23 2005, @11:17AM
        • Re:Robot.txt (Score:5, Informative)

          by arkanes (521690) <arkanes AT gmail DOT com> on Wednesday March 23 2005, @11:25AM (#12024763)
          (http://slashdot.org/)
          One problem is that people use 302s when they should be using 301s, like directory sites. No doubt this is because they want to get referral counts up.

          A 302 is a "temporary redirect". Basically, it says that the content normally lives at the URL you requested but that, just this once, you should look at this other URL for the content. Googles response to a 302 is actually very reasonable. I suppose the best thing they could do is just not follow 302s.

          A 301 is a permanent redirect, indicating that the page isn't at the original URL and that all future requests should be made to the new one. I don't know what Googlebot does in this case but I assume it discards the original URL, which is what the standard recommends.

          [ Parent ]
        • 1 reply beneath your current threshold.
      • Re:Robot.txt by lowrydr310 (Score:1) Wednesday March 23 2005, @11:27AM
      • Go Phish by MacFanMR (Score:2) Wednesday March 23 2005, @11:40AM
        • Re:Go Phish by northcat (Score:2) Wednesday March 23 2005, @12:52PM
      • 1 reply beneath your current threshold.
    • Re:Robot.txt by nametaken (Score:2) Wednesday March 23 2005, @11:25AM
    • Re:Robot.txt (Score:5, Informative)

      by northcat (827059) on Wednesday March 23 2005, @12:48PM (#12025827)
      (Last Journal: Friday May 06 2005, @07:02PM)
      This is more like one site hijacking the ranking of another site. Suppose you're Ferrari and I'm the hijacker. You have ferrari.com and I have irule.com. Since you're ferrari.com you get very high rankings when people search for "ferrari" on Google. You're probably the first site displayed. And in the results page on Google, it displays a summary probably like "the official home page of ferrari cars". On my website I set up a 302 redirect to your website. It means, when someone visits my irule.com, they get redirected to ferrari.com. I don't do anything to your website, I don't have access to your website. I hope you know that Google indexes web pages by visiting those webpages with the user agent string "googlebot" and, of course, Google's IPs which are known to people. When Google sees that my page is 302 redirecting to ferrari.com, for certain reasons, it replaces ferrari.com in its index with irule.com. So when someone searches for "ferrari" the get irule.com as the first result instead of ferrari.com, and the summary still says "the official home page of ferrari cars". Now, I only 302 redirect irule.com to ferrari.com when googlebot visits my page. When anyone else visits irule.com, I give them something else, probably lots of ads, or I redirect them to some other site like LotsOfSmut.com. So I'm "hijacking" any references to ferrari.com on Google and its ranking. And when someone searches for "cars", instead of ferrari.com as the ninth result, irule.com is displayed. So... I profit (you do the math).

      (Sorry for dumbing down my post so much, too much experience explaining things to my grand mother)
      [ Parent ]
    • Re:Robot.txt by SpecBear (Score:2) Wednesday March 23 2005, @02:58PM
  • I've had it with Google! (Score:5, Funny)

    by Trolling4Columbine (679367) on Wednesday March 23 2005, @10:41AM (#12024080)
    This is the last straw! I'm going back to MSN, where I know that my data and privacy are being protected!!

    *duck*
  • Easy to prosecute, hmmm? (Score:5, Interesting)

    by r00t (33219) on Wednesday March 23 2005, @10:41AM (#12024090)
    (Last Journal: Friday May 05 2006, @11:53PM)
    Google has the records, and probably the original
    site exists with behavior dependent on browser name
    being GoogleBot or not. The replacement site will
    generally have some way of making money, which can
    be tracked via financial transactions.
  • Law of the Internet (Score:5, Insightful)

    by Cytlid (95255) on Wednesday March 23 2005, @10:43AM (#12024124)
    (http://geexology.org/ | Last Journal: Tuesday October 11 2005, @07:25PM)
    For every Good Thing, there are at least 100 different ways to abuse it.
  • 302 (Score:5, Informative)

    by auralrothko (836578) on Wednesday March 23 2005, @10:43AM (#12024135)
    I wasn't sure what a 302 hijack was, so here's the obligatory lowdown for those who didn't rtfa (from article linked page) This exploit allows any webmaster to have his own "virtual pages" rank for terms that pages belonging to another webmaster used to rank for. Successfully employed, this technique will allow the offending webmaster ("the hijacker") to displace the pages of the "target" in the Search Engine Results Pages ("SERPS"), and hence (a) cause search engine traffic to the target website to vanish, and/or (b) further redirect traffic to any other page of choice.
    • Re:302 (Score:5, Informative)

      by SassyDave (557868) on Wednesday March 23 2005, @10:52AM (#12024264)
      (http://thesmithfam.org/blog/)
      For the full details of the exploit, TFA [clsc.net] gives a pretty decent recipe:
      The technical part: How it is done
      Here is the full recipe with every step outlined. It's extremely simplified to benefit non-tech readers, and hence not 100% accurate in the finer details, but even though I really have tried to keep it simple you may want to read it twice:

      1. Googlebot (the "web spider" that Google uses to harvest pages) visits a page with a redirect script. In this example it is a link that redirects to another page using a click tracker script, but it need not be so. That page is the "hijacking" page, or "offending" page.

      2. This click tracker script issues a server response code "302 Found" when the link is clicked. This response code is the important part; it does not need to be caused by a click tracker script. Most webmaster tools use this response code per default, as it is standard in both ASP and PHP.

      3. Googlebot indexes the content and makes a list of the links on the hijacker page (including one or more links that are really a redirect script)

      4. All the links on the hijacker page are sent to a database for storage until another Googlebot is ready to spider them. At this point the connection breaks between your site and the hijacker page, so you (as webmaster) can do nothing about the following:

      5. Some other Googlebot tries one of these links - this one happens to be the redirect script (Google has thousands of spiders, all are called "Googlebot")

      6. It receives a "302 Found" status code and goes "yummy, here's a nice new page for me"

      7. It then receives a "Location: www.your-domain.tld" header and hurries to your page to get the content.

      8. It heads straight to your page without telling your server on what page it found the link it used to get there (as, obviously, it doesn't know - another Googlebot fetched it)

      9. It has the URL of the redirect script (which is the link it was given, not the page that link was on), so now it indexes your content as belonging to that URL.

      10. It deliberately chooses to keep the redirect URL, as the redirect script has just told it that the new location (That is: The target URL, or your web page) is just a temporary location for the content. That's what 302 means: Temporary location for content.

      11. Bingo, a brand new page is created (never mind that it does not exist IRL, to Googlebot it does)

      12. Some other Googlebot finds your page at your right URL and indexes it.

      13. When both pages arrive at the reception of the "index" they are spotted by the "duplicate filter" as it is discovered that they are identical.

      14. The "duplicate filter" doesn't know that one of these pages is not a page but just a link (to a script). It has two URLs and identical content, so this is a piece of cake: Let the best page win. The other disappears.

      15. Optional: For mischievous webmasters only: For any other visitor than "Googlebot", make the redirect script point to any other page free of choice.
      [ Parent ]
      • Re:302 by Qzukk (Score:2) Wednesday March 23 2005, @11:08AM
        • Re:302 by Anonymous Coward (Score:2) Wednesday March 23 2005, @11:26AM
          • Re:302 by thogard (Score:1) Wednesday March 23 2005, @07:26PM
          • 1 reply beneath your current threshold.
        • Re:302 by arkanes (Score:2) Wednesday March 23 2005, @11:38AM
        • Re:302 by yulek (Score:2) Wednesday March 23 2005, @03:48PM
          • Re:302 by yulek (Score:2) Wednesday March 23 2005, @08:02PM
            • Re:302 by yulek (Score:2) Wednesday March 23 2005, @08:05PM
          • 1 reply beneath your current threshold.
      • Re:302 by xeer (Score:1) Wednesday March 23 2005, @11:34AM
        • Re:302 by arkanes (Score:2) Wednesday March 23 2005, @11:46AM
        • 1 reply beneath your current threshold.
      • Re-re-explained (Score:5, Informative)

        by fizbin (2046) <martin&snowplow,org> on Wednesday March 23 2005, @12:03PM (#12025291)
        (http://www.snowplow.org/martin/)
        Okay, so basically this is the problem: when Google encounters a status 302 redirection (as opposed to the status 301 redirection) it then indexes the content as belonging to the initial URL, not the URL at the end result of the 302 redirection. Other things happen later because of google's design.

        302 redirections are temporary redirections - the idea is that a 302 is supposed to be used when someone needs to be redirected to a new page, but should still use the original URL if they want to come back later. As an example, the page http://purl.oclc.org/OCLC/PURL/CONTRIBUTORS [oclc.org] performs a 302 redirect to http://purl.oclc.org/docs/contributors.html [oclc.org]. This means that although your web browser needs to go to some other URL for the content at the moment, they really should remember the first url as the permanent one.

        Contrast this with what happens when your browser visits http://snowplow.org/martin [snowplow.org] - you get sent a 301 redirect to http://snowplow.org/martin/ [snowplow.org]. (Note the extra slash) In this case, the server is saying "the url with the slash on the end is the real location, and you should not try to come back here without the final slash in the future."

        Ideally, if every web browser behaved according to spec., bookmarks (remember bookmarks?) would get automatically updated to the new URL when you selected them and the redirect was a 301 redirect. However, for a 302 redirect, the bookmark would stay as is.

        302 redirects can be very useful when you want to set up a hierarchy of "logical" URLs that will permanently point to the correct location. 301 redirects are useful when you're obsoleting an old URL and wish people to go and use the new URL from now on.

        Okay, so how does this relate to google? Well, let's suppose that you have a great site on fruitbats. I can set up http://www.example.com/topics/fruitbats to be a 302-style redirect to your site, essentially saying "The information at http://www.example.com/topics/fruitbats is temporarily being hosted by http://www.yoursite.com/". Now, google when it spiders pages will see that, will go retrieve the text from your page and will then index it under http://www.example.com/topics/fruitbat, since after all I just gave a temporary (302) redirect.

        But it gets worse, because a final part of google's indexing process is to compare pages for identical text, and throw out all but one of the URLs. Apparently this stage has nothing to go on other than the text and the recorded URLs, and so your URL stands a fifty-fifty chance of being thrown out.

        Except that I've not just redirected http://www.example.com/topics/fruitbats to your site, but also http://www.example.com/topics/fruitbat, http://www.example.com/topics/fruit_bat, and http://www.example.com/topics/fruit_bats. Now your lone URL doesn't stand much of a chance of being the one kept by the "throw out duplicates" processor, does it?

        In a sense, of course, there's little google can do to prevent this, because even if they weighted 302-redirects lower in their "throw out duplicates" stage, I could always just go snag a copy of your website each time googlebot visits, in essence doing the redirection myself. (How? Just search the apache mod_rewrite guide [apache.org] for "Dynamic Mirror") However, doing it through 302 redircts means that google pays for the bandwidth to go get your page, not me. (Not that this is necessarily a signficant amount of bandwidth, since we're only talking about basic google here and not images. Depending on the revenue you get by misdirecting google queries it might be economical)

        Of course, for this to really work, I'd need a list of websites sorted by category to build up my redirect db. But wait! The ODP feed provides exactly that.

        I am a little bit wary of doi
        [ Parent ]
      • Re:302 (Score:5, Interesting)

        by Ryan Stortz (598060) <ryan0rz@gma i l . com> on Wednesday March 23 2005, @01:33PM (#12026444)
        I think a resonable solution to this would be for Google to send a second spider to the site for every 302 Redirect they find, with a user-agent indicating its IE or any other browser. Then compare the data.

        Although, they could probably still figure out it's google by their IP, but it's a step in the right direction.
        [ Parent ]
      • 1 reply beneath your current threshold.
    • Re:302 by ari_j (Score:2) Wednesday March 23 2005, @10:53AM
      • Re:302 (Score:5, Informative)

        by StrongAxe (713301) on Wednesday March 23 2005, @11:19AM (#12024665)
        I'm still not seeing any explanation of how it works, only what happens when it does work. 1. Phisher creates (say) cïtïcorp.com and makes the home page redirect to the real citicorp.com page. 2. Googlebot browses cïtïcorp.com and gets a redirect to the real citicorp.com, and indexes its contents 3. User does a Google search looking for Citicorp, and finds cïtïcorp.com page that appears to contain the valid data (and it might be the only such page, if the legitimate page gets removed through the duplicate-removal process) 4. User clicks through to cïtïcorp.com expecting to see the valid web page 5. Phisher's server sees that the request is not from a Googlebot, so it serves up a fake page rather than redirecting to the legitimate real one. 6. User believes he is at the real citicorp.com web site, when he is in fact at the bogus cïtïcorp.com website, legitimized by Google. 7. Identity theft. 8. Profit. (OB. Slashdot joke.)
        [ Parent ]
        • Re:302 by ari_j (Score:3) Wednesday March 23 2005, @11:49AM
    • Re:302 by windowpain (Score:2) Wednesday March 23 2005, @10:55AM
    • But what's the point? by hawk (Score:2) Wednesday March 23 2005, @11:23AM
  • 301 redirects (Score:3, Interesting)

    by Anonymous Coward on Wednesday March 23 2005, @10:45AM (#12024158)
    A few months ago, I rearranged my website. To make sure people could still find things, I put 301 redirects on all the old pages that I moved.

    I noticed in my logs that search engines have repeatedly requested the 301 pages, but often don't follow the links to the new pages. And when searched with google, the pages still show up with the old urls. Should I be using 302 redirects instead?
    • Wrong (Score:5, Informative)

      by PornMaster (749461) on Wednesday March 23 2005, @11:09AM (#12024526)
      (http://www.ilikepuffynipples.com/)
      301 is a permanent redirect, 302 temporary.

      This is why the "302 hack" works. If the redirect is only supposed to be temporary, the search engine keeps the URL of the 302 as the URL for the document, but indexes the content of the page to which the redirect is directed.

      301 is what you should be using to point the SEs to your new pages if you've moved them. The behavior is supposed to be for the SEs to replace the old URL in their index with the new one, and furthermore count all links to the 301ed URL as being towards the new one. I don't know why it's not working for the grandparent poster, but it's the way that the functionality is "advertised" for Google and Yahoo, and it should work.
      [ Parent ]
      • Re:Wrong by JaseOne (Score:1) Wednesday March 23 2005, @11:48AM
    • 2 replies beneath your current threshold.
  • Why? (Score:2, Insightful)

    by dep01 (730107) on Wednesday March 23 2005, @10:46AM (#12024177)
    (http://www.voidone.com/)
    Why is it seemingly man's mission to "bring down" something that seems to provide such a great service for everyone?

    "Oh! Look! Something beautiful! Something impressive! I must destroy it!"

    pah. feeling jaded today, i guess.

    • Re:Why? by bratboy (Score:1) Wednesday March 23 2005, @11:17AM
    • Re:Why? by a16 (Score:2) Wednesday March 23 2005, @11:18AM
      • Re:Why? by dep01 (Score:1) Wednesday March 23 2005, @11:54AM
    • Re:Why? by xsbellx (Score:2) Wednesday March 23 2005, @11:20AM
    • Re:Why? (now iTMS) by notthepainter (Score:2) Wednesday March 23 2005, @12:03PM
    • Re:Why? by northcat (Score:2) Wednesday March 23 2005, @01:08PM
      • 1 reply beneath your current threshold.
    • Re:Why? by a_random_geek (Score:1) Wednesday March 23 2005, @03:13PM
    • 5 replies beneath your current threshold.
  • Do what I'm going to do... (Score:4, Insightful)

    by