Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Oklahoma Leaks 10,000 Social Security Numbers

Posted by Zonk on Tue Apr 15, 2008 10:31 AM
from the that's-some-good-securitying dept.
DrJokepu writes "Apparently the folks at the Department of Corrections of Oklahoma just forgot to use common sense when they created the state's Sexual and Violent Offender Registry. By putting SQL queries in the URLs, they not only leaked the personal data of tens of thousands of people, but enabled literally anyone with basic SQL knowledge to put his neighbor/boss/enemies on the sexual offender list. Fortunately, after the author of the blog The Daily WTF notified the department about the issue, the site went down for 'routine maintenance' on April 13 2008."
+ -
story

Related Stories

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.
  • Pleeeese! (Score:3, Insightful)

    by arizwebfoot (1228544) on Tuesday April 15 2008, @10:33AM (#23078076)
    Please tell me this is a spoof.
    • Re:Pleeeese! by trolltalk.com (Score:1) Tuesday April 15 2008, @11:06AM
      • Re:Pleeeese! (Score:5, Interesting)

        by kalidasa (577403) on Tuesday April 15 2008, @11:13AM (#23078628) Journal
        READ THE ARTICLE. The same database had all criminal offenders listed - and all employees of the state corrections system. They were using an SQL query in a GET query string! You could pull up anything you wanted from the DB because they didn't lock the permissions correctly. They did a half-assed fix the first time, and only took real action when the whistle-blower pointed out that their own SS#s were accessible.
        • Re:Pleeeese! by trolltalk.com (Score:3) Tuesday April 15 2008, @11:26AM
          • Re:Pleeeese! by trolltalk.com (Score:2) Wednesday April 16 2008, @11:02AM
          • 1 reply beneath your current threshold.
        • Re:Pleeeese! by Anonymous Coward (Score:1) Tuesday April 15 2008, @02:54PM
      • Re:Pleeeese! by relikx (Score:1) Tuesday April 15 2008, @11:21AM
        • Re:Pleeeese! by relikx (Score:1) Tuesday April 15 2008, @11:35AM
        • Re:Pleeeese! by sqlrob (Score:2) Tuesday April 15 2008, @11:37AM
        • 1 reply beneath your current threshold.
      • Re:Pleeeese! by JrOldPhart (Score:1) Tuesday April 15 2008, @11:36AM
      • 1 reply beneath your current threshold.
    • Re:Pleeeese! by iknowcss (Score:2) Tuesday April 15 2008, @12:48PM
    • Re:Pleeeese! by Malevolyn (Score:2) Tuesday April 15 2008, @02:10PM
    • Re:Pleeeese! by j33pn (Score:1) Wednesday April 16 2008, @07:57AM
  • Oblig. (Score:5, Funny)

    by Ethanol-fueled (1125189) * on Tuesday April 15 2008, @10:33AM (#23078090) Homepage
    (1)Hack the registry

    (2)Put your own name in the registry

    (3)Sue the state

    (4)Profit!!!


    (5) (remember to have your name removed from the registry!)
    • Re:Oblig. (Score:5, Funny)

      by cptgrudge (177113) <cptgrudge@gAUDENmail.com minus poet> on Tuesday April 15 2008, @10:41AM (#23078184) Journal

      (5) (remember to have your name removed from the registry!)

      This is government you're dealing with. It will never happen.

      "But, but, I sued the state and won! Look, here's my legal documents! I'm not a sexual predator, honest!"

      "Yeah, sure.. Time to organize the community to hassle you until you leave. Enjoy being a hermit you sick pervert."

    • Re:Oblig. by BobSixtyFour (Score:1) Tuesday April 15 2008, @10:47AM
    • Re:Oblig. (Score:4, Interesting)

      by mauthbaux (652274) on Tuesday April 15 2008, @11:37AM (#23079024) Homepage

      (5) (remember to have your name removed from the registry!)

      Rather, this is a boon to those already on the list. Now they can simply claim that their status as a listee was simply a vengeful prank courtesy of an unnamed drinking buddy.

      I do hope they have validated archives somewhere.
      • Re:Oblig. by Torvaun (Score:3) Tuesday April 15 2008, @08:43PM
      • Re:Oblig. by sjames (Score:3) Wednesday April 16 2008, @03:58PM
      • 1 reply beneath your current threshold.
    • Re:Oblig. by epee1221 (Score:3) Tuesday April 15 2008, @11:56AM
    • Re:Oblig. by Reziac (Score:2) Tuesday April 15 2008, @12:09PM
    • Re:Oblig. by guruevi (Score:2) Tuesday April 15 2008, @12:56PM
      • Re:Oblig. by blincoln (Score:2) Tuesday April 15 2008, @02:44PM
    • by Anonymous Coward on Tuesday April 15 2008, @11:08AM (#23078564)
      So I said to my girlfriend, "I am not a pedophile! But that is a pretty big word for a 10 year old."
    • 1 reply beneath your current threshold.
  • *facepalm* (Score:5, Informative)

    by TheSpoom (715771) * <slashdot@@@uberm00...net> on Tuesday April 15 2008, @10:35AM (#23078104) Homepage Journal
    This breaks my brain, even for the normally stereotypically slow, stereotypically technology-shy government (though I will say that a lot of the Government of Canada sites work surprisingly well in my experience).

    SQL queries IN THE QUERY STRING. Someone reading their FIRST BOOK on web development would know not to do that! And now God help the people who have been affected by this: try proving to the government that you're not a sexual offender when you're already on their list.

    SQL injections. [wikipedia.org] Learn them. Learn how to mitigate them [php.net] (a PHP-specific example, but there are similar mitigation techniques for other languages). And I mean, hell, in a site like this (and especially with programmers apparently this bad), stored procedures [wikipedia.org] might be the thing to implement. Or even better, use a framework like CakePHP [cakephp.org], Rails [rubyonrails.org], or Django [djangoproject.com] with this sort of sanitation built into the queries it generates.

    Ugh. I hope someone gets fired for this. I bet, though, that in reality this was programmed by the lowest bidder.
    • by samkass (174571) on Tuesday April 15 2008, @10:45AM (#23078224) Homepage Journal
      ObXKCDComic [xkcd.com]

      It's scary how lazy some of the web developers are. For years Yahoo used a system where their login system had the URL to go to once login succeeded urlencoded in the URL. It would have been exceedingly easy to duplicate the login page with a "Username/Password was typed incorrectly. Please try again." Then send people to the authentication page with your page as the follow-on one.

      URLs should only be able to contain sanitized field values to search on that the server composes into actual SQL, URLs, etc.
      • Re:*facepalm* (Score:4, Insightful)

        by MightyMartian (840721) on Tuesday April 15 2008, @11:13AM (#23078620) Journal
        PHP has got to be one of the worst things that ever happened to web development. In the last year I've ended up with two jobs cleaning up someone else's code, and god but that language invites sloppiness on a level I've only experienced in the past with BASIC. The problem seems to be that it's easy enough to get a PHP-based page up, but the actual ability to coherently develop software isn't there. Anyone can learn to code in PHP, but only a few bother or are capable of actually invoking proper coding practices. The problem is that when these projects come up, rather than contracting out to someone who knows what they're doing, or at least hiring or training somebody who can code, they go to Bob the IT guy, who's okay at keeping the network up, and knows a bit of scripting, and who goes online and reads just enough of the PHP tutorial to be really dangerous.

        In these cases, there's little or no commenting. Some things are done as classes, some as functions, there's no particular rhyme or reason, and it became so bloated that the original coders appear to have simply given up. It's terrible spaghetti code, but because it's on the web, no one seems to consider it software development. When you combine this with security, it can create a rather frightening mix of shitty almost undebugable code with an unknown number of potential security holes.

        I know I sound elitist here, but goddamn it, PHP and all those lovely little scripting languages have unleashed a disaster on the web. It's bad enough that there's hackers out there, but much worse that there are incompetents being given the keys to the internal networks and data, without any knowledge of sound coding principles and of how to harden sites against injection attacks and the like.
        • Re:*facepalm* by girasquid (Score:1) Tuesday April 15 2008, @11:28AM
        • Re:*facepalm* (Score:5, Insightful)

          by lattyware (934246) on Tuesday April 15 2008, @11:29AM (#23078878) Homepage Journal
          Don't blame the language because the developers are incompetent.
          • Re:*facepalm* (Score:5, Insightful)

            by QuoteMstr (55051) <dan.colascione@gmail.com> on Tuesday April 15 2008, @11:43AM (#23079098)
            The language makes it easily, or even tantalizing, to do it the wrong way, and very difficult to do it the right way.
            • Re:*facepalm* by MightyMartian (Score:1) Tuesday April 15 2008, @12:06PM
              • Re:*facepalm* by jsebrech (Score:2) Tuesday April 15 2008, @12:25PM
              • Re:*facepalm* by MightyMartian (Score:2) Tuesday April 15 2008, @12:41PM
            • Re:*facepalm* (Score:5, Insightful)

              by ivan256 (17499) on Tuesday April 15 2008, @12:21PM (#23079652)
              I disagree with "very difficult to do it the right way"... If you know what you're doing it's only moderately more work.

              Java, Perl, and Python all make it easier to do it the wrong way than the right way too. Simply because the wrong way is less work than the right way in almost every aspect of these types of problems.

              (The above paragraph is also true for performance)

              The parent to your post is spot on. Don't blame the tool because the user is an idiot. The incompetent programmer from this article doesn't have any business doing web development in any other language either, regardless of how much "easier" that language makes it.
              • 1 reply beneath your current threshold.
            • Re:*facepalm* (Score:5, Insightful)

              by OpenGLFan (56206) on Tuesday April 15 2008, @01:22PM (#23080486) Homepage
              Yes, and:
              Lumber and bricks make it very easy to build something that will fall on you and very hard to make a house.
              Steel and wire make it very easy to build something that will snap and kill thousands and very hard to build the Golden Gate Bridge.
              The solution is not to build the world out of Nerf. The solution is to keep Nature's fry cooks out of skilled labor jobs.
              • by QuoteMstr (55051) <dan.colascione@gmail.com> on Tuesday April 15 2008, @01:49PM (#23080750)
                If I hire a carpenter to build my house and it collapses, the carpenter is liable. Engineers won't cooperate if management wants to cut corners on a bridge: they have a code of ethics and a body that enforces it.

                Software, on the other hand, is a free-for-all today. We need an accreditation program and a code of ethics, just like more traditional disciplines of engineering. That's not to say that we'll restrict compilers to professionals; we don't reserve wrenches for professional mechanics.

                But for a project that has the potential to cause so much harm to so many, a requirement to use trained and certified software engineers (with all the implications of the second word) would be invaluable.
              • Re:*facepalm* by seftonde (Score:1) Wednesday April 16 2008, @08:13PM
              • Re:We need accreditation and liability by mdm-adph (Score:2) Tuesday April 15 2008, @02:08PM
              • 1 reply beneath your current threshold.
          • Re:*facepalm* by AmaDaden (Score:3) Tuesday April 15 2008, @12:11PM
            • Re:*facepalm* by ivan256 (Score:2) Tuesday April 15 2008, @12:26PM
              • Re:*facepalm* by AmaDaden (Score:2) Tuesday April 15 2008, @01:26PM
              • Re:*facepalm* by ivan256 (Score:2) Tuesday April 15 2008, @01:43PM
          • Re:*facepalm* by Valdrax (Score:2) Tuesday April 15 2008, @01:19PM
            • Re:*facepalm* by profplump (Score:2) Tuesday April 15 2008, @02:05PM
              • Re:*facepalm* by Valdrax (Score:2) Tuesday April 15 2008, @04:11PM
              • Re:*facepalm* by MightyMartian (Score:2) Tuesday April 15 2008, @05:14PM
          • 1 reply beneath your current threshold.
        • Re:*facepalm* (Score:5, Insightful)

          by TheSpoom (715771) * <slashdot@@@uberm00...net> on Tuesday April 15 2008, @11:39AM (#23079038) Homepage Journal
          There are those of us out there that know how to code PHP in a sane, clear, and secure way. Unfortunately, I have to admit that there are a lot more that don't. I think one of the things you can do is to look for those that have languages like C++ and Java on their CV as well, and also for those that have a portfolio of code to review when they apply for a job. When you actually see the code, it's easy to separate the fly-by-night guys from the actual educated, experienced programmers out there.

          By the way, on a somewhat unrelated note, we're using Django [djangoproject.com] for our new web game, and it's both interesting and easy to code, while still (rigorously) maintaining good coding practices. So I think there's also something to be said for those who work with frameworks like CakePHP, Rails, and Django, as those tend to both be object-oriented and to promote good coding practices.

          As I've said before, I think PHP can and should be used well; there are just a lot of ways it can be used poorly.
          • Re:*facepalm* by MightyMartian (Score:2) Tuesday April 15 2008, @12:49PM
          • Re:*facepalm* by MightyMartian (Score:2) Tuesday April 15 2008, @01:34PM
          • Re:*facepalm* by TheSpoom (Score:2) Tuesday April 15 2008, @03:29PM
            • 1 reply beneath your current threshold.
          • 2 replies beneath your current threshold.
        • Re:*facepalm* by plague3106 (Score:2) Tuesday April 15 2008, @12:28PM
        • Re:*facepalm* by Skylinux (Score:1) Tuesday April 15 2008, @01:19PM
        • Re:*facepalm* (Score:5, Interesting)

          by jsebrech (525647) on Tuesday April 15 2008, @01:41PM (#23080658)
          PHP has got to be one of the worst things that ever happened to web development.

          This particular site was coded in java, so PHP was not at fault here. I don't know what got you onto the topic of PHP.

          The problem is that when these projects come up, rather than contracting out to someone who knows what they're doing, or at least hiring or training somebody who can code, they go to Bob the IT guy

          Software development has always been rife with contracts that go to the lowest bidder based on a spec that mentions only features and deadlines (not security, quality, or other metrics). This is because most IT projects are managed by people who don't understand IT, and who do the IT equivalent of asking their neighborhood carpenter to build the golden gate bridge. You get what you pay for.

          I know I sound elitist here, but goddamn it, PHP and all those lovely little scripting languages have unleashed a disaster on the web.

          If PHP didn't exist, someone would invent it. PHP fills the niche of an environment that lets you get up and running quickly with web applications, just like visual basic did it for windows apps, and access did it for databases. Yes, it's a bit elitist to say that all programming environments should be so difficult to program in that they weed out all but the most dedicated (and knowledgeable), but it's also unrealistic, because people would invent easier environments if there weren't any. PHP is actually quite good at blending the capability for quality coding with a low barrier to access.

          And besides, the problems with web app security have nothing to do with PHP or any other scripting language, they have to do with visibility. Think about how many two-tier desktop apps there are that let anyone with a bit of knowledge bypass the app and do whatever they want in the database. Nobody makes a fuss about this, because the visibility of those apps is lower.

          I would say the primary problem with web app development is not any of the tools, but the perception among IT managers that web app development is simpler, and requires less skill, than desktop development, while the inverse is true. I do both desktop and web development, and it is much more difficult to build good web apps, because you have to pay more attention to architecture, security, performance envelopes, and gui design. That management (even my management) still doesn't understand that is disappointing, but understandable given how the web started out as a toy and still hasn't quite shaken that perception.

          • 1 reply beneath your current threshold.
        • Re:*facepalm* by martinQblank (Score:1) Tuesday April 15 2008, @06:13PM
          • Re:*facepalm* by MightyMartian (Score:2) Tuesday April 15 2008, @06:54PM
        • 2 replies beneath your current threshold.
    • Re:*facepalm* (Score:5, Interesting)

      by NeutronCowboy (896098) on Tuesday April 15 2008, @10:46AM (#23078246)
      Actually, for something on this scale, I'd like to see jail time for criminally negligent programming. The cost of being on a sex offender list by mistake is mindboggling - I'm on a "have a long chat with a customs officer every time I enter the US" because some data entry monkey made a mistake with my passport, and it's not pretty. I can only imagine what being on a sex offender list can do to you...
      • Re:*facepalm* by maxume (Score:1) Tuesday April 15 2008, @11:37AM
      • Re:*facepalm* by Anonymous Coward (Score:2) Tuesday April 15 2008, @11:52AM
        • Re:*facepalm* by Anonymous Coward (Score:1) Tuesday April 15 2008, @01:24PM
      • Re:*facepalm* by Deanalator (Score:2) Tuesday April 15 2008, @02:05PM
      • Re:*facepalm* by Mr. Picklesworth (Score:2) Wednesday April 16 2008, @11:07AM
      • 1 reply beneath your current threshold.
    • Re:*facepalm* by Gat0r30y (Score:3) Tuesday April 15 2008, @10:48AM
      • Re:*facepalm* by riskeetee (Score:2) Tuesday April 15 2008, @11:07AM
      • Re:*facepalm* by tompaulco (Score:2) Tuesday April 15 2008, @03:09PM
        • Re:*facepalm* by jsebrech (Score:2) Wednesday April 16 2008, @02:32PM
      • Re:*facepalm* by randyest (Score:2) Tuesday April 15 2008, @01:52PM
      • 1 reply beneath your current threshold.
    • Re:*facepalm* by sl0ppy (Score:2) Tuesday April 15 2008, @10:49AM
      • Re:*facepalm* by TheSpoom (Score:1) Tuesday April 15 2008, @10:59AM
        • Re:*facepalm* by Anonymous Coward (Score:1) Tuesday April 15 2008, @11:07AM
          • Re:*facepalm* by QuoteMstr (Score:2) Tuesday April 15 2008, @02:07PM
        • Re:*facepalm* by sl0ppy (Score:3) Tuesday April 15 2008, @11:29AM
          • Re:*facepalm* by TheSpoom (Score:2) Tuesday April 15 2008, @11:56AM
            • Re:*facepalm* by sl0ppy (Score:1) Tuesday April 15 2008, @12:04PM
          • Re:*facepalm* by deraj123 (Score:1) Tuesday April 15 2008, @12:09PM
            • Re:*facepalm* by sl0ppy (Score:1) Tuesday April 15 2008, @12:30PM
              • Re:*facepalm* by Sancho (Score:2) Tuesday April 15 2008, @01:15PM
            • Re:*facepalm* by QuoteMstr (Score:2) Tuesday April 15 2008, @02:04PM
    • Re:*facepalm* (Score:5, Insightful)

      by Anonymous Coward on Tuesday April 15 2008, @10:49AM (#23078314)
      They'll have the best technology (your) money can buy when it is used AGAINST you (e.g. Dept of Homeland Security) but when they are doing something FOR you they cut corners and really couldn't care less.
    • Re:*facepalm* (Score:4, Interesting)

      by grassy_knoll (412409) on Tuesday April 15 2008, @10:53AM (#23078366) Homepage
      Stored procedures are almost always a good idea, since you can also limit the permissions to SELECT and EXECUTE. Depending on the DB, using stored procedures also forces the use of bind variables so there's a CPU utilization optimization as well ( from the lowered parse rate ).

      Not only did they put SQL in the query string, they granted more permissions to the DB user for the web app than it needed. If you're just looking up data, not changing it, why does the app need anything other than SELECT ( or EXECUTE if you're using stored procedures )?

      A great example of why "just give the app admin rights so it can work" is one of the dumbest statements a developer can make.
      • Re:*facepalm* by PhrostyMcByte (Score:2) Tuesday April 15 2008, @12:26PM
      • 1 reply beneath your current threshold.
    • Re:*facepalm* by geekoid (Score:2) Tuesday April 15 2008, @11:15AM
      • Re:*facepalm* by TheSpoom (Score:2) Tuesday April 15 2008, @11:31AM
        • Re:*facepalm* by geekoid (Score:2) Tuesday April 15 2008, @03:19PM
    • Re:*facepalm* by Deanalator (Score:3) Tuesday April 15 2008, @01:53PM
      • Re:*facepalm* by QuoteMstr (Score:2) Tuesday April 15 2008, @02:10PM
        • Re:*facepalm* by Heembo (Score:2) Tuesday April 15 2008, @02:24PM
          • Re:*facepalm* by QuoteMstr (Score:2) Tuesday April 15 2008, @02:36PM
            • Re:*facepalm* by Heembo (Score:2) Tuesday April 15 2008, @02:45PM
              • Re:*facepalm* by QuoteMstr (Score:2) Tuesday April 15 2008, @02:50PM
              • Re:*facepalm* by Heembo (Score:2) Tuesday April 15 2008, @02:58PM
              • Re:*facepalm* by QuoteMstr (Score:2) Tuesday April 15 2008, @03:02PM
              • Re:*facepalm* by Heembo (Score:2) Tuesday April 15 2008, @03:08PM
              • Re:*facepalm* by QuoteMstr (Score:2) Tuesday April 15 2008, @03:12PM
              • Re:*facepalm* by Heembo (Score:2) Tuesday April 15 2008, @03:17PM
              • Re:*facepalm* by cduffy (Score:1) Monday April 21 2008, @05:23AM
    • 2 replies beneath your current threshold.
  • by calebt3 (1098475) on Tuesday April 15 2008, @10:40AM (#23078174)

    ...the site went down for 'routine maintenance' on April 13 2008.
    The Reality Distortion Field is weak with this one.
  • by Oxy the moron (770724) on Tuesday April 15 2008, @10:41AM (#23078178)

    Without reading TFA... how do they know it was (just) 10,000 SSNs? Did they just approximate the number of entries already in the offenders list and just use that? Couldn't there potentially be more?

    • Re:Umm... by FooAtWFU (Score:2) Tuesday April 15 2008, @10:45AM
      • Re:Umm... by Workaphobia (Score:2) Tuesday April 15 2008, @12:39PM
    • Re:Umm... by megla (Score:2) Tuesday April 15 2008, @10:46AM
      • Re:Umm... by megla (Score:2) Tuesday April 15 2008, @10:48AM
    • Re:Umm... by DrJokepu (Score:1) Tuesday April 15 2008, @10:47AM
    • Re:Umm... (Score:4, Interesting)

      by Chris Mattern (191822) on Tuesday April 15 2008, @11:48AM (#23079168)
      They knew it was 10,000 SSNs because the web site allowed them to do a COMPLETE DUMP OF THE ENTIRE DATABASE. Lock, stock and barrel.
    • Re:Umm... by jd (Score:2) Tuesday April 15 2008, @02:09PM
  • by sam0737 (648914) <sam.chowchi@com> on Tuesday April 15 2008, @10:42AM (#23078202)
    I don't see why those on the list are not suing the government for the damage...
  • The author should have completely blacked out the SSNs rather than blur them. They are still decipherable to those that are inclined to do so. This article [dheera.net] explains why blurring is a bad idea.
  • by Anonymous Coward on Tuesday April 15 2008, @10:51AM (#23078334)
    What someone needs to do is register a certain G. Oatse as a sex offender in Oklahoma.
  • by milbournosphere (1273186) on Tuesday April 15 2008, @10:53AM (#23078364)
    D'oh!

    In all seriousness, though, this just goes to show that it always helps to slow down in order to avoid this sort of disaster. One hope s that the genius responsible for this is held accountable. 10,000 social security numbers is a lot of personal data to be throwing around like that.
  • Humor? (Score:4, Funny)

    by Wilson_6500 (896824) on Tuesday April 15 2008, @10:53AM (#23078370)
    Who would tag this "humor"? Given the deeply-ingrained social stigma attached to being put on one of these lists, I don't really see how it's funny that one was so horribly misimplemented. Even when something is _obviously_ wrong, as in this case, it can be hard to iron out the impression that actual people get from reading these lists. What if the problem weren't as obvious as this one supposedly is? Would it still be funny?

    Generally, no retraction is ever as effective as the original statement. That's probably one of the reasons why libel is such a big deal for some people--just saying "sorry, we were wrong" may not be good enough.
    • Re:Humor? by Gregb05 (Score:2) Tuesday April 15 2008, @10:59AM
  • by visible.frylock (965768) on Tuesday April 15 2008, @11:05AM (#23078520) Homepage Journal
    Can't read the dailywtf article, but from the summary, I'm thinking one of the biggest problems is that SSNs are on a public facing server when they don't need to be. Working in gov based IT myself, I know that Least Access is many times not followed.
    • Re:SSNs by Workaphobia (Score:3) Tuesday April 15 2008, @12:53PM
      • Re:SSNs by Cro Magnon (Score:2) Tuesday April 15 2008, @01:17PM
        • Re:SSNs by Kredal (Score:1) Tuesday April 15 2008, @08:02PM
  • Bad blurring (Score:3, Insightful)

    by Space cowboy (13680) * on Tuesday April 15 2008, @11:06AM (#23078540) Journal
    Whereas the names and addresses of these people is a matter of public knowledge, is their email address and SSN also open ? If not, despite what you may think of their actions (public urination ? Really ?), it's not fair of the site to "blur" the relevant details so poorly.

    I read the daily WTF, and usually I think it's pretty good, but Alex has made his own WTF here, IMHO.

    Simon

  • obligatory (Score:3, Funny)

    by Anonymous Coward on Tuesday April 15 2008, @11:27AM (#23078844)
    im in ur sex offender database,
    injectin sql.
  • by SeeSp0tRun (1270464) on Tuesday April 15 2008, @11:32AM (#23078940) Journal
    Imagine how many people said:
    "OMFG It was only one piss on a tree!!"

    And they others saying:
    "I remember something about being convicted for that" *shrug* "Out of sight, out of mind!"
  • by HadouKen24 (989446) on Tuesday April 15 2008, @11:43AM (#23079090)
    I've lived in Oklahoma all my life, and it really doesn't surprise me that something like this has occurred. While Oklahoma City and Tulsa actually have some competent officials--Oklahoma City's recent prosperity can be chalked up in large part to a few good decisions--our ability, as a whole, on the technical front is pretty low. Really, I've just been waiting for something like this to come out. Corrupt state officials can only keep this kind of thing hush-hush for so long. I anticipate even more scandals of this kind for my state in the next few years. Especially as we move toward putting more and more information online.
  • by Dog-Cow (21281) on Tuesday April 15 2008, @11:52AM (#23079218)
    The whole idea of having the registry is sheer stupidity, but on a scale designed to ruin innocent people.

    Let's assume that a given person on the list was really a rapist (and not just convicted of it). If he's served his time and has repented, he won't do it again. So why do we punish him for the rest of his life with the registry? And if you think he will do it again, why is he not in jail?

    You may as well just shoot him and be done with it.
  • by Bob9113 (14996) on Tuesday April 15 2008, @11:53AM (#23079234) Homepage
    but enabled literally anyone with basic SQL knowledge to put his neighbor/boss/enemies on the sexual offender list.

    Why would anyone care if they were put on this list?

    This issue has gone to the Supreme Court and they have ruled [wikipedia.org] that these lists are not punishment, and hence does not run afoul of restrictions against ex post facto punishment [wikipedia.org] or due process [wikipedia.org]. So if it is not punishment, why would anyone care if they are on the list?
    • Re:Why Would Anyone Care? by rmsande (Score:1) Tuesday April 15 2008, @11:57AM
    • by Damvan (824570) on Tuesday April 15 2008, @12:09PM (#23079482)
      You are kidding, right?

      In California, we have this thing called Jessica's Law. That law prohibits registered sex offenders from living a certain distance (usually 1000 ft) away from places children might congregate, such as schools, churches, playgrounds, parks, and in some cases, shopping centers.

      So, if you are on the list, there are alot of places you CANNOT live. There are many cities in California where you can't live at all, simply because there is no place that is at least 1000 ft from the prohibited locations. If I was put on this list, I would be forced to sell my house and move as I live 1000 ft from a church. In fact, I would have to move out of the City I live in entirely as there is no residential areas outside of the prohibited locations.
  • by kris.montpetit (1265946) on Tuesday April 15 2008, @11:55AM (#23079274)
    they not only leaked the personal data of tens of thousands of people, but enabled literally anyone with basic SQL knowledge to put his neighbor/boss/enemies on the sexual offender list

    DAMN! I'll guess just have to find another way to mess with my old bosses..

  • by ArIck (203) on Tuesday April 15 2008, @12:01PM (#23079336)
    hearing it now when the site is down for 'routine maintenance'.... I wanted to add my boss to the list!
  • by Freeside1 (1140901) on Tuesday April 15 2008, @12:07PM (#23079424)
    TRWTF is that OK's DoC did nothing (nothing effective) to stop using SQL statements in the URL's querystring, UNTIL the author showed how manipulating the vulnerability not only put the criminals' personal info at risk, but also the employees' info.
  • I don't even know how you could test and debug such a system without inadvertently figuring out a design flaw like that.

    Maybe they meant to mess it up on purpose? Sabotage? Maybe it was meant as a back door for later?
  • Why offshoring to the cheapest labor monkey is a good idea?
  • by AioKits (1235070) on Tuesday April 15 2008, @12:15PM (#23079568) Homepage
    ...let me be the first to say Welcome to Oklahoma!

    Now, would one of you be so kind as to get me the fuck out of here?
  • by Sloppy (14984) on Tuesday April 15 2008, @12:23PM (#23079672) Homepage Journal

    "Routine," as in "we clean up messes similar to this one, all the time?"

  • by gizmonic (302697) * on Tuesday April 15 2008, @12:38PM (#23079878) Homepage
    Wow, an on topic post for my all time favorite XKCD! :)

    http://xkcd.com/327/ [xkcd.com]
  • by blakecraw (1235302) on Tuesday April 15 2008, @01:10PM (#23080320)
    "Why doesn't Texas float away into the Gulf of Mexico? Because Oklahoma SUCKS!"

    Now, my fellow Texans, you may be worried that a leak in the hose could cause them to lose their powerful vacuum, but in fact it's only served to multiply the sucktion! We're safer than ever!

    I can just feel my karma evaporating

    • Re:uh oh by trongey (Score:2) Tuesday April 15 2008, @02:20PM
    • Re:uh oh by Mox-Dragon (Score:2) Tuesday April 15 2008, @09:21PM
  • by jbsooter (1222994) on Tuesday April 15 2008, @01:17PM (#23080410)
    I used to work (3 years ago) at a background checking company that would pull/harvest databases off the internet if the county or state wouldn't sell it to us in bulk. You'd be suprised how many county websites have stuff like this.

    There is one county in Florida that will return more results by walking thru their ID numbers than by searching for everyone in thier site. That means people who for whatever reason aren't supposed to show up on the website get harvested by companies like the one I worked at.

    A county in Texas tried to stop the harvesting by making people sign in and limiting searches but managed to introduce a sql injection hole that lets you do whatever you'd like to the Users tables. I didn't try messing w/ the offenders tables but wouldn't be suprised if it was possible.

    These are just two examples that I recalls. There were quite a few more.
  • by reybrujo (177253) on Tuesday April 15 2008, @02:00PM (#23080880) Homepage
    A quick Google search [google.com] reveals many sites with similar problems. I like this [kupferjewelry.com] one, though. You get not only the full query, but the path to the database and the database name =) Not the same, but you find idiots everywhere =)
  • by Silver Sloth (770927) on Tuesday April 15 2008, @10:45AM (#23078236)
    Putting aside natural feelings of outrage and injustice exactly what offense with an associate jail term have they committed? I'm not sure about the US, I'm a Brit, but over here offenses under the Data Protection act don't carry jail terms.
    • Re:wow by Anonymous Coward (Score:1) Tuesday April 15 2008, @11:04AM
  • by BlowHole666 (1152399) on Tuesday April 15 2008, @10:48AM (#23078284)
    Why? In most cases you are protected from liability and your employer is the one to blame. You may get fired from your job, but you will not get sued. For example my wife works at a school and someone told her they were going to sue her. She notified the principal and the school district took care of it. So no this person should not go for jail they should be fired and the employer should give a bad referral.
  • Re:wow (Score:5, Interesting)

    by jmichaelg (148257) on Tuesday April 15 2008, @10:50AM (#23078316)
    Going to jail is a bit over the top. Losing their job is what is called for.

    However, if Oklahoma has problems similar to California, then they're faced with a Hobson's choice. They can fire the guy/gal but given the low pay scales, they could well end up with someone just as bad.
    • Re:wow by pilgrim23 (Score:2) Tuesday April 15 2008, @11:01AM
      • by davidwr (791652) on Tuesday April 15 2008, @11:27AM (#23078850) Homepage Journal
        I know you are being sarcastic, but the bigger these lists are the more useless they become.

        If every public urinator and teenager in love gets put on these lists, it's that much harder to spot the really bad guys. The same goes for the really bad people who are now harmless 89-year-old men dying in a nursing home. Get these people off the list ASAP.

        If you aren't "level 3" or whatever "really really dangerous" is in your state, only the cops and those who have a proven need to know should have access to your information.
    • Re:wow by moderatorrater (Score:2) Tuesday April 15 2008, @11:10AM
      • Re:wow by MightyMartian (Score:2) Tuesday April 15 2008, @11:47AM
    • Re:wow by Etherwalk (Score:2) Tuesday April 15 2008, @11:24AM
      • Re:wow by jmichaelg (Score:2) Tuesday April 15 2008, @02:22PM
        • Re:wow by Etherwalk (Score:1) Tuesday April 15 2008, @02:32PM
        • Re:wow by cduffy (Score:1) Monday April 21 2008, @08:06AM
    • Re:wow by Psmylie (Score:2) Tuesday April 15 2008, @11:25AM
      • Re:wow by MightyMartian (Score:2) Tuesday April 15 2008, @12:02PM
      • Re:wow (Score:4, Insightful)

        by yuna49 (905461) on Tuesday April 15 2008, @12:06PM (#23079396)
        This is an official government list of alleged "sex offenders," not a list of people with parking tickets. Developers tasked with providing public access to such sensitive information, and the people who employ and direct them, should be adhering to the best practices, not the worst practices as in this case.

        The real issues are that

        (a) No one in the OK government probably cared much about the privacy of these "sex offenders" because, well, they're "sex offenders."

        (b) Government agencies are constantly tasked by executives and legislatures to implement programs they're ill-equipped to handle and often receive no additional funding to carry out these mandates. Do you think the OK agency involved had tens of thousands of dollars to hire outside contractors with solid coding skills to undertake this task? Probably they handed it to someone in house who knew how to write SQL queries and a little PHP.

        I'd fire the lot of them, including the department heads, and start over with people who have at least some clue about good IT practices. If this fiasco was actually the product of an outside consulting shop, I'd ban them from working for my state government for a very long time.

        If we don't have substantial and public penalties for poor management like this, we're just going to be repeating our mistakes.
        • Re:wow by yuna49 (Score:3) Tuesday April 15 2008, @12:10PM
        • Re:wow by Psmylie (Score:2) Tuesday April 15 2008, @02:37PM
        • 1 reply beneath your current threshold.
    • Re:wow by dosun88888 (Score:1) Tuesday April 15 2008, @11:49AM
    • Re:wow by radiotone (Score:1) Tuesday April 15 2008, @09:43PM
  • by Skater (41976) on Tuesday April 15 2008, @10:51AM (#23078340) Homepage Journal
    Can't you just be happy that they used "literally" correctly?
  • by jamstar7 (694492) on Tuesday April 15 2008, @11:10AM (#23078592)
    Along with Cheney, Rumsfeld, Wolfowitz, Rice, and the rest of the 'Usual Suspects'.

    Woulda made a great April Fools prank...

  • by Tmack (593755) on Tuesday April 15 2008, @11:31AM (#23078910) Homepage Journal

    ... they lump rapists in with flashers ...

    Actually, urination in public will win you a spot there too...

  • by davidwr (791652) on Tuesday April 15 2008, @11:40AM (#23079054) Homepage Journal
    The purpose of the SO lists is to identify those likely to re-offend.

    Great in theory miserable in practice.

    If you want to do an offender registry right, evaluate every ex-con and create lists of people likely to commit new serious crimes.

    I'd like to see likely-offender lists for:
    * violent crimes including forcible sex crimes, murder, assault, etc.
    * crimes involving con games/trickery of people who have no reason to know better
    * financial crimes not relying on con games, e.g. bank fraud, felony burglary, etc.
    * crimes against children, the elderly, and other easily-victimized groups

    For each category, have a "level 1, level 2, level 3" system where level 1 means private registration, level 2 means those who ask and need to know get to see your info, and level 3 means public registration.

    If a person is the reincarnation of Adolf Hitler but he's not in a position to commit new crimes, he doesn't get on the list. If a person has a single felony on his record but is deemed likely to commit one of those types of crimes in the near future, he's on the relevant list.

    People change, so re-evaluate the list every year.
  • Also, public urination counts as a sex offense in some areas. This is a modern-day witch hunt. That said, you sound like intelligent, reasonable people; why not move to a more liberal (small 'l') state and let your selection encourage the creation of reasonable laws?
  • by MightyMartian (840721) on Tuesday April 15 2008, @07:14PM (#23084268) Journal
    Whether or not any particular set of crimes is worse than another set is ultimately up to the wider society. At the moment, sex crimes are right up there. In Louisiana they want to make child rape a capital offense. In general, I'm against capital punishment, so I think this is wrong (and there's also concerns that testimony from young children is notoriously inaccurate, and that it's one thing to lock up a pedophile for long periods of time, where at least you can let him out if it's discovered he didn't do it, but once you kill him, there's no going back).

    I'm not convinced such published lists are all that effective. I know of no actual research that demonstrates their effectiveness, and it appears to be simply a way to further punish an offender after their release.

    My other big problem with this category is that in many places it's an extremely broad brush. Yes, you get the pedophiles and rapists, but you also get gropers, peepers and flashers that, while clearly people committing some kind of crime, cannot under any reasonable standard be considered in the same league as a child molester or rapist.

    The problem with a lot of these laws is that they're extremely kneejerk. Some serial rapist terrifies a neighborhood, the outcry grows, and politicians bring in harsher laws that are really not well thought out at all, but rather seemed to be designed to mollify the mob.

    If you want to bring in harsh crimes to keep serious sex offenders behind bars, then sign me up. But if you want every mentally ill flasher forced into the same category as a rapist, then no, I think you're being unreasonable. It's like treating every shoplifter to the same punishments that a bank robber gets.
  • 15 replies beneath your current threshold.