News for hackers. Stuff that matters.
Re:Raspberry Pi update removes the default user by alar44 on Thursday April 07, 2022 @06:40PM (#30951171)
Good.

8ish years ago, I wrote a script to search out Pis with port 22 opened to the internet with default un and pw. Let it run overnight.

The next morning I checked the log and it found thousands of Pis that I could have just logged into with root privileges if I wanted.

Never trust users.

Re:Raspberry Pi update removes the default user by ciupicri on Thursday April 07, 2022 @07:59PM (#30951786)
Wait, so there's a shortage of IPv4 addresses and people have issues with NAT (including CGNAT) traversal all the time, yet somehow lots of Raspberry Pis end up on the Internet?
Re:Raspberry Pi update removes the default user by teh_klev on Thursday April 07, 2022 @08:01PM (#30951805)
There's probably loads of port mapped pi's sitting behind NAT'd routers.
Re:Raspberry Pi update removes the default user by bscphil on Friday April 08, 2022 @03:12AM (#30954188)
I'm sure it happens but it's hard for me to imagine someone knowledgeable enough to port forward 22 and possibly other ports across their NAT to a Raspberry Pi but not knowledgable enough to realize that enabling themselves to access the Pi over the Internet with the default username and password also enables the same ability for everyone else.
Re:Raspberry Pi update removes the default user by hisnameisjimmy on Friday April 08, 2022 @03:52AM (#30954417)
Honestly kinda wild you can’t imagine this person, because when I was in my teens it was me.

You don’t care about security or don’t understand the implications, and why would you!? You’re having fun!

Fun is the deal. If you focus on the fun path you will jump right past any non fun, which is security.

Think about smart kids who get hurt. Were they capable of preventing the injury? Definitely. We’re they having fun? Absolutely. Fun wins every time.

Re:Raspberry Pi update removes the default user by sofixa on Friday April 08, 2022 @06:47AM (#30955417)
Absolutely! I distinctly remember when i was learning to develop with PHP, and i specifically chose the mysql over mysqli extension (it was at the time mysql was starting to get deprecated because it was vulnerable to SQL injections and what not) because "I don't care about security, it's just a blog I'm developing, nobody would even know it exists".
Re:Raspberry Pi update removes the default user by shbooms on Friday April 08, 2022 @08:10AM (#30955928)
I still remember the day a young me discovered shodan.io for the first time. before that day, I had no idea just how quick and easy it was for strangers to scan the entirity of the internet and just naively assumed that there was no way anyone could find me or my devices amongst the vastness of the internet. needless to say that was a turning point for me and my security posture when it comes to anything internet-related.
Re:Raspberry Pi update removes the default user by seba_dos1 on Friday April 08, 2022 @09:05PM (#30964335)
I honestly still can't imagine it, and I was playing with this kind of stuff in my teens as well. Changing default passwords is part of early setup fun, and nothing spoils the fun as much as unwanted visitors in your network. I can imagine being distracted enough to actually forget about it, sure, but I can't imagine outright neglecting to do it because "fun".
Re:Raspberry Pi update removes the default user by ChrisRR on Friday April 08, 2022 @03:59AM (#30954470)
I think that sounds extremely likely. You know exactly how the average tinkerer loves to follow tutorials that they don't fully understand.

"Access your raspberry pi from the internet" probably doesn't sound to the layman like anyone can access your raspberry pi with zero effort

Re:Raspberry Pi update removes the default user by bennyp101 on Friday April 08, 2022 @03:33AM (#30954313)
I dunno, Im sure there are lots of people who have opened things up so their xbox/ps/whatever works properly (or just enabled DMZ for everything) - and just added the Pi as they would do for those.
Re:Raspberry Pi update removes the default user by teh_klev on Friday April 08, 2022 @06:32AM (#30955347)
> but it's hard for me to imagine someone knowledgeable enough to port forward 22...

I was supposed to be a "knowledgeable" IT expert, but back in the 90's I managed to open-relay my company's mail server...

I did so many and different walks of shame that week.

Re:Raspberry Pi update removes the default user by ale42 on Friday April 08, 2022 @04:46AM (#30954771)
Don't underestimate people's laziness. I've seen Pis with the default password being setup in internal networks and then exposed to the Internet (either via an actual public IP or via a port forwarding) without any change. There was even at least one case where the use left the thing like that after my remarks about security, saying it was just a temporary setup and that nobody would find it anyway...
Re:Raspberry Pi update removes the default user by bigDinosaur on Friday April 08, 2022 @06:34AM (#30955361)
Also don't forget the classic case of people simply forgetting that they set something up, likely originally for some very temporary purpose.
Re:Raspberry Pi update removes the default user by shiftpgdn on Friday April 08, 2022 @09:41AM (#30956666)
Automatic upnp is a thing
Re:Raspberry Pi update removes the default user by johannes1234321 on Friday April 08, 2022 @08:12AM (#30955935)
there is a shortage, while there are plenty of IPv4 addresses. It is an interesting duality.

But just search for "raspberry pi hosting" on your favorite search engine. There are tons of companies providing hosting on Pis, as crazy as it sounds and those come with IPs (but for a semi professional hosting place hopefully with different credentials ... but given how cheap many of those are it's more hope than expectation)

Re:Raspberry Pi update removes the default user by turdnagel on Thursday April 07, 2022 @11:01PM (#30952891)
Could be uPnP setting up port forwarding
Re:Raspberry Pi update removes the default user by jthrowsitaway on Thursday April 07, 2022 @11:17PM (#30952984)
If a distro configures sshd to use UPnP out of the box is deliciously evil. It wouldn't surprise me after some of the shenanigans I've seen through the years.
Re:Raspberry Pi update removes the default user by teekert on Friday April 08, 2022 @02:16AM (#30953866)
Hehe, I once logged into someone else’s pi by accident because I was not on the WiFi network I expect. The person had his Google credentials in a script in his home folder.

Still, it’s nice that you can get it online so wails but it was obviously not a good idea. Some software they sets WiFi and user info while flashing would be nice.

Re:Raspberry Pi update removes the default user by Terry_Roll on Friday April 08, 2022 @01:35AM (#30953647)
Re:Raspberry Pi update removes the default user by tymscar on Friday April 08, 2022 @06:15AM (#30955262)
Why is the top OS Windows 6.1 on that results page?
Re:Raspberry Pi update removes the default user by Terry_Roll on Friday April 08, 2022 @11:30AM (#30958469)
When it scans an ip address, it engages with different forms of communication protocols expected of the port, ie it talks email protocols on the email ports and web browser protocols on the web server ports.

Now its possible to change the agent name of software running behind a port, and Shodan almost certainly have some rules which throws up results as per their criteria.

Maybe you should ask their support dept for a comment to your specific question? [email protected]

Re:Raspberry Pi update removes the default user by abnry on Thursday April 07, 2022 @07:19PM (#30951506)
How can you know that they had the default un and pw without logging into them?
Re:Raspberry Pi update removes the default user by xarball on Thursday April 07, 2022 @07:27PM (#30951553)
Did he say anywhere that he wasn't logging into them :)
Re:Raspberry Pi update removes the default user by justinpowers on Thursday April 07, 2022 @08:13PM (#30951879)
> …I could have just logged into with root privileges if I wanted

He did say it, though indirectly :)

[edit: And then I got downvoted. Oh humans. Lol.]

Re:Raspberry Pi update removes the default user by veonik on Thursday April 07, 2022 @10:26PM (#30952678)
They only logged in as pi -- didn't bother to sudo as root :P
Re:Raspberry Pi update removes the default user by RealStickman_ on Friday April 08, 2022 @03:37AM (#30954329)
People who don't change the default password probably aren't those that would remove sudo privileges.
Re:Raspberry Pi update removes the default user by alar44 on Friday April 08, 2022 @06:00PM (#30963037)
I logged in via script. If the login was successful the IP was added to a list. Was younger and stupider.
Re:Raspberry Pi update removes the default user by protomyth on Friday April 08, 2022 @08:35AM (#30956094)
I bet some of those were internet connected weather stations. We got one built around a Pi.
Re:Raspberry Pi update removes the default user by exfascist on Thursday April 07, 2022 @07:00PM (#30951349)
Lol I thought I was being bad just shoulder surfing for ssh commands.
Re:Raspberry Pi update removes the default user by jachee on Thursday April 07, 2022 @08:51PM (#30952102)
This is why I run `fail2ban` on my pi.
Re:Raspberry Pi update removes the default user by spydum on Thursday April 07, 2022 @09:06PM (#30952188)
If I know the default login, how would fail2ban help you? Doesn't it mine only the failures?
Re:Raspberry Pi update removes the default user by jachee on Thursday April 07, 2022 @10:32PM (#30952710)
Right, I changed the default, and now I ban anyone who tries it.
Re:Raspberry Pi update removes the default user by Brian_K_White on Friday April 08, 2022 @03:14AM (#30954197)
Then what's making a difference for you is that you changed a default name or password.

fail2ban is nice and all, but irrelevant to this post about a default login.

Re:Raspberry Pi update removes the default user by jachee on Friday April 08, 2022 @01:57PM (#30960382)
I guess I should’ve said “Scripts like this…” instead of just “This”.

My entire point being that any client that tries a default account should be insta-banned. That’s what I get from this.

Re:Raspberry Pi update removes the default user by Brian_K_White on Friday April 08, 2022 @09:26PM (#30964450)
stout policy
Re:Raspberry Pi update removes the default user by stjohnswarts on Thursday April 07, 2022 @09:33PM (#30952354)
fail2ban wouldn't help as he used the default password, it would have let him in. All you have to do is change the password or force key only logins (which is what most security conscious people do)
Re:Raspberry Pi update removes the default user by oynqr on Friday April 08, 2022 @03:56AM (#30954446)
fail2ban is such a clumsy solution when one can just disable password authentication and change the default port.
Re:Raspberry Pi update removes the default user by kmbfjr on Friday April 08, 2022 @08:17AM (#30955972)
It is. If you really want to get after the password scans, iptables and connection tracking. After N number of new connection requests, drop for X minutes.

Any IPs that are trusted, put ahead of that logic.

Re:Raspberry Pi update removes the default user by jbaczuk on Thursday April 07, 2022 @06:58PM (#30951322)
I know you logged in to some of them... :)
Re:Raspberry Pi update removes the default user by teaearlgraycold on Thursday April 07, 2022 @11:34PM (#30953075)
Careful now. That's a felony.
Re:Raspberry Pi update removes the default user by simondotau on Friday April 08, 2022 @01:13AM (#30953543)
Phew, good to know my Pi is safe from meddling Americans.
Re:Raspberry Pi update removes the default user by teaearlgraycold on Friday April 08, 2022 @01:21AM (#30953585)
Throw some US legalese in the SSH MOTD.