Airtel Xstream Nokia G2425 - Root access

  • Thread starter Thread starter ddpanda
  • Start date Start date
  • Replies Replies 72
  • Views Views 29,342
Messages
7
Location
GURGAON
ISP
AIRTEL Xtreme
Has anyone able to gain root access to this ONT,

TLDR: need to create a new WAN interface

I recentlly got my hands on a Nokia g2425 device (spare). i was tinkering with it and found it has an airtel custom firmware and i can to much from enable mode either, wanted to try shell commands to see if we can upload generic zebra firmware (airtel firmware is based on the same) or try to covert this router just a managed switch. but cant since dont have password for shell.

Anyone able to break it or have the password, kindly share. I am guessing airtel uses same password on all models
 
The shell password is vulnerable to command injection, if you enter '; /bin/sh; # exactly with the single quote, it would drop you in a user shell, i dont know how to get root access yet,
source- Security Analysis of Nokia G-120W-F · Issue #99 · codeanit/til
 
I've been able to get root shell access using the above thread as a guide:
Steps :
1. Go to backup/restore page on the web config to get your config.cfg
2. Use the python script here
Source to decrypt the cfg
3. Add username and password in the decrypted cfg (now xml) to the telnetssh according to the blog post here : Unlocking IAM's Nokia G-240W-A router (Part 1) · 0x41.cf
Should look something like this : (Remember to enable the account, username and password both are 'admin' for this sample)
HTML:
<TelnetSshAccount. n="TelnetSshAccount" t="staticObject">
<Enable rw="RW" t="boolean" v="True"></Enable>
<UserName ml="64" rw="RW" t="string" v="admin"></UserName>
<Password ml="64" rw="RW" t="string" v="OYdLWUVDdKQTPaCIeTqniA==" ealgo="ab"></Password>
</TelnetSshAccount.>
You also need to falsify the telnetdisabled and sshdisabled options
HTML:
<X_ALU-COM_LanAccessCfg. n="LanAccessCfg" t="staticObject">
<HttpDisabled dv="false" rw="RW" t="boolean" v="False"></HttpDisabled>
<TelnetDisabled dv="false" rw="RW" t="boolean" v="False"></TelnetDisabled>
<IcmpEchoReqDisabled dv="false" rw="RW" t="boolean" v="False"></IcmpEchoReqDisabled>
<SshDisabled dv="true" rw="RW" t="boolean" v="False"></SshDisabled>
<HttpsDisabled dv="false" rw="RW" t="boolean" v="False"></HttpsDisabled>
<Tr69Disabled dv="true" rw="RW" t="boolean" v="True"></Tr69Disabled>
<SftpDisabled dv="true" rw="R" t="boolean" v="true"></SftpDisabled>
</X_ALU-COM_LanAccessCfg.>

4. Encrypt the xml back to cfg using -ple options and 0x13377331 magic
5. Restore the config using the web ui.

After reboot, you should be able to telnet into your router.
After that, you enter the following commands :
enable
shell

then after you get a prompt for entering password2, use
'; /bin/sh; #
to get shell root access
 
Found a way to enable (almost) all options in web UI. First get shell access with steps mentioned in above comments.
cd to /usr/exe and change the operator ID from default BRTI for airtel to MXXV
Code:
cd /usr/exe
./scfgtool set OperatorID MXXV
Changes would be visible right away. No need to reboot.
 
Last edited:
I enabled all Options in web ui!
by changing the operator id to MXXV
but please check i am not able to delete wan connection profiles or add any new profile! please help!

I want to use this with my local isp
 


Found a way to enable (almost) all options in web UI. First get shell access with steps mentioned in above comments.
cd to /usr/exe and change the operator ID from default BRTI for airtel to MXXV
Code:
cd /usr/exe
./scfgtool set OperatorID MXXV
Changes would be visible right away. No need to reboot.
Also was wondering can we run lightweight script? like “wakeonlan with a port forwarding” so where ever i be I can click my computer’s power on switch! 🌝
 
That's wierd. It is enabled for me. But I had played with many toggles in the XML before I figured this out so maybe some setting that I changed is also contributing to unlocking the wan page. Maybe try searching for InterfaceConfig in the XML and setting enable to true everywhere and uploading the config back.
If that doesn't work, you can always manually add pppoe username and password under <WANPPPConnection.1. tag
 
can you please share your config using github or something? also please try creating a new wan connection list entry!
 
Last edited:
That's wierd. It is enabled for me. But I had played with many toggles in the XML before I figured this out so maybe some setting that I changed is also contributing to unlocking the wan page. Maybe try searching for InterfaceConfig in the XML and setting enable to true everywhere and uploading the config back.
If that doesn't work, you can always manually add pppoe username and password under <WANPPPConnection.1. tag
i tried it but i think it'll be best if you pass on your working config.cfg 😅
 
I'll try to remove my credentials from XML and share when possible. Meanwhile, you can try setting OperatorID to ALCL. It has enabled more options for me. Also try factory reset once to check if it solves the problem.
 
You literally won't Believe what just Happened!
Setting a Warning to all the other enthusiasts
I Clicked on Factory reset with Operator id MXXV and omfg😢
The Router Now has a base Spanish Firmware

which is requesting a random Generated password

IMG-8557.jpg
 
On a brighter side I have my Neighbor's Device who switched to local isp aswell! So i can figure out things on it!
 
Nope Bro! The Default 'Admin' ain't working!😭

better you PM me as this thread needs to be concise and to the point!
 

Top