Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

Unifi Fiberhome SR1041F backdoor root ssh access, Don't open port 80 on WAN side

views
     
TSwhirleyes
post Oct 29 2023, 10:54 PM, updated 3y ago

New Member
*
Newbie
4 posts

Joined: Sep 2005
Fiberhome Router SR1041F RP0105 ssh root backdoor

It is possible to login ssh as root user by exploiting remote code execution vulnerability
https://gist.github.com/whirleyes/c664c33ff...2c1446f2a97abb9 and backdoor factory access mode in dropbear

Pre-authentication remote code execution allows anyone without logged in to send commands to the operating system as the root user.

Thus, opening WAN port 80 could be unsafe for your network.


This scenario involves a sequence of commands:
1. Enable factory mode
2. Remove root password
3. Restart dropbear (allow no password and use /var/passwd instead of /var/dropbear_passwd)
4. Open firewall

SSH root backdoor execution
https://gist.github.com/whirleyes/7916c5cd0...5aaceb2f50f837c

Done submitting CVE.

This post has been edited by whirleyes: Oct 29 2023, 11:31 PM
TSwhirleyes
post Oct 30 2023, 05:54 PM

New Member
*
Newbie
4 posts

Joined: Sep 2005
QUOTE(nonamer @ Oct 30 2023, 02:09 PM)
since got root access, do u manage to change the radio country code from MY to US ?
*
haven't explore much.
but i think you can try check /fhconf/fh_wifi/ directory
TSwhirleyes
post Oct 30 2023, 06:04 PM

New Member
*
Newbie
4 posts

Joined: Sep 2005
QUOTE(Jjuggler @ Oct 30 2023, 02:16 PM)
Mate, I just scanned through your github rep and the details presented. Great job there mate. Keep up the good work.  thumbup.gif
*
Learn so much from this https://techdator.net/fiberhome-devices-has...p-a-new-botnet/

I don't think they will release firmware update anytime soon.
Best is to spread awareness, else it could be another Gwmndy botnet victim

My intention is just to get root access so I can proceed with building OpenWrt image for this device.
or at least can make some tweak to the original firmware.

 

Change to:
| Lo-Fi Version
0.0121sec    0.43    6 queries    GZIP Disabled
Time is now: 5th December 2025 - 11:58 PM