Back

My security camera shipped a GitHub admin token in its login page

218 points4 hourshhh.hn
caruasdo11 minutes ago

I know you're a mastermind when it comes to security, but you should provide more context about the tools and methods you're using in your article so we can better understand what it's all about and not have to Google every single step you're taking.

grommz3 hours ago

The US Department of War IP adresses baked into the firmware is the bigger story here. Note to self: never buy a Korean security product.

hhh3 hours ago

I do know of at least one company who has black-holed the entire DoD ip space and are using it for internal space, which is why I gave a speculation warning... it's really strange regardless.

makr1711 minutes ago

I used to work somewhere that did that. Several of us in Eng pointed out that it was likely impossible to sell anything to DoD personnel since the reply would route internally. But I don't know if it was _fixed_, was still an issue when I left.

anonymars31 minutes ago

Interesting -- seems like the side effect would be to basically prevent use by the DoD but not really anyone else. Bonus points if they sell a "government" version for higher cost

accrual1 hour ago

I also know of a company who does this. The reason in their case is they act as a network concentrator, bridging hundreds of client IP spaces, so this helps them avoid conflicts with their own space without having to NAT constantly. There is still a lot of NAT for the more common ranges.

ErroneousBosh2 hours ago

I recently troubleshot an installation for someone where at some point in the past they'd picked 1.1.1.0/24 as their address range because "all that 192 stuff was silly and too complicated".

You know, I'm not sure I can explain how I feel about this properly without waving the shotgun around.

jabart1 hour ago

Didn't AT&T do that and Cloudflare made them change it when they aquired that space?

inigyou2 hours ago

Yet another thing ipv6 solves. Yeah you can do the officially supported fdXX:XXXX:XXXX:... but you can also just pick something like 1::1 and it's unlikely to conflict with the current global range.

If you're gonna do that, though, it's better if you use fd00:... or one of the other assigned ranges so it's still in the standard range. OSes use this as a heuristic for source address selection.

+3
Matuzy1 hour ago
+2
kowbell1 hour ago
cyanydeez1 hour ago

Sounds like someones on the path to sovereign citizenship. I can't wait for our cyber-sovereign citizenships who deny various IP ranges coming from the government's domain naming system.

bflesch2 hours ago

This will trip up most SOC workflows in funny ways, and I like it.

IPs having a global distinction between public/private is a convention, but local routing can widely differ.

Same with the "China Cyberattacks" - the guys sitting on top of my outgoing fiber can simulate any IP address they want to me.

freeone30001 hour ago

It’s only a convention in the sense that the IANA is a convention: https://www.iana.org/assignments/iana-ipv4-special-registry/...

192.0.0.0/24, 10/8, 172.16/12, and various other subslices of 192/8 are reserved for local use and are not publicly routable.

kotaKat2 hours ago

there's a couple subnets I (ab)use in the DOD IP space for my home network knowing they'd never put them on the open internet. it's also fun to throw logging for a loop if someone digs.

22.0.0.0/8 - it's basically free real estate!

walrus012 hours ago

the entirety of 10/8 and 172.16/12 and 192.168/16 wasn't large enough for your house?

xoa1 hour ago

>the entirety of 10/8 and 172.16/12 and 192.168/16 wasn't large enough for your house?

Just to chime in agreeing with sibling comments, the issue is when it's not about just your house and you're deep into self-hosted stuff with a lot of different properties and businesses other people's houses all sharing resources. Without a lot of coordination and consideration, which in practice doesn't really happen easily given the adhoc nature such things tend to organically develop out of, and all the random stuff that wants specific addresses at least for setup, it actually gets pretty easy to run into collisions. Allocations typically are definitely inefficient in many respects but also made sense in the context they were first done and of course can be a certain amount of effort to change.

In an ideal world I sorta feel like "IPv6" should have been more along the lines of <12 octet prefix>:<IPv4>, everyone gets a prefix or set of prefixes that they actually own and are consistent worldwide, or at least only change when geographic location changes, and then can just have the entire 32-bit IPv4 space for LAN however they want. Then you only have to care about prefix between LANs and it could all be extremely automated, internally you only need to use something that looks like IPv4 with the network hardware transparently able to handle prefixes for WAN. Backwards compatibility story would be a lot more straight forward too. Oh well.

@kotaKat: that's a great idea and I don't know why I forgot I played with that like 15 years ago. Really handy as a backup space that almost certainly won't collide with any commercial hardware at least.

ErroneousBosh2 hours ago

I work for a large organisation that has various blocks scattered around 10./8, some with highish values for the second octet and some with lowish values, so say 10.129.0.x/24 and 10.3.0.x/24 to pick just two out of a couple of thousand.

But one of our vendor networks uses 10.32.x.x/32 for various radio gateways, and the radios themselves all locally expose (this is where I give away too big a clue as to what I do) 10.0.0.101 as a management address that emits important link status data.

So you can imagine what a godawful bùrach everyone's routing tables are.

kotaKat2 hours ago

i deal with a lot of nerds that are all interconnected with one another and nobody can agree on a common subnet for their houses when we all decide to exchange routes internally. ;)

cryptonym2 hours ago

I have seen ISP doing CGNAT on DOD IP space.

lardosaurusrex1 hour ago

just buy stuff you can put your own firmware/os on because it's either just the worst security in the world (aka anything not from china) or, well... china.

and while i currently don't hate china as much as i do US rn (because canadian; sorry) i can also say -- due to being an aforementioned leaflandian -- that due to very personal experience i have zero faith in anything from china that has the ability to connect to any type of network :')

And so yeah at this point if I can't at the very least get a whatever-wrt firmware (preferably a proper linux distro nowadays; not to say the *-wrt firmwares aren't a real OS but, y'know) on the device i just avoid them entirely since, well... it's all i can do at this point because even if there were baked in hardware-based backdoors i as an individual can't do much more than that.

prox45 minutes ago

That sounds horrible. I got an old PI4, would it make for a decent router, if at all possible?

walrus012 hours ago

> Note to self: never buy a Korean security product.

The Canadian Navy very recently made a major choice and agreed with you

https://www.google.com/search?client=firefox-b-d&q=hanwha+oc...

dev_l1x_be1 hour ago

Or Korean IoT products. The ones I was working on had insane approach to security.

kingleopold1 hour ago

Note to self: never buy any Korean hardware or software product.

/S

walrus0132 minutes ago

Note to self, never buy any hardware product, move to a yurt in the woods, start an alpaca ranch, write a manifesto

dev_l1x_be1 hour ago

Not surprised, many of these vendors are doing crazy things, insane defaults, broken security, hardcoded values. Security is not a priority, I get that, but at the very least some baseline check would be nice (no hardcoded credentials for starting)

snoman1 hour ago

As they say: in IoT the S stands for security.

folkrav55 minutes ago

There’s some irony to security not being a priority for security cameras. Different kind of security I know, but still.

daneel_w38 minutes ago

There's also some irony in people happily ignoring that so many of these products live-stream the inside view of their homes and offices to some foreign corporate cloud - and in many Chinese security cameras, a state-backed corporation's cloud. Because, wow, it really is convenient.

tehlike32 minutes ago

A rule of thumb, put your cameras on a separate VLAN and never give that vlan internet access.

Least you can do.

RyJones3 hours ago

When I cared, I found out that a lot of OBD-II dongles shipped with the same MAC, which gave you access to everything on a bunch of websites.

You can curse the storm, but the wind will come.

netsharc3 hours ago

how did "same MAC" lead to "access to everything"?

Was the website's security based on MAC, which presumably is supplied by the client? If so, I guess.. typical IoT.

RyJones2 hours ago

buy any dongle that sells for under $100 on amazon. they all have the same mac, and come with 'bespoke' apps to let you do things to your car. those apps are all thin wrappers on code widely shared; they use the MAC of the dongle as the keystone for ID.

Short story: buy one cheap dongle on Amazon, dump the MAC (00:11:22:AA:BB:CC IIRC; it's been 15 years since I cared) and you have auth to all of the apps everywhere.

Reminder: the Bluetooth logo comes, mostly, from self-certification.

andreareina2 hours ago

Amazing! I have the same MAC address on my luggage!

walrus012 hours ago

I made things easier by setting the permission action link on all my nuclear weapons to zero

https://www.google.com/search?client=firefox-b-d&q=permissio...

tclancy1 hour ago

Remind me to rotate my GitHub tokens.

londons_explore2 hours ago

I bought 3 from 3 different vendors and they all have totally different Mac addresses.

Internally they're all Bluetooth to serial chips, and another pic16xxxx chip which does serial to canbus.

I guess the Bluetooth serial chips probably have programmable Mac addresses, but equally they normally ship with a globally default one unless you flash a different one onto it.

inigyou2 hours ago

Why do the apps need auth?

sodapopcan53 minutes ago

This blog's misuse of the external link icon irks me.

IshKebab2 hours ago

LLMs have truly killed obfuscation. It only worked previously by making things extremely tedious but AI doesn't care about that.

llm_nerd2 hours ago

And it's worth considering that obfuscation only ever worked against casuals for whom tedious was a bridge too far. Nation state actors and criminal hacker groups, on the other hand, consider the tedious entirely worth it.

phh1 hour ago

Yes, obfuscation was always a matter of cost: how much money do you need to break the protection? LLM just decreased that amount by a lot.

(Yes ok, RSA4096 is technically a matter of cost, you just need an infinite amount of money)

inigyou2 hours ago

Pirates checked Denuvo, once considered the king of DRM.

walrus012 hours ago

> consider the tedious entirely worth it.

Entirely without LLMs, I'm imagining an office of North Korean compsci graduates doing astonishingly tedious tasks, for whom an office job on a basic Linux computer and slightly better diet and nice apartment put them in the top 1-2% of living standard in the country.

p-e-w1 hour ago

On the bright side, even a small local LLM can easily improve garbage code like that.

orbital-decay46 minutes ago

I'm 100% confident in hardware companies' ability to make infinitely incompetent software given infinitely smart agents. They do it because they don't care about software, not because they lack tools. No agent can turn them into software companies if they don't want it themselves.

whalesalad2 hours ago

I bought some ambient room lighting recently. You cannot control them without a proprietary app. This bugged me ... so I grabbed an APK from the Google store, unpacked it, and found essentially keys to the kingdom: api keys for the backend, api keys for shopify, etc. Haven't done anything with this knowledge yet.

Ecsta2 hours ago

There's a lot of public keys that don't give you any special access, unless the dev is really bad.

Anyone who cares about security will be using App Attest or the Google store equivalent.

JTbane1 hour ago

>Anyone who cares about security

I have something hilarious to tell you about IoT apps

tclancy1 hour ago

A Venn diagram like a 6th grade boy's graffiti of boobs.

tehlike31 minutes ago

Another rule of thumb - i know it's not always the best since some products are really nice aesthetically - is to buy only local smart stuff, for example, zigbee/zwave.

petepete18 minutes ago

I live by this rule*. Being able to pick up stuff from IKEA that's well supported, well designed and really affordable is a huge advantage.

*almost, I have two things that need an app. My Vaillant boiler and my Yale alarm system. Both apps are terrible, but I have a 10 year warranty on the boiler and my alarm is up to scratch from a home insurance point of view.**

tehlike14 minutes ago

Yale alarm? Can you link?

Vailant boiler - I wonder if there's a debug interface you can use. Not knowing specifics of your model, i foudn this: https://github.com/jayme-github/esphome_vaillant

Codex can help probably further heh.

dev_l1x_be1 hour ago

In many cases it is bad to publish this info because they might come after you. There used to be a company who shielded the “researcher” from the legal consequences, can’t remember the name though.

fragmede1 hour ago

@stake or L0pht?

inigyou1 hour ago

Everything can be controlled without a proprietary app. Hope you reverse engineer the protocol and publish how to do it.

tehlike31 minutes ago

Or claude/codex can.

fragmede55 minutes ago

Have you actually tried to do anything with them though? The keys are in there, but may not grant you any real extra access beyond what your user is actually allowed to do via the app.

avgDev32 minutes ago

It is still pretty nice, you don't have to install yet another app to do something. People did this with Mazda app as it allowed them to start the car without subscription. They 'fixed' it.

inisirex35 minutes ago

[flagged]

aizk1 hour ago

Department of War IP address? I feel this should be making headlines!

CodesInChaos20 minutes ago

Abusing IP ranges which were assigned to an organization but aren't actually used on the public Internet as private addresses is pretty common. Sure, it's bad practice, but not a big deal.

that_guy_iain2 hours ago

I bet someone returned that security camera.

mikey_p44 minutes ago

No, if you read the article the author was downloading firmware from their website and still found the token.

joka88xj46 minutes ago

[flagged]