Document Title: =============== GTA Firewall GB-OS v6.2.02 - Filter Bypass & Persistent Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1713 Release Date: ============= 2016-02-24 Vulnerability Laboratory ID (VL-ID): ==================================== 1713 Common Vulnerability Scoring System: ==================================== 3 Product & Service Introduction: =============================== GB-OS 6.2 presents numerous enhancements and new features for GTA firewall UTM appliances. GB-OS updates include new country blocking configuration options, additional report types and graphs, threat management and high availability enhancements, certificate management additions, IPv6 updates, and abundant web interface upgrades. GB-OS 6.2 also provides 64-bit support for GB-2100 and GB-2500. GB-Ware includes both 64-bit and 32-bit support. Certificate management updates include the addition of pkcs#7 format, CRLs and the ability to revoke certificates. High Availability features improved slave and group updating for easier failover management utilizing multiple firewalls, and an increased VRID range. Threat management updates protect your network and resources with up-to-the minute technology. The power of GTA`s Mail Proxy is boosted with support for EHLO and ESIZE commands and the addition of a DNS white list. The Web Filtering subscription option includes new refined content categories, providing more granular web access control for employees. Web interface improvements include menu navigation modifications, country flags, updated monitoring and activity pages and updated configuration wizards. These modifications and new elements aide administrators in configuring and managing GB-OS powered firewalls. Configuration verification messages and log messages have also been updated for improved firewall administration. (Copy of the Homepage: http://www.gta.com/firewalls/ss/ ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Research Team discovered an application-side input validation web vulnerability in the official GTA Web Firewall appliance - GB OS v6.2.02. Vulnerability Disclosure Timeline: ================================== 2016-02-04: Researcher Notification & Coordination (Benjamin Kunz Mejri - Evolution Security GmbH) 2016-02-05: Vendor Notification (GTA Security Team) 2016-02-10: Vendor Response/Feedback (GTA Security Team) 2016-02-11: Vendor Fix/Patch #1 (GTA Developer Team) 2016-02-20: Security Acknowledgements (GTA Security Team) 2016-02-24: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Global Technology Assiciates Inc Product: GTA Web Firewall - Web-Application (Appliance) GB-2500, GB-2100, GB-850, GB-300 & GB-Ware Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ An application-side input validation web vulnerability has been discovered in the official GTA Web Firewall appliance - GB OS v6.2.02. The vulnerability allows a local attackers to inject own malicious script codes to the application-side of the affected modules context. The security vulnerability is located in the `Edit Packet Capture Filter` function of the `Monitor - Packet Capture - Monitor - Tools - Packet Capture` module. Remote attackers are able to inject script codes to the description input field by adding a new packet capture filter in the web firewall interface. The injection point is the `Edit Packet Capture Filter - Description Input Field` and the execution point is the `Packet Capture` item listing. The attack vector is persistent (application-side) and the request method to inject is POST. The web firewall interface has an own validation procedure to filter bad inputs. The input validation of the description can be bypassed by injection of a splitted char injection. The attacker can inject two payloads and the first is filtered, the second bypasses the validation. The security risk of the application-side validation web vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.0. Exploitation of the persistent input validation web vulnerability requires a privileged appliance web-application user account and low user interaction. Successful exploitation of the vulnerability results in session hijacking, persistent phishing attacks, persistent external redirects to malicious source and persistent manipulation of affected or connected application modules. Request Method(s): [+] POST Vulnerable Service(s): [+] GB OS v6.2.02 Vulnerable Module(s): [+] Packet Capture - [Monitor - Tools - Packet Capture] Vulnerable Input(s): [+] Edit Packet Capture Filter - [Description] Vulnerable Parameter(s): [+] description - listtextplain Affected Module(s): [+] Packet Capture Item Listing Proof of Concept (PoC): ======================= The application-side validation vulnerability and filter bypass can be exploited by local attackers with privileged web-application user account and low user interaction. For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue. PoC: Packet Capture - [Monitor -> Tools -> Packet Capture] "> ... Index Edit Interface Capture File Packets Captured Description 1EXTERNAL
2 --- PoC Session Logs [POST] --- Status: 200[OK] POST http://localhost:7319/alive Load Flags[LOAD_BACKGROUND LOAD_BYPASS_LOCAL_CACHE_IF_BUSY ] Größe des Inhalts[-1] Mime Type[text/html] Request Header: Host[localhost:7319] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Accept-Language[de,en-US;q=0.7,en;q=0.3] Accept-Encoding[gzip, deflate] DNT[1] Referer[http://localhost:7319/menu/navmenu6201_en_6.2.01_sw_i_Live.html] Cookie[GBPREFS=expert=false; GBMODE=; GBPRODUCT=; GBNOWIZARD=true; hintsHidden=; GBMENUFRAME=idSslVpn|idMonitor|; GBMENU+=186|183|176|; GBAUTH=; GBFB_AUTH_KEY=90428582497884388874313717111004; dnsopt=; adv179_1=%23%3Fadv_view%3Dtrue] Connection[keep-alive] Content-Length[0] Response Header: Server[unknown] Content-Type[text/html; charset=utf-8] Connection[Keep-Alive] Date[2016-02-05 04:29:56 EST (-0500)] Expires[2016-02-05 04:29:56 EST (-0500)] Cache-Control[no-cache, no-store, must-revalidate] Set-Cookie[GBPREFS=expert=false; HttpOnly; path=/; GBNOWIZARD=true; path=/; GBMODE=; path=/; GBPRODUCT=; path=/; GBAUTH=; path=/;] Transfer-Encoding[chunked] - Status: 200[OK] GET http://localhost:7319/monitor/a[PERSISTENT INJECTED SCRIPT CODE EXECUTION!] Load Flags[LOAD_DOCUMENT_URI ] Größe des Inhalts[-1] Mime Type[application/x-unknown-content-type] Request Header: Host[localhost:7319] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Accept-Language[de,en-US;q=0.7,en;q=0.3] Accept-Encoding[gzip, deflate] DNT[1] Referer[http://localhost:7319/monitor/pktCapture6201.html] Cookie[GBPREFS=expert=false; GBMODE=; GBPRODUCT=; GBNOWIZARD=true; hintsHidden=; GBMENUFRAME=idSslVpn|idMonitor|; GBMENU+=186|183|176|; GBAUTH=; GBFB_AUTH_KEY=90428582497884388874313717111004; dnsopt=; adv179_1=%23%3Fadv_view%3Dtrue] Connection[keep-alive] Response Header: Server[unknown] Connection[close] Date[2016-02-05 04:30:20 EST (-0500)] - Status: 200[OK] GET http://localhost:7319/monitor/a[PERSISTENT INJECTED SCRIPT CODE EXECUTION!] Load Flags[LOAD_DOCUMENT_URI ] Größe des Inhalts[-1] Mime Type[application/x-unknown-content-type] Request Header: Host[localhost:7319] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Accept-Language[de,en-US;q=0.7,en;q=0.3] Accept-Encoding[gzip, deflate] DNT[1] Referer[http://localhost:7319/monitor/pktCapture6201.html] Cookie[GBPREFS=expert=false; GBMODE=; GBPRODUCT=; GBNOWIZARD=true; hintsHidden=; GBMENUFRAME=idSslVpn|idMonitor|; GBMENU+=186|183|176|; GBAUTH=; GBFB_AUTH_KEY=90428582497884388874313717111004; dnsopt=; adv179_1=%23%3Fadv_view%3Dtrue] Connection[keep-alive] Response Header: Server[unknown] Connection[close] Date[2016-02-05 04:30:39 EST (-0500)] - ALERT: GBMODE=; GBPRODUCT=; GBNOWIZARD=true; hintsHidden=; GBMENUFRAME=idSslVpn|idMonitor|; GBMENU+=186|183|176|; GBAUTH=; GBFB_AUTH_KEY=90428582497884388874313717111004; dnsopt=; adv179_1=%23%3Fadv_view%3Dtrue Reference(s): http://localhost:7319/menu/ http://localhost:7319/alive/ http://localhost:7319/monitor/ Solution - Fix & Patch: ======================= The security vulnerability in the web firewall can be patched by a secure encode and parse of the vulnerable description input field context with the `description - listtextplain` parameter. Restrict the input, disallow special chars and escape the context to prevent persistent script code injection attacks. Encode also the description output in the listing to patch the execution point of the bug. Information: The GTA developer team patched the vulnerability in version 6.2.03 with cooperation of the internal security team. Security Risk: ============== The security risk of the application-side input validation web vulnerability and filter bypass issue in the web firewall are estimated as medium. (CVSS 3.0) Credits & Authors: ================== Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (bkm@evolution-sec.com) [www.vulnerability-lab.com] Disclaimer & Information: ========================= The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases or trade with fraud/stolen material. Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com Contact: admin@vulnerability-lab.com - research@vulnerability-lab.com - admin@evolution-sec.com Section: magazine.vulnerability-db.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register/ Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact (admin@vulnerability-lab.com or research@vulnerability-lab.com) to get a permission. Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™ -- VULNERABILITY LABORATORY - RESEARCH TEAM SERVICE: www.vulnerability-lab.com CONTACT: research@vulnerability-lab.com