Slashdot Mirror


Google 302 Exploit Knocks Sites Out

clsc writes "The exploit: Redirect via 302 to another page of your choice, then watch as the URL of your redirect script replaces the URL of that carefully selected page in Google's search results. Once this happens, feel free to redirect any visitor that is not Googlebot to any other page of your choice. Also applies to other search engines as well (not Yahoo! though)."

57 of 410 comments (clear)

  1. Yikes! by LinuxGeek · · Score: 5, Funny

    Web wide malware. The return of Goatse cannot be far behind... Pun intended.

    --

    Kindness is the language which the deaf can hear and the blind can see. - Mark Twain
    1. Re:Yikes! by Silverlancer · · Score: 5, Funny

      Apparently slashdot has been hit! A mischevious hacker has added a second "your" to the article:

      "The exploit: Redirect via 302 to another page of your choice, then watch as the URL of your your redirect script..."

    2. Re:Yikes! by hanssprudel · · Score: 4, Insightful

      More seriously: How many of you have needed to log in to a machine remotely from some Windows PC, and just googled for "putty" and used the first link? Imagine how many machines you compromise by simply replacing putty's homepage in the rankings.

  2. Splendid by Netsensei · · Score: 5, Insightful

    1. post how to generate more traffic to one's website by exploiting a flow in google on /.
    2. show a "random" ad (336px by 280 px) promoting 'google adsense' clearly stating "how to turn your website into a revenue generator in minutes" at said post.

    ...

    3. $$$

  3. goog by kloidster · · Score: 5, Funny

    SELL SELL SELL SHORT!!!!

    1. Re:goog by _Sharp'r_ · · Score: 4, Informative

      I know you are joking, but this problem pre-dates the IPO.

      The basic issue is that not only can purposeful individuals kick you out of the serps with a simple 302 from a higher pagerank page, but people who use 302 redirects to track outgoing links from their site (and several content management software packages do this by default) can accidently do the same thing and there isn't anything the real webmaster can do about it.

      It's been discussed in much greater detail in a thread at webmaster world for a while, as well.

      --
      The party of stupid and the party of evil get together and do something both stupid and evil, then call it bipartisan.
  4. yawn by evenprime · · Score: 5, Funny

    boy, sending me to the wrong page is such a scary and horrible thing to do. Luckily my browser came equipped with the special "back button" anti-malware plugin.

    --

    "Weapons should be hardy rather than decorative" - Miyamoto Musashi
    I think that goes for OS's too
    1. Re:yawn by goldspider · · Score: 5, Funny

      Obviously you've never tripped a well-concealed Goatse landmine. No browser is equipped to deal with that kind of damage!

      --
      "Ask not what your country can do for you." --John F. Kennedy
    2. Re:yawn by R.Caley · · Score: 5, Funny
      it will be when your 14 year old boy searches for something for his research paper and gets redirected to pr0n instead.

      God knows, 14 year old boys need to be tricked to make them look at porn.

      --
      _O_
      .|<
      The named which can be named is not the true named
    3. Re:yawn by Anonymous Coward · · Score: 5, Insightful

      I don't know if you're a father or something, but I was less than 10 years old when I first looked at porn and it was love at first sight! That did not make me a sick pervert: I'm a engineer now and I don't regret a second having looked at porn magazines in my youth.

    4. Re:yawn by eno2001 · · Score: 4, Funny

      That's OK. I had mod points and I did it. Oh wait... ;P

      --
      -"...bad old ideas look confusingly fresh when they are packaged as technology" - Jaron Lanier (Digital Maoism on Edge.o
    5. Re:yawn by MadMartigan2001 · · Score: 5, Insightful

      Hmmm, lets see if we can calculate this...

      Research paper = good
      Porn = bad
      Young boy = Becomming a sexual being

      Grand total = Neurotic young man who feels guilty for acknowledging his sexual feelings.

      Why is it so hard for some people to acknowledge the simple fact that young people of all ages have sexual feelings that are natural. And to repress those feelings and smother them in guilt is a very very damaging thing to do.

      OH ya, I forget, all the fundamentalist (pick any religion) know exactly how we are all supposed to feel. Excuse me while I go puke!

    6. Re:yawn by VanillaCoke420 · · Score: 4, Funny

      As a former 14 year old boy I can only say that if I had internet at that age, I would not need to be tricked into going to those websites...

    7. Re:yawn by Anonymous Coward · · Score: 5, Funny

      "I swear Dad, I was just looking up stuff for my... uh... research paper, when suddenly, I was redirect to goatse!"

      "That's fine, but why is that wine bottle shoved in your ass?"

      "It was a one in a million shot, I tell ya..."

    8. Re:yawn by lpangelrob2 · · Score: 4, Insightful
      Is mentioning porn = good and fundamentalist religion = bad the way to get modded up here now? Odd. Allow me to balance this rant.

      Sex is good. Frankly, sex is great. Honestly, it's one of the best things that I've ever experienced. :-) And since it is great, these vague notions of "fundamentalist religions" that you cite never actually say "sex is bad". They do put conditions on sex, but it's up to the individual to follow them and I get the impression you aren't bound by these conditions in any event.

      Porn is porn. I'm not really going to put any moral value to it, but if you can watch it without unhealthily raising your expectations for real world women, or if you can be with real world women at that point without thinking of the porn... more power to you. Some couples say it helps their sex life, but then who are you really making love to? Your spouse or your fantasy?

      There are a couple thousand different ways this conversation can go from here (including offtopic :-) but I'll quit for now.

    9. Re:yawn by john.mull · · Score: 5, Insightful

      [diatribe]

      Having the feelings is natural. Natural as in God gave them to us as a part of our physical being. There might be debate as to whether they are there for procreation only, which depends on your version of extremism. However, the feelings ARE natural and purposefully put there.

      That does NOT mean that they should be acted on. As a fallen creature, we also have the urges to lie, cheat, steal, hurt others, and even hurt ourselves. These tendencies are seen negatively and should be. We do need to edit our responses to our feelings, sexual or not.

      Choosing to feel how I want - now that's complete freedom. Unfortunately, we aren't given that freedom. Instead, we choose between right and wrong. A moral choice based on morality which can not be defined independly from God.

      [/diatribe]

      End product? Surpression is not the only alternative to acting on them. Elimination of temptation is a good way also. Don't watch that National Geographic special on that lost Amazon tribe. Don't buy the Sports Illustrated swim suit edition. (You should have seen the look on the Best Buy cashier's face (a guy), when I demanded that he remove the SI software/magazine display from the counter. It was offensive. He thought I was kidding. I was not. It was a priceless look.)

      You can choose to avoid the temptation. Divert your eyes. Divert your thoughts. What are the guidelines? Not mine to say, but it can be done.

      john.mull

      --
      Isaiah 43:19 (NCV)
      Look at the new thing I am going to do. It is already happening. Don't you see it?
    10. Re:yawn by BoomerSooner · · Score: 5, Insightful

      Because we live in Conservative America where a breast is a horrible blight on society. I love going to Europe where shower commericals show nude women and noone seems to give a shit. Not to mention people on the beaches.

      What the fuck is wrong with people in this country. Oh yea, sex is evil & a sin if it's not for procreation. Religion is the root of all evil.

    11. Re:yawn by MythoBeast · · Score: 4, Insightful

      I hate to be the one to break this to you, but most people fantisize during sex. Men and women both.

      Porn doesn't raise people's expectation of the habits of real women any more than romantic movies raise women's expectations of real men. They do a little, but then again there are a few real men and women who take a clue or two and get ideas from these media in order to help please their spouses, girlfriends, whatever.

      As far as 14 year olds seeing porn is concerned (trying to get a little bit on topic), I'm firmly convinced that our country's simultaneous demonization and glorification of sex is one of the things that makes kids curious about it. I really wish that both groups would just stop it and start teaching children about sex as a natural human function that needs to be performed with caution and discression.

      --
      Wake up - the future is arriving faster than you think.
    12. Re:yawn by ShamusYoung · · Score: 4, Insightful

      Porn doesn't always mean nice shots of bare-breasted hotties. It ALSO can mean "married lactating grandmas doing their first anal with an underage donkey!"

      If someone is doing a malicious redirect, I expect they would rather show you the latter and not the former. In either case, viewing ANY porn image can get you fired or otherwise in trouble in the right (wrong) situation.

      Someone mentioned using the BACK button. Great thinking, assuming you know you've been redirected. If the page looks right and behaves properly, how many people will notice they have been redirected to www.nat1onalbank.com, and enter their personal info. Ooops! Oh well. The BACK button can let me take back my password, right?

      Right?

      --
      --This sig is in beta. Please let us know abut any errors you find.
    13. Re:yawn by MadMartigan2001 · · Score: 4, Insightful
      "we also have the urges to lie, cheat, steal, hurt others, and even hurt ourselves"

      Sorry, I do not have those feelings. If you do, you should seek help. What your feeling is not natural, nor is it healthy. And scariest of all, when talking about natural sexual desire, you use the analogy of "lie, cheat, steal, hurt others" as examples of similar human behavior. Now that, is really the telling part of your views about sexual desire, creepy.

    14. Re:yawn by NanoGator · · Score: 4, Funny

      "t will be when your 14 year old boy searches for something for his research paper and gets redirected to pr0n instead."

      "Son! What are you looking at? Is that ... Porn!?!"

      "I told you! I'm working on a report!"

      "With naked women?!"

      "It's a History report, so I hit the History button on your computer!"

      --
      "Derp de derp."
    15. Re:yawn by Civil_Disobedient · · Score: 4, Insightful

      if you can watch it without unhealthily raising your expectations for real world women, or if you can be with real world women at that point without thinking of the porn... more power to you.

      And if you can't, you'll probably have trouble getting/maintaining a real-life GF, which will make you d/l more porn, etc. ad. infinitum.

      But so what? People can choose all sorts of ways to make themselves unappealing to the opposite sex. Maybe the moral majority should start a campaign against leisure suits.

    16. Re:yawn by nacturation · · Score: 4, Funny

      And if you can't, you'll probably have trouble getting/maintaining a real-life GF, which will make you d/l more porn, etc. ad. infinitum.

      At first I thought you wrote "a real-life GIF". Talk about misreading!

      --
      Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
    17. Re:yawn by robertjw · · Score: 4, Insightful

      And since it is great, these vague notions of "fundamentalist religions" that you cite never actually say "sex is bad".

      Even though we are in serious OT territory here, I thought I would throw my two cents in. Before I start, let me make it very clear that I am a member of a "fundamentalist religion", I grew up Methodist, and have been part of a non-denominational congregation since I was 15. That said, I don't completely agree with everything the fundamentalists believe, and sex is one of the items at the top of the list that I have issues with.

      Fundamentalists may not teach the "sex is bad", but they do strike a serious fear of sex in the minds of all of their teenagers. I grew up believing that having sex outside of marriage is probably the worst sin you could commit. Now I personally don't think teen sex is a good thing, really, who wants a baby at 17, but the church tends to go so far that they create (as anothe poster commented) this air for mystery about the whole thing. The church I went to often discouraged dating, kissing, being alone with someone of the opposite sex, anything that could possibly lead to sex. The problem with this is it also screws up much of a kid's psychological and sexual maturity. If you follow their rules, you never gain the experience needed to be succesful in relationships down the road. If you don't you are an outcast and a bad kid.

      Why do you think that the Christian church in America has a higher divorce rate than the general population? These kids are taught that you have to be married to have sex, and it's evil to date, so they get married at 18 to the first nice christian girl the find, just so they can sleep together. Five years they figure out that they really don't like each other, or one of them wants to go sow some wild oats, so they get divorced. I've seen in many times.

      I don't know what the right answer is, but the fundamentalist church is alienating itself from the common man by focusing on issues that either aren't important, aren't a sin or just aren't worth fighting about. They focus on things like sex, drinking, smoking, bad words and homosexuality, but ignore things like lying, cheating, stealing, and greed.

    18. Re:yawn by ltbarcly · · Score: 3, Funny

      I base my morality on the teachings of the tooth fairy.

    19. Re:yawn by Guppy06 · · Score: 3, Informative

      "I demanded that he remove the SI software/magazine display from the counter."

      Best Buy owned the magazine stand, the counter, the time of the person you were outright harassing, the building the exchange took place in, the merchandise you were holding in your hand until you handed over your money for it... in short, it's their private property! If you don't like it, go away!

      I'm no fan of T&A magazines, if for no other reason than because it's a lame and overused marketing gimimck. But you ask someone to change what they're doing in their own store, you do not demand. And if they say "no," that's the end of the matter. You have no right to dictate the lives and decisions of other people, no matter what your religion may tell you.

      "Divert your eyes. Divert your thoughts."

      Do what you will with your eyes and thoughts. Leave mine alone.

    20. Re:yawn by snorklewacker · · Score: 4, Insightful

      Wow, thank you for that eloquent summation. It so well summarizes what I was taught, what I believed, and why I later repudiated utterly the entire belief and community that reinforced this warped worldview.

      You want to remove your temptations? Stay the fuck home and leave the rest of us alone then.

      --
      I am no longer wasting my time with slashdot
    21. Re:yawn by d34thm0nk3y · · Score: 4, Insightful

      I am a member of a "fundamentalist religion", I grew up Methodist, and have been part of a non-denominational congregation since I was 15. That said, I don't completely agree with everything the fundamentalists believe,

      Then you are not a fundamentalist. Nor would I consider a "non-denominational congregation" a fundamentalist church in general.

      Is mentioning porn = good and fundamentalist religion = bad the way to get modded up here now? Odd..

      As for the GP the answer is yes because it is true.

    22. Re:yawn by mysticgoat · · Score: 4, Insightful

      There is a definite difference between being certain in your faith (internally) and claiming as fact (externally) that which cannot be tested or demonstrated by human means. Yes, there are human limitations, but this is not my belief, since I can demonstrate it with the same solidity that I can use to demonstrate the facts of gravity:

      For instance, we have an inability to know Pi with absolute precision. Perhaps a god could know Pi with perfect precision, or perhaps not... but there are proofs that it cannot be known within human experience. Another instance: not only can we not measure our ability to use our human imagination, we cannot even conceive of a yardstick that would allow such a measure. We are limited in our ability to comprehend this core part of our nature.

      This argument has been presented so many times before, and in so many different formal logical systems, that it can be accepted as a kind of universal axiom (like Plank's Constant, for instance). You can get to it as an extension of the cosmologist's anthropic principle, but there are also ways to get to it from any world view that is not arbitrarily dismissive of new information about the world.

      Someone needs to mod this as "-1 infantile philosophy". I think I've been suckered by trolls...

  5. Google can't be wrong by Anonymous Coward · · Score: 5, Funny

    Insert MS blame here

  6. Oracle Application Server by sinator · · Score: 3, Interesting

    Oracle 9iAS and 10gAS are VERY heavy on the 302 redirects (as a way to moderate traffic using mod_oc4j).

    Most of the redirects are innocuous, for example with an application whose context-root is /foo, you'd see a redirect from http://www.example.com/foo to http://www.example.com/foo/, but I can see this product borking up search results as its use becomes pervasive in the enterprise.

    Since the product can't be changed, I'd probably change Google's behavior.

    --
    Three Step Plan:
    1. Take over the world.
    2. Get a lot of cookies.
    3. Eat the cookies.
  7. Re:everybody uses 302 by Junior+J.+Junior+III · · Score: 3, Insightful

    It's an exploit if you can't prevent someone from misusing 302, or to filter out malicious uses of 302 from legitimate ones.

    --
    You see? You see? Your stupid minds! Stupid! Stupid!
  8. Re:everybody uses 302 by Anonymous Coward · · Score: 5, Informative

    Hey look! Someone forgot to RTFA!

    You use 302 to hijack someone else's page in Google's search results. Your bogus ad infested page shows up instead of the actual content the user was searching for (and thought they were going to see), while the real website that you hijacked doesn't get any more Google traffic. That's the exploit.

    Dumbass.

  9. Seems like by kc0re · · Score: 4, Funny

    Seems like all the hackers are struggling now-a-days. There are no "good" exploits coming out anymore. No directory Unicode transversals.. No Code Red, No Nimda. Not even SQL Slammer...
    We haven't had a good exploit/0day in how long? Since the Webdav exploit? Or the RPC DCOM? Now we have to use Google, phishing techniques, and URL redirection. We are scraping the bottom of the barrell apparently.

  10. Fake Banks by Anonymous Coward · · Score: 4, Insightful

    The use of the exploit isn't just to childishly send people to Goatse - it's about money. What happens when you go to your bank's website and get redirected to an identical-looking website that steals your information?

    1. Re:Fake Banks by SmurfButcher+Bob · · Score: 4, Interesting

      You need to OWN the site that was searched. This is no different than keyword bombing tricks of old; it is merely a bait-and-switch.

      Not news.

      --

      help me i've cloned myself and can't remember which one I am

    2. Re:Fake Banks by Taladar · · Score: 3, Informative

      You can do nothing with this that couldn't be done better with DNS Spoofing so it is not as if the problem was a new one...

    3. Re:Fake Banks by millette · · Score: 4, Insightful

      euh, ssl certificates ?

    4. Re:Fake Banks by That's+Unpossible! · · Score: 4, Informative

      You need to OWN the site that was searched. This is no different than keyword bombing tricks of old; it is merely a bait-and-switch.

      Not news.


      I agree it's old, even the guy that wrote the article admits it goes back a few years. But you are wrong about how it works. These aren't just extra pages ... these pages can actually REPLACE yours in the search results, since Google sees the two pages as duplicates of each other, but doesn't realize it has been "tricked."

      --
      Ironically, the word ironically is often used incorrectly.
    5. Re:Fake Banks by R.Caley · · Score: 5, Insightful
      I use google all the time if I'm on someone else's computer since my bank has a strange URL

      You access your bank from a computer you don't have complete control of?

      Have you considered tapdancing in minefields as an alternative?

      --
      _O_
      .|<
      The named which can be named is not the true named
    6. Re:Fake Banks by vperez · · Score: 3, Insightful

      Anyone who uses Google to search for their bank instead of getting the URL from their bank statement needs to be taught better.

      Users need to be a lot less trusting of things online, especially if its the result of a search.

  11. Can I use this to knock out a fraudulent site? by Buran · · Score: 4, Interesting

    A site registered and hosted using stolen funds from my credit card is still online following phoned and faxed demands for revocation and refund sent to the registrar/host. Can I somehow use this to send an entire domain to a black hole until the hosting/domain are revoked? It wouldn't be hacking, but it would make me feel a lot better to see the scammers knocked offline. If no one can get to them on google, they can't get any scam income. And what are they going to do -- sue me? That just would result in my slapping them with *criminal* charges as well as a motion for dismissal and a countersuit.

  12. Re:The dark path by filmmaker · · Score: 5, Insightful

    This is totally true.

    There are basically two schools of thought in SEO as I've seen it. You can either try and be everywhere (spamming by creating zillions of pages and links) or you can be interesting (like this blog; people want to come here, instead of needing to be tricked).

    Unfortunately, most people are about as interesting as watching grass grow, and they know it. So they spam the search engines and aim for the lowest common denominator. Sad, really.

  13. Fun by stang7423 · · Score: 4, Interesting

    Wow. That's a fun exploit... I can't wait to go tell my boss why our site links to a pron site on google.

    All kidding aside this could be a major problem for some of the more controversial websites. Akin to the Googlebombing that was just mentioned yesterday this could be the next major attack scheme on the net. Imagine a pro-life site subverting a pro-choice site, Neo-nazi's subverting a site intended for Jewish children, the US government subverting Al Jazera...

    Not a whole lot of fun IMHO. I trust google to return what I search for, if this changes I and a whole lot of other nerds are going to be left wandering aimlessly around the net.

  14. Re:WTF by LiquidCoooled · · Score: 5, Insightful

    If the googlebot scans the redirected page and assigns weights based on the end result page, but assigns the ranking to your original page, then you are essentially stealing pagerank from the proper host.

    That is my understanding of the problem, and part of the reason why redirects appear to get higher rankings than simply copy and pasting somebodies content.

    As for covert googlebots, I'm sure they exist as R&D items, but doubt they would be setup in the manner you describe.

    --
    liqbase :: faster than paper
  15. Further Reading by mike2R · · Score: 5, Informative

    The main thread about this on WebMasterWorld is over 500 posts now.. lots of good info there.

    --
    This sig all sigs devours
  16. Re:WTF by gl4ss · · Score: 4, Informative

    from tfa:
    *it allows a hijacking website to replace pages belonging to target websites in the Search Engine Results Pages*

    that's what it does. think about it for a while. sure they could have protection but at the time it seems they DO NOT.

    *What does it look like?
    The Search Engine Results Pages ("SERPs") will look just like normal results to the searcher when a page hijack has occured. On the other hand, to a webmaster that knows where one of his pages used to be listed, it will look a little different. The webmaster will be able to identify it because (s)he will see his/her page listed with an URL that does not belong to the site. The URL is the part in green text under listings in Google.*

    a lot of people use google as a sort of bookmarks page(with keywords they remember), potentially this could hurt them. what it more likely happens if it isn't fixed is that advertisers start to pollute the results even more, eventually leading google to be useless.

    --
    world was created 5 seconds before this post as it is.
  17. This really is a big deal. by bigtallmofo · · Score: 4, Interesting

    Anyone that wants to steal your traffic can take advantage of this. Nearly all the sites that I have created in the last year have been purposely hijacked by this and don't show up in any Google rankings. I've learned to live with it despite contacting the jerk responsible who pleaded innocent and said he wasn't very technical and didn't know what was going on.

    Historically, good content meant good search engine placement. Now that this little trick is being more publicized, it just decreases the amount of time required for someone to hijack your entire site and remove it completely from the search engine results.

    --
    I'm a big tall mofo.
  18. Wait... by zBoD · · Score: 5, Funny

    Do you mean this is not www.kuro5hin.org ??

    --
    BoD
  19. Re:WTF by slimak · · Score: 3, Funny
    a lot of people use google as a sort of bookmarks page(with keywords they remember)

    I didn't even realize that I did this until I read your post. Not that anyone cares, but I only have 4 or 5 regular bookmarks; the rest of the pages I need to goto I either a) remember because the url is so easy or i go there so much (e.g., slashdot, orderyourrussianwife.com, etc) b) do a search for them as needed (e.g. martin vetterli's homepage), or c) use the url auto-complete in the browser.

  20. Google Search Results Redirected to Ebay by Junior+Samples · · Score: 4, Interesting

    I've noticed that a lot of my google searches get redirected to an Ebay search page even though the displayed url in the search results is a non-ebay url. I checked the Google cached result and it was not the same as the re-directed page.

    It's very annoying as I haven't been able to figure out what is going on. The same Ebay search results show up under dozens of urls in the Google search results

  21. Why This is Such a Big Deal (A Summary) by Anonymous Coward · · Score: 5, Informative

    There seems to be a lot of confusion as to why exactly this is such a big deal. A lot of people saying there's no problem or that this is nothing... basically just not understanding the issue. Let me explain:

    Suppose you have a small business under the domain http://xyz.com/, and search engines bring you a lot of traffic because you rank high for keywords in your market. You have a lot of people out there linking to you, a lot of satisfied customers, good content on your site. You're always in the top 10 somewhere when people search for "xyz widgets".

    Well, this issue with Google makes it very easy -- incredibly easy -- for someone to knock your site out of the rankings entirely. And I mean for *everything*, to where searching for your own company name in quotes literally buries you hundreds of pages deep in the results. We're talking sites going from getting 1000 unique hits to 10 overnight.

    And here's the kicker: It requires absolutely no technical knowledge, no time investment, and is perfectly legal...

    All I have to do is have another domain handy that is roughly as popular as yours. And I make a "links" page, like one of those directory services, that lists your website. But instead of being a normal hyperlink, it's a CGI (or PHP or ASP or whatever) script that generates a 302 redirect to your domain... Now, these are very simple, common scripts. One-liners that you can download from cgiscripts.com and stick on your server. The original intent of these scripts is to track which links are being clicked on your site. But now they've found a new use, because when Google gets that 302, all hell breaks loose.

    See, according to the HTTP spec, 302 is a *temporary* redirect, which means Google is supposed to interpret whatever content it finds at the 302 target (your site) as really belonging to the URL of the source (my site). Google is just obeying the spec strictly here, and with devestating results. Why? BECAUSE THE DUPE FILTER NOW KICKS IN! You see, Google has a "dupe filter" that says if the same exact content is found for two unique URLs, then one of the URLs is obliterated in the rankings. Because after all, searchers don't want to be finding the same content over and over. If that happens, they'll start using a different search engine. But Google, sticking strictly to the HTTP spec, doesn't know who the content really belongs to when it gets a 302.

    So Google essentially flips a coin. And if it comes up tails, say bye-bye to your domain in the rankings. Your *entire* domain. Because the dupe filter isn't limited to just the page that the 302 is pointing to -- it applies across your entire domain.

    These 302 "exit-link-trackers" are all over the web. They've been used by webmasters for years. But it's just recently that Google has started treating 302 this way, so it didn't have any bad effect before. But now it kills you.

    The funny thing is, the solution seems pretty simple: Just stop treating 302s this way if they point to a different domain. But for whatever reason Google isn't listening. Hopefully the press that's being generated now will give them the kick in the ass that they need.

  22. It happened to me.. by Dynamoo · · Score: 4, Informative
    It happened to me, and I'm sure by accident. I have a reference page that gets about 1000 hits a day.. and all of a sudden traffic dried up. It wasn't that it had gone down - Google was suddenly sending zilch.

    Well, I knew about the 302 bug (in fact, it's been known for months in professional webmaster circles).. so, I did an allinurl:mydomain.com/mypage.htm search on Google to find the culprit. Low and behold, it was some blog page about one PR below my page with a script that redirected through a 302. The catch was that this redirect script ONLY worked if you clicked on it from the blog itself - if you clicked on it from the Google SERPs you got a 500 server error.. so in effect, Google misidentified the redirect page as my actual page and then subsequently tried to spider it from the URL directly and got a 500 error.. the result being that I was dropped from the index. Was this malicious? Hardly - the webmaster had compiled a small list of cool, useful links - not knowing that his buggy redirector was killing those sites off.

    So whaddya do? I tried emailing the webmaster but everything bounced. It looks like he was out of the country. I tried giving Google feedback, but frankly that's just like offering up a prayer to the Great Google God - so I also used the BASE HREF trick mentioned in the article, and after a few days the page came back in the index as normal. So, either that trick worked or the Google God answered my prayers. I'm guessing at the former.

    --
    Never email donotemail@WeAreSpammers.com
  23. 301 and 302 have very different meanings. by muonzoo · · Score: 4, Informative

    This "exploit" isn't very interesting and the author really doesn't seem to have a good grasp of the HTTP protocol design, the end-to-end model, or the internet in general.


    I'd be very careful before I blindly changed all my redirects to 301s. The semantics behind a 301 and 302 are VERY different and unless you want people to replace the original URI with the target in your 301s, forever, you might be entering a world of hurt.


    From RFC 2616 -- HTTP/1.1 :

    10.3.2 301 Moved Permanently

    The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. Clients with link editing capabilities ought to automatically re-link references to the Request-URI to one or more of the new references returned by the server, where possible. This response is cacheable unless indicated otherwise.

    ...

    10.3.3 302 Found

    The requested resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field.

    ...

    This is a common theme in the high-tech world; Joe Hacker figures out a problem and a 'solution'. Problem is, they don't understand all the implications of the solution. That doesn't stop them from yelling loudly about the solution. Without a comprehensive explanation of the impact of the 'solution' you might be just causing yourself harm in other areas down the road.


    Education and thorough analysis are always a good idea when you are dealing with complex systems that might have emergent behaviors. This is certainly one of the bigger pet-peeves at the IETF and with the IESG.

  24. Sombody has to say it by marvin2k · · Score: 4, Funny

    *waves hand*
    "This isn't the webpage you are looking for."

  25. Re:Bollox by Patrick13 · · Score: 3, Informative
    It doesnt replace the URL at all. My reading is that google simply adds a new page in the database for the url you gave it. In this regard, how is this any different to a wget --mirror on the attempted "hijacked" site? Maybe more efficient but the net result is you are just trying to blag google hits of someone else's content.

    PageRank _should_ sort this out as I'm sure lots more people will be linking to news.bbc.co.uk than to r.example.tld/foo/rAndoMLettERS (from the example).

    Storm in a [child's] teacup.

    I have seen this exploit used in a variety of ways.

    For instance, this kind of redirect could be used to highjack Amazon.com - the user types in Amazon into a search box, sees the title and snippet that matches amazon, clicks it, the hijacker gets affiliate commission credit for sending people to amazon.com.

    Basically the 302 link makes the linking site appear to host the target site's page, and it replaces it in the search results.

    You can pretty much do it for any site. In the case of Amazon, they'd likely void your affiliate commissions - if they noticed (which they would eventually) but if you did it for a few days before, say, Christmas, and took it down after it worked, you might net 8 - 15K in a single day.

    Another danger is a malicious site whose redirect page sniffed for JavaScript. User Agents with JS deactivated would redirect straight to, say, CNN, if the UA accepted JS, it could start loading one of the many spyware "tools" that forcefeed affiliate tracking cookies into the user's computer, or much worse.

    There are tens of thousands of searches for "cnn.com" in the search engines a day - even if the highjacker was able to only replace CNN for a day, the harm would be widespread.

    Unfortunately, the Google PageRank is not considered when ranking the sites, as Google basically considers www.example.com/302.php?www.cnn.com to actually be www.cnn.com - it will show CNN.com's backlinks when your query backlinks for the hijack url, for example.
    --
    ::.. check out some Cell Phone Reviews
  26. The only problem I see.... by Transcendent · · Score: 3, Informative

    Easiest way to fix it is to not follow 302's since 302 means "The requested resource resides temporarily under a different URI."

    I would imagine that this could cause a problem with getting a website into the listing that is in the process of moving, but if Google simply waited until it's an actual 200 status code, then redirections would get ignored (since they're not .

    From the W3C document:
    The temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).

    Again, and since even the temporary URI doesn't have to be given, 302's should be ignored. Even 301's and 303's are not acceptable since the new URI doesn't have to be given.

    The harder way to fix it is to only accept 3xx response codes that give the new URI in response. Even then, I assume it's possible to still fake a 200 response code if you modify the http daemon, and make a transparent redirection... thus fooling the search engine in every respect.

    In my opinion, I don't see a way around it unless you include signature files or such... but even if you used and SSL connection, it's probably still exploitable.

    I guess you're damned any way you look at it.