News for hackers. Stuff that matters.
Re:iViewed your API keys by Grimburger on Thursday April 14, 2022 @08:46AM (#31026201)
I'd be careful about posting stuff like this as a young person in Australia. The modern situation is incredibly hostile towards this sort of disclosure. Especially regarding a government entity.

It's not that you've done anything in the slightest bit wrong. It's that others with power can easily make it become wrong with little to no backlash in the current Australian climate.

I understand the desire for recognition, but certainly think twice and at the very least wait until after election season is over in June so tech-illiterate political opportunists don't pounce to martyr you for their own gain.

Would suggest looking into the fall of someone widely recognised like Dr Vanessa Teague, a professor who pointed out government failures in e-voting and claimed health anonymization measures to make up your own mind. One government department finally had enough and she was out, I'm sure it's a lot cheaper than actually fixing the problems raised.

Behind the laid back "beers and beaches" mirage, Australia is an authoritarian country with huge public support for iron fists, this is clear to many.

Re:iViewed your API keys by OJFord on Thursday April 14, 2022 @09:03AM (#31026415)
I booked a hotel stay (in Canada, not Australia) and got an error page at some point that dumped out all env vars including database credentials.

Tried my best to report (not publicly disclose) it, including asking the front desk for contact information for IT; no response.

I think we're (on HN) often in quite a bubble of being (or striving to be) hot on this sort of thing, or frankly far trickier to exploit sorts of things, when really the bar for a lot of ('IT is a cost centre') stuff out there is extremely low.

I don't think this sort of leak or vulnerability is anywhere near as rare (which isn't even that rare) as it seems - I think an awful lot must just get quietly exploited or go unnoticed. We're only hearing about this one because someone thought it was 'lolz', I didn't publicize the one I noticed (in my normal user behaviour of just trying to book a room!) nor did I see if I could connect to the database and book myself in for free or something. And I only noticed it because it a) experienced an error; b) dumped env vars in the event of an error - i.e. I didn't have to look for it. How many other sites have I used since with similar problems but which just didn't happen to serve it up on a silver platter for me?

Re:iViewed your API keys by someotherperson on Thursday April 14, 2022 @09:49AM (#31026967)
Leaks are everywhere. I went to a certain country and needed to register my phone, somehow ended up in a workflow that allowed me to enter any national registration number (similar to a social security number) and it would output the person's name, phone number, address and other details for me to confirm that that was me :)

No rate limiting on the endpoint, doesn't require auth, didn't block my VPN, doesn't even set cookies (very privacy conscious devs apparently). I could have mined the entire country's data. Insane.

Re:iViewed your API keys by cortesoft on Thursday April 14, 2022 @11:16AM (#31028059)
How do you know it wasn’t rate limited?
Re:iViewed your API keys by duskwuff on Thursday April 14, 2022 @03:44PM (#31032312)
Hardly matters. If an endpoint is leaking anything as sensitive as national ID + name + address, a determined attacker will have no problem with scraping it slowly or using a network of proxies to avoid rate limits.
Re:iViewed your API keys by AdamJacobMuller on Thursday April 14, 2022 @11:51AM (#31028573)
for((i=0;i<=99999999999;i++));do curl https://site.com/info.php?id=$i > $i.json done
Re:iViewed your API keys by callalex on Friday April 15, 2022 @12:35AM (#31036634)
This is a tangent, but curl has built-in support for “globbing”. For numeric ranges you can just put the range in [brackets] and it handles the rest.
Re:iViewed your API keys by dylan604 on Thursday April 14, 2022 @11:18AM (#31028086)
My favorite is just having the console open while visiting the web. It is amazing the amount of information devs "forget" to remove from sending to the console in production. A lot of console vomit is from JS frameworks. I don't know if there's a switch that can tell them to shut up in production or not, but it's one thing I look out for on anything I work on.
Re:iViewed your API keys by baobabKoodaa on Thursday April 14, 2022 @02:47PM (#31031479)
const log = function(thingToLog) { if (DEV_ENVIRONMENT) console.log(thingToLog) }
Re:iViewed your API keys by mkl95 on Thursday April 14, 2022 @09:48AM (#31026947)
Most C-level people couldn't care less about security. I'm yet to work for a SaaS that implements 2FA, yet at some point all of them have had passwords that a script kiddie could brute force within an hour. The only time I've seen security become a top-level priority was when some customer demanded some kind of checkbox compliance like SOC / ISO27001.
Re:iViewed your API keys by janstice on Thursday April 14, 2022 @08:40PM (#31035369)
You call it checkbox compliance, but it does at least make vendors think about pretty much the bare minimum in all-around security posture, and then have an external audit - as someone who has to approve SaaS vendors it makes my life much easier.
Re:iViewed your API keys by spellsaidwrong on Thursday April 14, 2022 @09:00AM (#31026379)
Thankfully, I already disclosed the issue to iView's engineer team back in December 2021, and a lot of the original data has since been removed from the site. I do try to take care of this issue by censoring a lot of information about the security issue in the write-up, but I'm not sure if that is enough.
Re:iViewed your API keys by Grimburger on Thursday April 14, 2022 @09:06AM (#31026452)
I certainly understand, hopefully you see my point though that being right sadly isn't enough for many/most in our country anymore :/

Good luck with things, it was just a warning and hopefully not a dissuasion from continuing on.

https://www.theguardian.com/australia-news/2020/mar/08/melbo...

Re:iViewed your API keys by mimentum on Thursday April 14, 2022 @09:10AM (#31026505)
It has been censored enough, given the timeframe and previous disclosure to ABC. Good article though.
Re:iViewed your API keys by mardifoufs on Thursday April 14, 2022 @11:00AM (#31027851)
But why is the Australian government so "police state" minded?

Is that really what the Australian people want? I'd guess they just don't care either way, but in that case why would the Australian politicians push for that? Canada has a pretty similar apathy towards politics but even then we don't see the government forcing Canadian citizens to implement backdoors or raiding the offices of a broadcaster. (Yes the recent C-36 and C-10 bills are pretty disastrous in that regard but they are very recent and face quite a bit of opposition)

It's such a peaceful country too, so the entire "hard on crime" policy does not make sense to me. Is it a partisan issue in Australia or is it something both parties agree on?

Re:iViewed your API keys by throwaheyy on Thursday April 14, 2022 @11:35AM (#31028318)
In simple terms, Australia is a relatively young country that formed its own government in 1901. It was also isolated from the rest of the world and has a harsh environment with a lot of things that can kill you. This produced an overall culture of helping each other when you can (what gets called “mateship”), and trust in the government to help when it is needed. Australians generally like an orderly society, that translates to a publically-approved police state.
Re:iViewed your API keys by YPPH on Thursday April 14, 2022 @12:19PM (#31029039)
Slight nitpick: Australian colonial (State) governments existed well before the Constitution of the Commonwealth in 1901, at least since 1788.

I'm not so sure about the relevance of the so-called "harsh environment" to political culture. Although, it may be said Australians have a more deferential view of certain aspects of politics than other Western countries.

Re:iViewed your API keys by throwaheyy on Thursday April 14, 2022 @03:53PM (#31032421)
I’m well aware of the predecessor colonial governments pre-Federation. My point is that those were symbols and apparatus of British imposed rule, and it is relatively recent that the notion of an “Australian government”, as its own national sovereignty, came about. Specifically since the change in national identity had a direct impact on the government no longer being looked at as “the ruling class”.
Re:iViewed your API keys by AussieWog93 on Thursday April 14, 2022 @07:32PM (#31034837)
Don't forget our geography either! We're in fairly close proximity, physically and politically, with authoritarian Asian states like Singapore, Malaysia and China.
Re:iViewed your API keys by cookie_monsta on Thursday April 14, 2022 @01:26PM (#31030182)
> Is it a partisan issue in Australia or is it something both parties agree on?

They've been boiling the frog since 9/11. All anybody has to say is "national security" and the opposition party pretty much folds. Imagine the US without the Bill of Rights - that's the landscape.

Re:iViewed your API keys by dylan604 on Thursday April 14, 2022 @11:20AM (#31028107)
Seeing as Australia was used as a prison colony, I'd have thought they'd be much more likely to be against a strong ruling class.
Re:iViewed your API keys by cookie_monsta on Thursday April 14, 2022 @03:14PM (#31031912)
In the same way that you would expect most people in the US to adhere to puritan Calvinist beliefs?
Re:iViewed your API keys by KyeRussell on Friday April 15, 2022 @12:36AM (#31036639)
Yeah, because a country with over 100 years of post-invasion history would base its worldview purely on the one fact most Americans know about it.
Re:iViewed your API keys by jandrese on Thursday April 14, 2022 @11:34AM (#31028309)
Propaganda works, Rupert Murdoch has known it for decades. Keep the people scared and they won't question what you are doing.
Re:iViewed your API keys by 0xdeadb00f on Friday April 15, 2022 @08:20AM (#31039355)
This is so true. And something sadly I don't think enough Australians are aware of.
Re:iViewed your API keys by jacobsenscott on Thursday April 14, 2022 @11:28AM (#31028199)
Also in the US, where you can be sentenced to 41 months in prison for browsing a public URL at AT&T, and where the the Governor of Missouri wants to make it illegal to view the html source of a web page (because some state web site leaked all the SSNs of their teachers in some hidden html or something).

If I found something like this on a site I don't think I would notify anyone. Too risky. Maybe over TOR if they have a contact page or something. But it is hard to be anonymous these days.

Re:iViewed your API keys by legalcorrection on Thursday April 14, 2022 @12:35PM (#31029325)
weev didn’t just “browse a public url at AT&T”. That is dishonestly reductionist. He noticed the bug and then used it to retrieve and make public the private data of over a hundred thousand people.
Re:iViewed your API keys by jacobsenscott on Thursday April 14, 2022 @08:19PM (#31035202)
My understanding was they just sent random icc-id codes as a query parameter to a public url, and if you hit a valid id it returned an email address. It was working as "designed", and not a bug.
Re:iViewed your API keys by aspenmayer on Thursday April 14, 2022 @03:03PM (#31031725)
The data was already publicly available. Didn’t he just publicize the url?
Re:iViewed your API keys by getcrunk on Thursday April 14, 2022 @08:25PM (#31035244)
You are equivocating. Iirc this bug you refer too WAS the public urls
Re:iViewed your API keys by legalcorrection on Thursday April 14, 2022 @10:45PM (#31036153)
So? You access a few accounts that way, realize you're accessing people's private info, and then stop. No one is gonna charge you for that. Write a script and download a hundred thousand people's private data, that's a whole different thing.
Re:iViewed your API keys by femto on Thursday April 14, 2022 @09:13AM (#31026527)
The current Prime Minister would be torn between "law and order" and "sticking it to the ABC". His head would explode.
Re:iViewed your API keys by Oberbaumbrucke on Thursday April 14, 2022 @08:59AM (#31026367)
Completely agree. The AU Gov would probably call this hacking
Re:iViewed your API keys by michaelt on Thursday April 14, 2022 @09:26AM (#31026656)
Quite a few countries have laws from the 1980s that basically say "gaining unauthorised access to computer systems is a crime"

Which is of course a very expansive definition. Think you've found a leaked database credential and you test it before reporting, so as not to create a false alarm? That's illegal hacking. Almost any persistent XSS? That's illegal hacking. Access an admin panel by entering a default password? You guessed it, illegal hacking.

We might get the impression these laws don't exist, because they aren't enforced internationally or if the hacker can't be identified - so black-hat hacking, cryptolockers, tech support scams, giant data breaches and suchlike go completely unpunished. But a white-hat hacker who identifies themselves in hopes of getting their security report taken seriously might well get a visit from the cops.

Re:iViewed your API keys by gonzo41 on Thursday April 14, 2022 @09:36AM (#31026784)
In Australia the goto for dropping a legal hammer on a digital crime is "misuse of a carriage service" which is just a big lasso that puts crimes like fraud that happen on the internet into a simple basket so they can attach sentences as they see fit.
Re:iViewed your API keys by nerdawson on Thursday April 14, 2022 @10:01AM (#31027149)
Both the first and third example you gave would strike me as crossing the line.

Without permission to test the security of a system, you shouldn't be trying credentials you've stumbled upon or defaults.

If you randomly try my front door and find that it's unlocked, don't expect me to be thanking you.

Re:iViewed your API keys by drdaeman on Thursday April 14, 2022 @02:15PM (#31030992)
> If you randomly try my front door and find that it's unlocked, don't expect me to be thanking you.

Why? If someone tries my front door, doesn't go in but confirms that it is unlocked by opening it by an inch (=verifies the DB credentials but doesn't run any queries) without really peering into my private spaces, then privately reaches out with "hey, hey, your door is not locked - I haven't went in but I know it's unlocked, you may wanna look into this" then I imagine while that could be odd situation (e.g. depending on whenever one has a lawn), I would be grateful and not in the least bit offended.

Surely, I wouldn't be happy if I'd get an alarm that my door is suddenly open (IDS alert) and would react accordingly. But if my door is not locked and I'm not aware and someone responsibly discloses this - I don't see how that'd be an issue.

Re:iViewed your API keys by throwaway744678 on Thursday April 14, 2022 @04:10PM (#31032616)
A friend or a nice neighbor: why not. But a random stranger? I'd certainly be unhappy! Why would they even try to open the door in the first place?
Re:iViewed your API keys by sodality2 on Thursday April 14, 2022 @06:35PM (#31034257)
Better one who would let me know, than someone who would steal everything and sell it, no?
Re:iViewed your API keys by KyeRussell on Friday April 15, 2022 @12:41AM (#31036652)
Sure, but that doesn’t mean that I’d be thanking you.

These arguments about computer crime law are always the same, and people with your view always shoot themselves in the foot with analogies like this. This is not a pre-existing social expectation. If someone comes to my front door, tells me that it’s unlocked, and tells me that they were trying peoples front doors for the intellectual thrill, there is a 0% chance that I’m an reacting positively. I challenge you to find any material proportion of well-adjusted non-nerds that don’t agree with me.

Re:iViewed your API keys by sodality2 on Friday April 15, 2022 @11:33PM (#31049194)
These analogies to the real world fall apart when you realize that cyberspace is filled with millions of people trying to "break into your house".. If you have an internet-connected service you need to expect people to attack it. Not so with a house.

Of course, you have every right to be upset that someone tried to do that to you. But it's clear they don't have bad intentions at least, because they let you know.

Re:iViewed your API keys by nerdawson on Friday April 15, 2022 @11:52AM (#31041629)
If somebody tried my door handle, I’m immediately going to assume malicious intent.

Start trying door handles in your neighbourhood and I can guarantee you’ll either be assaulted by an unhappy resident or arrested pretty quickly. It’s not acceptable behaviour however altruistic you believe it to be.

Re:iViewed your API keys by greggsy on Thursday April 14, 2022 @09:11AM (#31026508)
No, the Australian Cyber Security Centre would consider this responsible disclosure and advise the ABC to uplift their review processes.

On the other hand, Sky News (the current government’s right wing mouthpiece) would use this as an opportunity to discredit the ABC.

Re:iViewed your API keys by nomilk on Thursday April 14, 2022 @09:05AM (#31026435)
The "ctrl + alt + u" attack vector.
Re:iViewed your API keys by derekbaker783 on Thursday April 14, 2022 @08:50AM (#31026251)
The same applies in the US, unfortunately.
Re:iViewed your API keys by reuben364 on Thursday April 14, 2022 @09:00AM (#31026374)
See: this ad from Gov Parson in response to a disclosure about a state website leaking social security numbers of teachers

https://m.youtube.com/watch?v=9IBPeRa7U8E

Re:iViewed your API keys by dhimes on Thursday April 14, 2022 @09:05AM (#31026439)
For others: The ad claims that the news outlet that published the fact that the state website had teacher SSNs was part of the "fake news media" exploiting privacy for political gains.

Apparently the SSNs were embedded in the pages html. The ad makes it sound like a huge reverse-engineering job.

Re:iViewed your API keys by ascar on Thursday April 14, 2022 @09:05AM (#31026432)
"the hacker[/journalist] decoded the HTML source code" and must be prosecuted.

I can't believe what I just watched.

Re:iViewed your API keys by greggsy on Thursday April 14, 2022 @09:26AM (#31026652)
The two situations aren’t really comparable. The ABC, or the minister responsible for selecting it’s CEO (it’s owned and funded by the gov as a corporate entity, but not run by it) would be laughed out of the room if they suggested that the author should be charged.
Re:iViewed your API keys by greggsy on Thursday April 14, 2022 @09:09AM (#31026486)
They’ve been reasonable by waiting four months from initial contact, but in vulnerability disclosures it’s polite to add a better timeline of events. There’s still some detail that hasn’t been fully resolved, but it’s not clear what the residual impact is.

This particular post doesn’t really seem to go into too much depth about what these keys are used for, or the damage that could be done, but I’m erring on the side of ‘meh’ until proven otherwise. It’s freely viewable content if you’re in Australia. They’ve obviously stuffed up on multiple fronts, and my money is on these issues being introduced by an integrator, rather than ABC employee.

Lastly, the ABC is a corporate entity that is fully owned by the commonwealth (and beloved by most Australians) - tue article describes it as ‘state media’, which has sinister propaganda connotations of broadcasters in some other countries.

Re:iViewed your API keys by aspenmayer on Thursday April 14, 2022 @03:17PM (#31031959)
> Lastly, the ABC is a corporate entity that is fully owned by the commonwealth (and beloved by most Australians) - tue article describes it as ‘state media’, which has sinister propaganda connotations of broadcasters in some other countries.

I’d compare ABC to PBS in America. They both are state media. I think more liberal usage of accurate terms in this way is needed. Folks ought to know who funded and produced the reporting that they consume, especially when it’s those same folks doing the funding. It seems like you’re saying that calling it “state media” is something like spreading FUD, but to object to it being said in neutral terms entirely? I don’t see who benefits from leaving that info out either.

I think the larger issues is these terms being used as dog whistles for propaganda in the first place. Those who have the power to label others as propaganda are not themselves subject to such labeling. Curious.

Re:iViewed your API keys by greggsy on Thursday April 14, 2022 @06:54PM (#31034468)
Both PBS and ABC are independent of the ‘state’ though. They’re public broadcasters funded by public funds, which are administered by a federal agency (Dep of Industry in Australia).
Re:iViewed your API keys by 3np on Friday April 15, 2022 @09:20AM (#31039915)
> beloved by most Australians

That doesn't say much either way and isn't relevant - could just be that the propaganda is doing its job.

Re:iViewed your API keys by AdamJacobMuller on Thursday April 14, 2022 @12:57PM (#31029668)
That's really sad.

I've never been there but definitely romanticized the beers and beaches and kangaroos motif. Oh well.

Re:iViewed your API keys by Handytinge on Sunday April 24, 2022 @10:07AM (#31144131)
It's also really untrue, don't believe the doom and gloomers!
Re:iViewed your API keys by asojfdowgh on Thursday April 14, 2022 @12:33PM (#31029283)
Any sources to these claims, other than "it feels that way so it is"?
Re:iViewed your API keys by cormacrelf on Thursday April 14, 2022 @10:28PM (#31036074)
It's true in terms of Bernard Collaery / Witness K, but this is not the same at all. The entity being "hacked" is the ABC, which is an independent broadcaster that the government of the day is constantly trying to claim is biased against it. There is no reason to think that the CDPP or the Attorney General would try to defend the ABC from something like this. If anything they would point and laugh, and use it to justify another huge budget cut.

In terms of responding to criticism in the digital realm, you can get a pretty illustrative view of the situation by looking at how the Digital Transformation Office handled feedback to its pile of steaming shit of a coronavirus proximity alert app. Numerous researchers found serious flaws constantly from its first release. It took like 6 months for them to even recognise that any outside researchers had even been helpful, IIRC. Release notes were like "fixed bugs" and then the researchers decompile the .JAR again and say "nope, you absolutely did not fix this huge problem" and then find another one. Meanwhile the government sank millions more dollars into BCG consulting to review it, while these people were working for free and getting no credit. I think their campaign to cast doubt on the app's safety, efficacy and security was successful, and it did not get taken up, and then the report that was due to be published about the project was never released, and it was all swept under the rug. Overall I think it was about $10 million spent for in the vicinity of 5 covid cases identified, I don't remember exactly but I think all of them were also identified by phone interviews.

They did not, however, prosecute the researchers. So, ignorant and unkind, but mostly not like that journalist in the US who enraged a governor to the point of being criminally investigated for opening a webpage.

Re:iViewed your API keys by mimentum on Thursday April 14, 2022 @09:08AM (#31026479)
Na you'd be alright -we're not authoritarian here