MarcelNL
Posts: 8
Joined: Fri Dec 25, 2015 11:07 am

Pi webserver, port forwarding and default credentials: risks?

Mon Jan 29, 2018 9:02 pm

Hi to you all out here,

My son (13) is hosting a small website via a raspberry pi (via apache). To make sure others have access from outside (WAN) he made our router port forward any traffic to port 80 towards the LAN ip:80.

All very well an nicely working, but I just found out he is still using the well known original credentials the pi came with after installation...

Now, of course this all sounds a bit risky, possibly endangering everything in the LAN, I wonder if anyone out here could point out how exactly a hacker could gain access to the pi in its current state? Is there a particular script I could use to show him? I would like to use that information to educate him a bit.

Thanks very much in advance!

MarcelNL
Posts: 8
Joined: Fri Dec 25, 2015 11:07 am

Re: Pi webserver, port forwarding and default credentials: risks?

Tue Jan 30, 2018 7:38 pm

Anyone care to put down some thoughts? Much appreciated! Thanks.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Pi webserver, port forwarding and default credentials: risks?

Tue Jan 30, 2018 7:40 pm

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Pi webserver, port forwarding and default credentials: risks?

Tue Jan 30, 2018 7:44 pm

If you have only forwarded port 80 you will be fine (as long as you are careful with any code on web pages).

The one you need to worry about is if you have forwarded port 22 for remote SSH access.

MarcelNL
Posts: 8
Joined: Fri Dec 25, 2015 11:07 am

Re: Pi webserver, port forwarding and default credentials: risks?

Tue Jan 30, 2018 7:50 pm

Reading this discussion viewtopic.php?t=83391 I get the feeling there is not much risk in port forwarding port 80 alone towards an Apache installation serving up a simple static (non php) site and having SSH disabled (which would open a different port probably, i.e. if also port forwarded, not if just used on LAN).

Of course, I understand that it is best to change the user / password just in case.

Anyone?
Last edited by MarcelNL on Tue Jan 30, 2018 9:24 pm, edited 2 times in total.

MarcelNL
Posts: 8
Joined: Fri Dec 25, 2015 11:07 am

Re: Pi webserver, port forwarding and default credentials: risks?

Tue Jan 30, 2018 7:54 pm

rpdom and DougieLawson, thanks very much!

Return to “Networking and servers”