Trustwave SpiderLabs Security Advisory TWSL2019-008: Vulnerabilities in D-Link Products Published: Currently unpublished Version: 1.0 Vendor: D-Link (http://www.dlink.com/) Finding 1: Remote and Local Password Disclosure in AC750 ADSL2+ ***************Credit: Simon Kenin of Trustwave Product: DSL-2875AL Version affected: 1.00.01 & 1.00.05 and most likely others Product description: Dual Band Wireless AC750 ADSL2+ Modem Router Finding: Remote and Local Password Disclosure Credit: Simon Kenin of Trustwave SpiderLabs D-Link DSL-2875AL prone to password disclosure via simple crafted request to the web management server. PoC: ==== https://127.0.0.1/romfile.cfg This request doesn't require any authentication and will lead to saving the configuration file. The password is stored in clear text. ------------------------------------------------ Finding 2: Remote and Local Information Disclosure in AC750 ADSL2+ ***************Credit: Simon Kenin of Trustwave Vendor: D-Link (http://www.dlink.com/) Product: DSL-2875AL & DSL-2877AL Version affected: 1.00.01 & 1.00.05 and most likely others Product description: Dual Band Wireless AC750 ADSL2+ Modem Router Finding: Remote and Local Information Disclosure Credit: Simon Kenin of Trustwave D-Link DSL-2875AL & DSL-2877AL are prone to information disclosure via simple crafted request to the web management server. PoC: ==== Looking at the HTML code of the login page (index.asp) you would see the following lines: var username_v = '<%TCWebApi_get("Wan_PVC","USERNAME","s")%>'; var password_v = '<%TCWebApi_get("Wan_PVC","PASSWORD","s")%>'; The following username & password are used by the user to connect to his ISP, leaking this info could allow attacker to use those credentials for himself and abuse the ISP. On top of that, bad security habit of password reuse could possibly allow the attacker to gain control of the router itself. Remediation Steps: D-Link came back to us on 9/6 just prior to full disclosure to say that patches are available as follows: DSL-2875AL :: Firmware v1.00.08AU 20161011 :: http://files.dlink.com.au/products/DSL-2875AL/REV_A/Firmware/Firmware_v1.00.08AU_20161011/DSL2875ALA1_FW1.00.08AU_20161011.bin DSL-2877AL :: Firmware 1.00.20AU 20180327 :: http://files.dlink.com.au/products/DSL-2877AL/REV_A/Firmware/Firmware_1.00.20AU_20180327/DSL2877ALA1_FW1.00.20AU_20180327.bin We have not been able to verify whether these patches fix the issue described Revision History: 01/09/2019 - Vendor contacted 01/25/2019 - Vendor confirms receipt of vulnerabilities and is working on a fix 03/27/2019 - Vendor contacted but has no status or update 05/06/2019 - Vendor contacted but has no status or update 08/01/2019 - Vendor contacted with no response 09/06/2019 - Vendor reaches out with patch links 09/10/2019 - Advisory published About Trustwave: Trustwave is the leading provider of on-demand and subscription-based information security and payment card industry compliance management solutions to businesses and government entities throughout the world. For organizations faced with today's challenging data security and compliance environment, Trustwave provides a unique approach with comprehensive solutions that include its flagship TrustKeeper compliance management software and other proprietary security solutions. Trustwave has helped thousands of organizations--ranging from Fortune 500 businesses and large financial institutions to small and medium-sized retailers--manage compliance and secure their network infrastructure, data communications and critical information assets. Trustwave is headquartered in Chicago with offices throughout North America, South America, Europe, Africa, China and Australia. For more information, visit https://www.trustwave.com About Trustwave SpiderLabs: SpiderLabs(R) is the advanced security team at Trustwave focused on application security, incident response, penetration testing, physical security and security research. The team has performed over a thousand incident investigations, thousands of penetration tests and hundreds of application security tests globally. In addition, the SpiderLabs Research team provides intelligence through bleeding-edge research and proof of concept tool development to enhance Trustwave's products and services. https://www.trustwave.com/spiderlabs Disclaimer: The information provided in this advisory is provided "as is" without warranty of any kind. Trustwave disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Trustwave or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Trustwave 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.