Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Perimeter

9/25/2009
02:51 PM
John H. Sawyer
John H. Sawyer
Commentary
50%
50%

BeEF: XSS Vuln To Hack In Less Than 20 Characters

As I'm finishing another successful Web application penetration test, I'm kicking myself for not noticing a new release of one of my all-time favorite Web hacking tools, the Browser Exploitation Framework (BeEF). BeEFis a fantastic tool for getting across to developers and Web admins the seriousness of vulnerabilities like cross-site scripting (XSS).

As I'm finishing another successful Web application penetration test, I'm kicking myself for not noticing a new release of one of my all-time favorite Web hacking tools, the Browser Exploitation Framework (BeEF). BeEFis a fantastic tool for getting across to developers and Web admins the seriousness of vulnerabilities like cross-site scripting (XSS).There is a blurred line between a Web application vulnerability assessment and a Web application penetration test. The former focuses on identifying vulnerabilities, while the latter attempts to exploit the vulnerabilities in order to gain access to sensitive information, compromise users of the site, or take control of the Web server. The reason for the blurring is that to determine whether a vulnerability exists in a Web app, you have to exploit it.

A perfect example of this is XSS and BeEF. To find out if a Web application is vulnerable to XSS, a pen tester (or attacker) will usually insert a JavaScript alert statement into a search field. If the returned page results in a pop-up alert box, then the Web app is vulnerable. An alert box is pretty harmless, so using the alert method as an example during a meeting with the client elicits very little alarm.

Now for BeEF: Take the same scenario and, instead of a JavaScript alert statement, insert a script tag that includes the source tag pointing to your Web server where BeEF is installed (it's a PHP application that requires very little initial configuration). As soon as a client browses to the page you've attacked, BLAM! -- they are hooked and now a zombie under your control within the BeEF Web interface.

While this is a very simple example, it illustrates the fine line between determining whether a Web vulnerability exists, and exploiting it to take control of a user's Web browser. SQL injection is another vulnerability where the same blurriness exists. Inputting a single quote in a login field could cause the back-end SQL query to error out, while adding a few hyphens, ones, and equals sign means you could slip right past the authentication.

Meantime, BeEF is a wonderful tool, and the latest version adds some awesome features, including integration with the Metasploit Framework, the ability to exploit extensions in Mozilla, better detection of the victim's browser, and tiered logging (so report writing is a little easier because you know exactly what happened). If you haven't used it before, then take a look -- it's a seriously powerful tool and should be part of any Web app pen tester's toolkit.

John H. Sawyer is a senior security engineer on the IT Security Team at the University of Florida. The views and opinions expressed in this blog are his own and do not represent the views and opinions of the UF IT Security Team or the University of Florida. When John's not fighting flaming, malware-infested machines or performing autopsies on blitzed boxes, he can usually be found hanging with his family, bouncing a baby on one knee and balancing a laptop on the other. Special to Dark Reading.

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Zero-Factor Authentication: Owning Our Data
Nick Selby, Chief Security Officer at Paxos Trust Company,  2/19/2020
44% of Security Threats Start in the Cloud
Kelly Sheridan, Staff Editor, Dark Reading,  2/19/2020
Ransomware Damage Hit $11.5B in 2019
Dark Reading Staff 2/20/2020
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
6 Emerging Cyber Threats That Enterprises Face in 2020
This Tech Digest gives an in-depth look at six emerging cyber threats that enterprises could face in 2020. Download your copy today!
Flash Poll
How Enterprises Are Developing and Maintaining Secure Applications
How Enterprises Are Developing and Maintaining Secure Applications
The concept of application security is well known, but application security testing and remediation processes remain unbalanced. Most organizations are confident in their approach to AppSec, although others seem to have no approach at all. Read this report to find out more.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2012-0063
PUBLISHED: 2020-02-21
Insecure plugin update mechanism in tucan through 0.3.10 could allow remote attackers to perform man-in-the-middle attacks and execute arbitrary code ith the permissions of the user running tucan.
CVE-2013-3551
PUBLISHED: 2020-02-21
Kernel/Modules/AgentTicketPhone.pm in Open Ticket Request System (OTRS) 3.0.x before 3.0.20, 3.1.x before 3.1.16, and 3.2.x before 3.2.7, and OTRS ITSM 3.0.x before 3.0.8, 3.1.x before 3.1.9, and 3.2.x before 3.2.5 does not properly restrict tickets, which allows remote attackers with a valid agent ...
CVE-2013-4088
PUBLISHED: 2020-02-21
Kernel/Modules/AgentTicketWatcher.pm in Open Ticket Request System (OTRS) 3.0.x before 3.0.21, 3.1.x before 3.1.17, and 3.2.x before 3.2.8 does not properly restrict tickets, which allows remote attackers with a valid agent login to read restricted tickets via a crafted URL involving the ticket spli...
CVE-2019-19865
PUBLISHED: 2020-02-21
Atos Unify OpenScape UC Web Client 1.0 allows XSS. An attacker could exploit this by convincing an authenticated user to inject arbitrary JavaScript code in the Profile Name field. A browser would execute this stored XSS payload.
CVE-2019-19866
PUBLISHED: 2020-02-21
Atos Unify OpenScape UC Web Client 1.0 allows remote attackers to obtain sensitive information. By iterating the value of conferenceId to getMailFunction in the JSON API, one can enumerate all conferences scheduled on the platform, with their numbers and access PINs.