• 22
  • Jan


I recently was fixing up my blog to begin using it again, and one of the tweaks I wanted to add was a Digg Vote button on every blog post. After a little searching I found Digg This by Aviran Mordo. Great! I installed it and went on my way.

However about two hours later my email box was flooded with messages saying “Your post XYZ was dugg!”. My thoughts went chronologically somethings like this: “Nice!”.. “Uh oh, the digg effect”.. “Wait, that can’t be possible.”

I looked into it and, realized all the Digg buttons that popped up on all my posts were to someone else’s Digg story! Being a programmer myself, I dove into the source code to see what could have happened. It turned out, Digg This, while a great plugin, had some major security flaws” namely blindly assuming the referrer wasn’t spoofed by a hacker or spammer (as in the case that hit me).

I immediately began hacking the script apart, hardening the security behind it, as well as fixing a few other bugs I found. If the script received word (via a referrer) that the post was Dugg, my patched version doesn’t just assume that is accurate- it actually goes to digg.com and reads the story itself, checking if your link is actually the target of a story. If not, it blocks the hacking/spam attempt.

Essentially, what a very clever spammer did, was search for blogs with that plugin installed (not hard; it’s very popular), and sent fake hits to every post in your blog, forging the referrer to look like it came from a Digg article. Only instead of your article, they linked to theirs, causing a Digg button promoting their story to appear on every one of your blog posts! So if one of your visitors liked your article, and clicked the Digg button, they are actually benefited from the vote, not you!

My version is working great on my blog now. I called my updated, patched version Digg That, and you can download it from my Digg That - WordPress Plugin page.

There are a lot of WordPress blogs out there with a vulnerable Digg Vote button on them, let’s spread the word!

» You can leave a comment, or trackback from your own site.

46 Comments

  1. Mickey Says:

    Great work, Harry.

    I’m going to fix mine ASAP.

    I have another problem (not related, I think). On articles that I don’t submit to Digg, they are given a digg button anyway from some other post of mine. Any thoughts?

  2. hmaugans Says:

    Mickey, is that on Digg This or Digg That?

  3. Andy Beard Says:

    I was just remarking about this that there was a bug, as my digg counter started going up for the Wikipedia NoFollow Plugin for the post I made with examples of it working.
    It was linking through to the original story too

    I will link through to here with some juice from the same article.

    Digged

  4. Wikipedia NoFollow Plugin : Blog Archive Andy Beard Says:

    [...] Lol, ok so the “Digg This Plugin” is seriously screwed. I link through to a Digg I made for the original blog post, and the original author - in the comments I posted a link to here as an example of it working. Digg this now thinks I have votes for this post, and the button actually seems to link through to the digg on someone elses blog. Weird… Someone has created a more secure “Digg This” plugin called “Digg That”, which apparently cures the problem, I will give it a try. [...]

  5. Ken Says:

    Digg This plugin just got a security update. The problem is now fixed

  6. Ankur Says:

    Nice find. For my plugin, I use CURL instead of file_get_contents. I’ve never got Digg-spam once. Perhaps I’ll make the plugin use file_get_contents if CURL isn’t available, or is CURL slower than it?

  7. Ankur Says:

    Sorry, forgot to close the tag. Could you fix the previous comment for me please?

  8. xFilthyxJesusx Says:

    I can’t seem to get the plugin to work on my wordpress. It doesnt show up in the plugin directory at all.

  9. hmaugans Says:

    xFilthyxJesusx, what version of wordpress are you using? Also, did you save the file as .php (instead of .phps, as it is when you download it)?

  10. Ernie Says:

    Yes, I’ve got the same problem as xFilthyxJesusx. I saved the file as .php, checked the content was corrent and ok, then uploaded it and entered “,”",false); ?> in my index.php and single.php. Now I have an article (the last one, when writing this) that is on Digg.com, but nothing appears. No digg counts or nothing. I’ve tried to remove the false statement and then the submit picture appears like if the story wouldn’t be on Digg already. Can you help me?

  11. Ernie Says:

    Sorry for the dobbelpost, but it seems like the input code has disappeared from the comment. But you probably know which code I am talking about. The one from the bottom of Digg That page. And also, the WordPress version I am using is 2.1. Thanks!

  12. Roger Coathup Says:

    I added the plug-in (just on the single post page) and submitted a couple of stories to digg …

    … unfortunately the count doesn’t seem to work, I just get the little grey man.

    Any advice?

  13. Harry Says:

    Roger, do you have a link I can take a look at?

  14. Web Hosting Reviews Says:

    great article

  15. Wordpress Quickstart Guy Says:

    I am using digg and find it fast and reliable.

  16. SEO Discussed Says:

    Very interesting article, thank you

  17. Squidoo Dummy Says:

    Thanks for your information.. I am going to update mine on my Squidoo site. thanks

  18. russian bride Says:

    2Ankur:

    Tnx for this plugin.

  19. Phentermine Online Says:

    I do have digg and I got a lot of social bookmarking site. Anyway is that a Digg That installer?. Anyway can we just install it to our blogs and if someone digg our article it would link in our site already?. Anyway for this I will stumble your site and digg your blog as well. Thank you for this information.

  20. David Says:

    thanks for the update and the information. ill blog it too!

  21. Opre Mark’s » Popular WordPress Plugin “Digg This” - Blog Security Vulnerabilities Found Says:

    [...] read more | digg story [...]

  22. cqkgjytmwg Says:

    cqkgjytmwg cqkgjytmwg cqkgjytmwgcqkgjytmwg
    cqkgjytmwgcqkgjytmwgcqkgjytmwg cqkgjytmwg

  23. draishask Says:

    Hi, hello, privet
    toyota partsw t

  24. Idetrorce Says:

    very interesting, but I don’t agree with you
    Idetrorce

  25. Smaloums Says:

    Hi all. Cool site Google
    Thank.

  26. Hyclotouddicy Says:

    I am necessary wish to find

  27. Chris Stigson Says:

    Í have the Digg module on my blogs, so thanks for this tip… I’ll go implement. Remember, It’s all in “speed of implementation”!

  28. Song Says:

    Good job , thank you very much

  29. Jessie Says:

    permitting myself to experience a sickening sense of disappointment where can i find free lesbian movies Ingram was a genius, but she was self conscious remarkably self kuyftjupzqk

  30. birkoff_[!2] Says:


    >

    >

    >

    >

  31. home beneficial life insurance Says:

    I put my step in to your guestbook like I always

  32. northwestern mutual life insurance company Says:

    Hallo thank you for a lovely web site I enjoyed

  33. river belle online casino Says:

    This site is put together well!

  34. gambling web site Says:

    Super Informationen verpackt in einem tollen Design.

  35. travel insurance quotes Says:

    de, - Sunday, February 22, 2004 at 11:47:29 (PST)

  36. company insurance Says:

    Wow! I didn’t know that site was that good!

  37. birkoff_[!2] Says:

  38. elirwayAvaili Says:

    Hello my friends :)
    ;)

  39. gilbertmana Says:

    Intern program for more details check out…

    [url=http://www.onlinebusinessinternprogram.com/] Intern Program[/url]

  40. kraloyun Says:

    good news

    thank you

  41. minikperi Says:

    good blogs

    thanks

  42. Libido Says:

    Just chill on and enhance your libido for sure success.
    http://www.libido-enhancers.com

  43. Kaname Says:

    Thanks for the great info about that plugin. I’ll help spread the word.

  44. paper shredder Says:

    Digg This - Blog Security Vulnerabilities Found

  45. muhabbet Says:

    Thanks You

  46. chat Says:

    Thanks

Leave a Comment