mySCADAPro 7 Privilege Escalation
Posted on 03 August 2016
mySCADAProv7 Local Privilege Escalation Vendor: mySCADA Technologies s.r.o. Product web page: https://www.myscada.org/ Affected application: myscadaPro Affected version: v7 (Current version) Vulnerability discovered by: Karn Ganeshen Description: myscadaPro7 application installs seven (8) services. All these services run as LocalSystem by default, and suffer from an unquoted search path issue. This could potentially allow an authorized but non-privileged local user to execute arbitrary code with elevated privileges on the system. A successful attempt would require the local user to be able to insert their code in the system root path undetected by the OS or other security applications where it could potentially be executed during application startup or reboot. If successful, the local useras code would execute with the elevated privileges of the application. Tested on: Microsoft Windows Vista Ultimate SP2 (EN) Details The following services have insecurely quoted paths: 1. Bonjour Service (Bonjour Service) runs as LocalSystem and has path: C:Program FilesmySCADAinmDNSResponder.exe: 2. myalerting (myalerting) runs as LocalSystem and has path: C:Program FilesmySCADAinmySCADAservice.exe ""C:Program FilesmySCADAinmyalerting.exe" -c "C:ProgramDatamySCADAmyscada.conf" -m "C:ProgramDatamySCADAmsmtp.conf" -s "C:ProgramDatamySCADAsms.conf" ": 3. myscadacom (myscadacom) runs as LocalSystem and has path: C:Program FilesmySCADAinmySCADAservice.exe ""C:Program FilesmySCADAinmyscadacom.exe" -c "C:ProgramDatamySCADAmyscada.conf" ": 4. myscadadb (myscadadb) runs as LocalSystem and has path: C:Program FilesmySCADAinmySCADAservice.exe ""C:Program FilesmySCADAinmyscadadb.exe" -c "C:ProgramDatamySCADAmyscada.conf" ": 5. myscadagate (myscadagate) runs as LocalSystem and has path: C:Program FilesmySCADAinmySCADAservice.exe ""C:Program FilesmySCADAinmyscadagate.exe" -f "C:ProgramDatamySCADAmyscada.conf" ": 6. myscadahmi (myscadahmi) runs as LocalSystem and has path: C:Program FilesmySCADAinmySCADAservice.exe ""C:Program FilesmySCADAinmyscadahmi.exe" -p "C:Program FilesmySCADA" -c "confhmi.conf" ": 7. myscadalog (myscadalog) runs as LocalSystem and has path: C:Program FilesmySCADAinmySCADAservice.exe ""C:Program FilesmySCADAinmyscadalog.exe" -c "C:ProgramDatamySCADAmyscada.conf" ": 8. myscadascr (myscadascr) runs as LocalSystem and has path: C:Program FilesmySCADAinmySCADAservice.exe ""C:Program FilesmySCADAin ode.exe" "C:Program FilesmySCADAinscriptsscripts.js" -c "C:ProgramDatamySCADAmyscada.conf" -a 1 ":