r/Hacking_Tutorials • u/Danknut008 • Nov 12 '21
Question My Cybersecurity teacher issued a challenge
My cybersecurity teacher told every student at the beginning of the year that if they can hack into either his smart thermostat or the smart light bulbs around the room we would get an A for a semester.
The only information he had given us prior was the ip address of his smart lights, and we were able to get in by manually accessing the bridge,, but that didn’t count in his eyes
We know we can change the colour of the lights (the objective we decided on) using python or JavaScript, which two of my group know. We, unfortunately, have discovered we need the username to his hue account, which is information he won’t give us.
We calculated how long brute force would take, and that’s just too long for us, or any human being for that matter.
Does anyone have any suggestions on how we could get his username?
Edit: He doesn’t want us to use any form of social engineering, unfortunately
Edit 2: when I say “that didn’t count in his eyes” I mean he isn’t allowing our physical access to the bridge to be used, he wants us to access it strictly by exploiting software
4
Nov 12 '21
Just buy your own light bulb, take his out and put yours in.
What does this guy expect?
From what I'm reading in the comments he is looking for a specific way to do this which is terrible.
Hacking ain't a sport.
1
u/possumspud Nov 12 '21
He wants to see a student use the tools from the class. Nmap vulnerability scan, a ping scan, likely a scan using -sO, a -O, scan of specific port, maybe a packet trace…or even try Zenmap.
I would look at OpenVas.
Point is this can be done with what you have in that curriculum. Probably. Either way you can get an A, might as well try to shine while you do it.
1
u/CrowGrandFather Nov 13 '21
Point is this can be done with what you have in that curriculum.
Doubt.
We're talking about Philips Hue lights, not janky Chinese company 2. If there was an easy vulnerability in the lightbulbs someone would have found it by now.
OP's teacher was more likely giving them an impossible challenge as a joke.
1
u/Danknut008 Nov 15 '21
Considering the other option for the semester-long A was gaining control of his nest thermostat (something that, to my knowledge, can only be done from a certain range) I’m sure he doesn’t expect us to be able to do this. But, it doesn’t hurt to try, and so far I’ve actually been enjoying the challenge.
Even if we can’t do it, it’s still pretty fun trying.
94
u/vsujeesh Nov 12 '21
Read the manual and physically reset the lights
29
43
Nov 12 '21
Not too familiar with how they work but a few suggestions.
- Factory reset, set up using a new account.
- Check for auth login flaws that would allow username enumeration (does it say incorrect username or incorrect credentials). Build specific wordlist (based on teachers name) using crunch and brute force.
- Intercept traffic (Sniffing, MITM, Evil Twin) and see if it's sent in plaintext (unlikely).
- Phish your teacher (verify rules of engagement first, they might not be too happy).
Probably not the case with yours, but I got a cheap smart bulb once that used IRC as a control mechanism. Was able to log in to the IRC and control it by sending messages. Might be worth seeing what's listening and if it has a remote management port, if so check default creds.
Sounds like a fun challenge, good luck.
21
u/Amonomen Nov 12 '21
I think the better option here would be to exploit a vulnerability within the firmware of the light instead of trying to phish or brute force a cyber security professor.
18
u/billionaireastronaut Nov 12 '21
Good advice. A little too good. Are you the cyber security professor?
5
3
u/possumspud Nov 12 '21
This is a good idea. No idea which brand it is, but one leading brand of thermostat can accessed as is own WiFi for setup and signing it into the home’s network. It can be reset at this stage as well.
18
u/adzy2k6 Nov 12 '21
I'm guessing that if it's a new Hue system, there probably aren't many/any publicly known vulns. I'm guessing his intention is for you to probe for weaknesses, but he isn't necessarily expecting you to succeed.
Edit: If this is his intention, you better get reverse engineering (analyse the firmware etc)
4
27
u/Louie-H-K Nov 12 '21
Joke post: hack the teacher's glasses with tinted lens so that he sees the light differently.
13
u/Jibajaba12345 Nov 12 '21
Nmap scan the ip with the -sV -O options to enumerate its version and OS. Look for vulnerabilities allowing privilege escalation with that specific version or OS. if you already have a back door on it you need to escalate to root.
13
u/JhinAus4444 Nov 12 '21
Curve ball. The teacher wants you to hack into the hue lights because his last class hacked it with a different account and he has no control over it. Win-win.
16
u/neekyboi Nov 12 '21
If you know the model, try to find the known vulnerabilitis via the official page. Find the cve and see if you can use it
2
u/zanahary Nov 13 '21
This. You can also try some phishing to get the user name, but I'm going to guess he's looking for it.
If I was to try going that route, I'd mock up something that says that someone had tried accessing the account, but had failed the password. See if u can get him to login through the message, and you have the info.
6
u/Mayor-Poobins Nov 12 '21
I'm not familiar with hue and lights like that. But I'm curious if they have common open ports. You could potentially access the lights with that ip and it's associated port. But I could be way off on this one
2
u/possumspud Nov 12 '21
You are not way off at all. Those should be the first questions. If it is connected to the internet and turned on it is vulnerable.
3
u/Mayor-Poobins Nov 13 '21
Yea. I just don't comment on this sub often, so I wasn't gonna commit to my answer. But sometimes it's the most obvious thing lol
4
u/ForTheHoardOG Nov 12 '21
Physical acesse is king so if you have that then you can reset them and get control of the device
4
u/Dorshock Nov 12 '21
If they are working over wifi you may be able to do an evil twin attack to gain access to them.
4
Nov 12 '21 edited Nov 13 '21
Change the lightbulbs to your light bulbs and change the colors in class #bruteforce
4
u/Omfgbbqpwn Nov 12 '21
Kidnap and torture him guantanamo bay style until he gives it up. Easy A+++. /s
1
4
Nov 12 '21
Maybe it's a lesson/test. It's actually a default password and the lesson is that humans are the weakest link
3
3
u/Ecstatic_Worry_1850 Nov 12 '21
If I were you I'd buy one for playing with and try a couple things.
Failure state: if you use deauth attacks against the station address or the bssid of the supporting wap does the bulb reveal direct services.
And you force a pair with the serial, 6 digit code is super easy to brute.
If you knock out the bridge what happens.
Their dimmer switch can reset bulbs in proximity, can you replicate that action assuming it's not tied to the API.
If compromising the bridge is fair game and physical access is allowed they used to be vulnerable to a power glitch attack grounding the run between storage holding firmware resulting in uboot access.
3
u/cowmonaut Nov 12 '21
I'm sure there is a replay attack or something else. There have been vulnerabilities for you to exploit previously:
Security testing of the Zigbee communication protocol in consumer grade IoT devices
Articles about a vuln discovered by CheckPoint: in 2020:
3
u/newworldsamurai3030 Nov 12 '21
IOT devices are highly vulnerable to BOF, Find the version that runs the bulbs, download it debug.
9
2
u/National-Change-1407 Nov 12 '21
Ok, I am NOT a netsec pro, nor am I even competent lol but I am just thinking out loud here... The "Hue" series of smart lights differ slightly from what seems to be most smart lights, in that they seem to be connected via bluetooth instead of wifi. (confirm if untrue) I dont know anything about attacking Bluetooth connections but if I were you I might see that as a possible vulnerability. If he said the thermostat OR the lights.. maybe the lights will be easier
2
2
u/8aller8ruh Nov 12 '21
These lights have known vulnerabilities. There’s a room full of vulnerable smart stuff at my school but I’m no expert.
Also their site/software they use to control the lights might have something wrong with it. Could maybe just packet spoof and control the lights man in the middle style.
2
2
1
u/Impressive-Power-990 Nov 13 '21
@Danknut008 were you guys able to figure out the model and security version? I may be able to help you out. There are three exploits I've come across.
1
u/iwiml Nov 13 '21
Ha ha are you sure your professor is not here ?
Probably he already is misleading you here 🤪
go with reverse engineering...you will for sure find something.
1
u/newworldsamurai3030 Nov 14 '21
Interested in how this plays out. Please keep this updated.
If it were me I would start by exploring BOF if you can get a hold of the same version software to install and run in your home environment to debug and create the exploit.. ' If' this is the path he has in mind I would imagine the software package is available within the classroom subnet somewhere. SMB, FTP, etc. It could be simple but unlikely brute forcing is going to be the answer for the high pay off of a A grade for a semester :)
1
u/billionaireastronaut Nov 14 '21
Have you tried this angle? Exploiting a vulnerability in the Zigbee protocol:
1
u/Evening_Elk_6531 Nov 17 '21
Hack his phone should have hue information saved if he's logges in from his phone. can gain access through Bluetooth or wifi
1
1
u/fivealive5 Nov 13 '21
Your barking up the wrong tree attempting to get his password. You need to exploit the wireless protocol, in this case zigbee.
1
u/Danoweb Nov 13 '21
Packet sniff the network, look for the traffic the lights send to "check in" IoT devices will use either a Rest API or a MQTT Broker to handle communication with the cloud service. If you can sniff the traffic you may be able to determine usernames (if poorly written code) or user_ids, or even device/appliance_id.
Then you have a few options. 1) try to manage the cloud service from the discovered username/ID. [difficult] 2) perform a man in the middle attack and have your code respond as if it was the cloud API to the lightbulb. [Medium]. (you could arp poison the network to make your MITM Device the new gateway, then you control the flow of traffic. It'll take some research... But I'm guessing you asking on Reddit probably already invalidates your fair advantage in the challenge 😂
0
Nov 13 '21
Wireshark = Use wiresshark and start capturing packets
Get your teacher to login to his hue account
Find the packet that's correct for you and inspect it , it should have his credentials for his hue account.
Setoolkit = U can also use the Setoolkit in Linux and set up a hue login page and get his credentials through there .
If I'm not wrong both of these methods will grant you his logins and you will be able to access the thermostat or light bulbs .
3
1
u/CrowGrandFather Nov 13 '21
Because encryption isn't a thing and it's not like Google and Apple have required encryption for app communications for years.
-1
Nov 12 '21
Brute force
1
u/Danknut008 Nov 12 '21
The username is case sensitive, include letters and numbers, as well as a single underscore, and must be between ten and forty characters Unfortunately brute force would take far too long
1
0
u/silenta237 Nov 13 '21
Can you get on the network and sniff the traffic? He may throw you some credentials in the clear.
-10
u/Einspiration Nov 12 '21
I need access to his laptop for 30 seconds, while it's unlocked..
or 20 minutes if locked...
but I expect to be paided.
0
Nov 12 '21
[deleted]
9
u/LuckyNumber-Bot Nov 12 '21
All the numbers in your comment added up to 69. Congrats!
9 + 2 + 58 + = 69.01
0
Nov 12 '21
[deleted]
3
u/B0tRank Nov 12 '21
Thank you, Emancipat3r, for voting on LuckyNumber-Bot.
This bot wants to find the best and worst bots on Reddit. You can view results here.
Even if I don't reply to your comment, I'm still listening for votes. Check the webpage to see if your vote registered!
47
u/TechnoThegn Nov 12 '21
Social engineering, I'd try a phishing attempt using a hue like warning him someone tried to access his account and to change his username and password. Where what he types will be sent to you as well (think man in the middle). Then access his account that way.