The Register Home Page

back to article Test environment let anyone access live customer data

Welcome back to PWNED, the weekly column where we learn important life lessons about how we let cybercrims access our data through carelessness. Hopefully, others’ mistakes provide an example of what not to do. Today’s tales of woe comes courtesy of Richard Schut, Managing Director & AI Software Researcher at SmartRepl, a …

  1. alain williams Silver badge

    Oh, it is so easy to do

    A few months ago I discovered that a "quick and dirty temporary change" that I made to a program to debug something was still there two years later. Fortunately I am the only one to use the program so no harm done - but it could have been if it were released.

    What I realised is that all quick-and-dirty hacks should be documented somewhere and that somewhere reviewed weekly. But doing so is incredibly hard -- "it is only going to be there for 5 minutes, honest guv!"

    Me working by myself on pet projects is one thing but corporate environments need code reviews before things go live. Management do not like that as it slows things down and costs senior programmer time.

    1. tfewster
      Facepalm

      Re: Oh, it is so easy to do

      “There’s nothing more permanent than a temporary hack”

      1. ChoHag Silver badge

        Re: Oh, it is so easy to do

        I discovered recently that the format of email messages was first laid down in RFC 561 which begins thus:

        Although the long-term solution to the problem is probably to

        add commands for specifying such information to the mail

        protocol command space (as suggested in RFC 524 -- 17140,), we

        hereby propose a more quickly implemented solution for the

        interim.

        It was published in 1973.

      2. WSWS Bronze badge

        Re: Oh, it is so easy to do

        There are "temporary" government programs that are two hundred years old.

    2. Anonymous Coward Silver badge
      Boffin

      Re: Oh, it is so easy to do

      I usually annotate the tweak with a comment along the lines of: //todo: remove this once x has been y'd

      I then routinely grep the entire codebase for "//todo", giving me a straightforward list of partially completed fixes.

      1. Cessquill

        Re: Oh, it is so easy to do

        I leave lots of notes for myself on coding projects, but for some reason had never considered prefixing some with a common string that I could search for - thanks for that.

        1. WSWS Bronze badge

          Re: Oh, it is so easy to do

          Really? That's such a common practice that most syntax highlighters I've used give "TODO" special highlighting.

      2. DS999 Silver badge

        Re: Oh, it is so easy to do

        I typically include something that shows up on the screen i.e. printf("XXX cleanup XXX blocks when done\n") and comment around debugging code or other changes with XXX so that I can search for them. So there's no way I can forget to do that, because it will hit me over the head with it every time I run it until that's done.

    3. Anonymous Coward
      Anonymous Coward

      Re: Oh, it is so easy to do

      "Management do not like that as it slows things down"

      Then there's the proof-of-concept demonstrator that management liked so much that it became *the* product before they gave you time to replace the horrible quickly mashed together internals for the demo with properly cleaned and reviewed code.

      1. tiggity Silver badge

        Re: Oh, it is so easy to do

        I'm guessing that sort of thing will only get worse as people can now use "AI" to spin up a quick demo system

    4. Anonymous Coward
      Anonymous Coward

      Re: Oh, it is so easy to do

      Every comment about documenting has the one flaw.

      When you leave / get fired / made redundant then no one is going to read it.

      1. Tuomas Hosia

        Re: Oh, it is so easy to do

        "When you leave / get fired / made redundant then no one is going to read it.

        Many corporations have project organizations: One or two permanent persons act as project managers and the actual work is done by consultants.

        Once the program is done and in production, consultants are moved to other projects and/or terminated contracts, leaving literally no-one who understands what the program is doing.

        Not only that, the paper/documentation trail is also lost ('cleaned') when development project is closed and the program is moved to production.

        Then you have a program running and there's little or no documentation of the internals left.

  2. just4this Silver badge

    Never let facts get in the way

    “It was a classic example of how security problems don't always come from sophisticated attacks…”

    However, they should always be the publicly reported cause.

    1. Aladdin Sane Silver badge

      Re: Never let facts get in the way

      Obligatory xkcd

      1. Sorry that handle is already taken. Silver badge

        Re: Never let facts get in the way

        AKA rubber-hose cryptanalysis

        I wonder why Randall didn't reference it, since the term originated last century

    2. Excused Boots Silver badge

      Re: Never let facts get in the way

      I suspect that problems due to sophisticated attacks or exotic vulnerabilities are actually in the tiny minority.

      But yes, the attack is never ever reported as being down to the CEO insisting that they are ‘far too important', and their time 'far to valuable' to have to use 2FA, or have a password any more complex than ‘Pa55word’, and is more than happy to tell anyone who asks.

  3. Bebu sa Ware Silver badge
    Facepalm

    Not just the Corporate World

    Just last year the University of Sydney had 27K of historical (but relatively recent) staff and student records lifted from an unsecured test repository:

    https://www.sydney.edu.au/news-opinion/news/2025/12/18/notification-of-cyber-and-data-breach.html

    The breach notice uses the term "code library" to refer to those records which is a tad misleading.

    You might imagine manglements' dead brain cells coming up with "it's only test data so we don't really need to secure it."

    1. FeRDNYC Bronze badge

      Re: Not just the Corporate World

      In context I don't think it's really that misleading. You just have to read beyond the first 5 words.

      A code library used for code storage and development was compromised in a cyber incident. A number of data files containing personal information were also located in the code library.

      Which sounds like a fairly straightforward explanation of what actually happened. They had a repo with some test code and exported data files sitting out in the open (or easily breachable) somewhere. (They go on to detail that the compromised records comprised a snapshot taken 2018-09-04.)

  4. segfault188
    Joke

    Schut that door!

    Just as well he Schut the door on potential intruders.

  5. Yet Another Anonymous coward Silver badge

    So the lesson is

    Call your database not_important_nothing_to_see_here.sql ?

    1. Claptrap314 Silver badge

      Re: So the lesson is

      beware_of_leopard.sql

      1. SuperGeek

        Re: So the lesson is

        Or maybe "all_your_data_are_belong_to_us.sql"?

  6. Anonymous Coward
    Anonymous Coward

    Synthetic data

    That's two words that seemingly I'm the only person in the company understands.

    But that's OK, feel free to give the devs the complete HR dataset and don't worry if it's on the Internet while you try and build and fix your app...

  7. Slant Four

    hmmm

    Being a database guy, the mandated/required process for cloning a prod database (or parts there of) was to scramble/scrub PI information.

    Obviously in today's agile, fast moving world lazy devs/dba's are to busy vibe coding to do their job or too stupid to know better.

    Can't wait until all these lazy people are replaced by AI... it will be utopia.

    Bluck

    1. Anonymous Coward
      Anonymous Coward

      Re: hmmm

      It sounds so easy !

      Clone the data, swap fields around.

      Then someone says "that address doesn't exist"

      1. Slant Four

        Re: hmmm

        Never said it was easy.

        So imagine you are running a benchmark of your database on a set of new hardware from various vendors and as part of that you need to use a fully sized production database image.

        The vendors aren't going to ship large multi-million dollar systems to your premises (assuming you have the space, power, HVAC etc)

        Thus you do the benchmark at their bench marking center.

        But you are NOT going to rock up to that center without scrubbing the data.

        I have done this maybe 20 times (on different databases) during my career...so it's 100% possible... you just need to have some smarts.

        It becomes much easier if you need to do a clone often with the same database. While it's a bit of an iterative process the first time, after that it is all scripted but the underlying techniques are the same for any database.

        And logically, you are only needing to scrub a sub-set of the data.

        Bluck

  8. Anonymous Coward
    Anonymous Coward

    Microsoft have been doing something similar for years

    I think it used to be called "Microsoft 365"

  9. Sorry that handle is already taken. Silver badge

    "...a company that offers business AI services such as AI receptionists..."

    I read that and recoiled with horror but then remembered some of the living-breathing-human receptionists I've had to deal with over the years, so maybe it only deserves a shrug. At least with prompt injection you might be able to get what you need done.

  10. MattieD

    Temporary last forever, permanent is gone by the end of the day

    I've current got a 'temporary' monitoring solution in place to keep an eye on a particularly terrible application that doesn't play well with others, and that the supplier doesn't want to acknowledge has any issues.

    My solution is now on v5 of the monitoring code, has been expanded to monitor half a dozen other systems, and it coming up to its second birthday.

    I have absolutely no doubts that it will be in place forever.

    1. David Hicklin Silver badge

      Re: Temporary last forever, permanent is gone by the end of the day

      As your monitoring system is expanding, eventually you will need a temp monitor to monitor the monitoring program.

      1. MattieD

        Re: Temporary last forever, permanent is gone by the end of the day

        You joke, but I have been asked a few times what I have in place to ensure the monitoring system is still monitoring.

        My usual reply was along the lines of 'So you want a monitoring system for the monitoring system? Ok, but what if that monitoring system goes down? Do I need to spin up a monitoring system for the monitoring system of the monitoring system? And what if one of the intermediatory monitoring systems goes down, do we need a monitoring system for all the monitoring systems?'

        I didn't tend to go any further (though I'd like to have done) because I think their brains would have exploded.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon