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.

Application Security

10/17/2019
04:25 PM
Connect Directly
Twitter
LinkedIn
RSS
E-Mail
50%
50%

Debug Feature in Web Dev Tool Exposed Trump Campaign Site, Others to Attack

The problem is not with the tool itself but with how some developers and administrators are using it, Comparitech says.

US President Donald Trump's main campaign website was one of more than 100 domains found vulnerable to attack recently because its developers had apparently forgotten to disable the debug mode in a tool that was used to develop the site.

The issue with Trump's site was addressed Wednesday after researchers from Comparitech informed the campaign about it. Had the security weakness been left open, attackers would have had – among other things— an opportunity to hijack the site's email server and send out messages on behalf of email.donaldtrump.com, Comparitech said.

According to the vendor, it is not clear when the debug mode was enabled on the Trump website. But the potential consequences of even a short exposure would have been severe. "Trump's campaign website is used to solicit donations, after all," the vendor noted. "Attackers could have intercepted correspondence with Trump supporters or phish campaign contributors, among other crimes."

The problem on Trump's site and on hundreds of others has to do with their use of a popular PHP framework called Laravel.

Laravel includes a suite of tools that can be used to build, test, and deploy Web applications, says Paul Bischoff, lead researcher at Comparitech. Many people use it to speed up the website development process. "Laravel is one of, if not the, most popular PHP frameworks," Bischoff says.

Laravel, like other frameworks, incorporates a debug mode that developers can use to identity misconfigurations and other errors on their sites before they go live. Developers can access the debug interface via a standard Web browser.

Problems can arise when developers inadvertently leave the debug mode enabled after the site has gone live. This can expose critical site details, including passwords, encryption keys, API credentials, and database locations.

Adversaries can use the data to develop further attacks on the site or to steal data from it, Comparitech said. By leaving the Laravel debug mode enabled on the Trump site, for instance, developers exposed in plain text a mail server configuration that was visible from any browser though the debug interface.

Anyone could have accessed it from a Web browser by going to a special subdomain. "It's a subdomain that the average user might not come across," Bischoff says. "But it was visible on search engines like Shodan that can scan for such vulnerabilities. It was easy for hackers to find."

The issue is not confined to Laravel, and neither is it the software vendor's fault. Developers often leave websites vulnerable by inadvertently failing to disable the tools they use for identifying problems when building it. The key takeaway for organizations is to "disable debug mode before going live," Bischoff says.

Comparitech, working with two independent security researchers, conducted an Internetwide search and found a total of 768 websites with active Laravel sessions. Of them, between 10% and 20% had exposed their debug APIs, making them vulnerable to attack. A similar effort by one of the security researchers last year unearthed 566 websites with the Laravel debug mode enabled.

Bischoff says Comparitech, which scans the Web for misconfigured websites and vulnerable databases, is still in the process of notifying all impacted websites discovered from its latest scan of the issue. Presently, it remains unclear how many might have addressed the problem, he says.

With the exception of the Trump campaign site, most of the vulnerable websites that Comparitech discovered in its latest scan were small businesses and charities.

Related Content:

This free, all-day online conference offers a look at the latest tools, strategies, and best practices for protecting your organization’s most sensitive data. Click for more information and, to register, here.

Jai Vijayan is a seasoned technology reporter with over 20 years of experience in IT trade journalism. He was most recently a Senior Editor at Computerworld, where he covered information security and data privacy issues for the publication. Over the course of his 20-year ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
DevSecOps: The Answer to the Cloud Security Skills Gap
Lamont Orange, Chief Information Security Officer at Netskope,  11/15/2019
Attackers' Costs Increasing as Businesses Focus on Security
Robert Lemos, Contributing Writer,  11/15/2019
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Current Issue
Navigating the Deluge of Security Data
In this Tech Digest, Dark Reading shares the experiences of some top security practitioners as they navigate volumes of security data. We examine some examples of how enterprises can cull this data to find the clues they need.
Flash Poll
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2019-19037
PUBLISHED: 2019-11-21
ext4_empty_dir in fs/ext4/namei.c in the Linux kernel through 5.3.12 allows a NULL pointer dereference because ext4_read_dirblock(inode,0,DIRENT_HTREE) can be zero.
CVE-2019-19036
PUBLISHED: 2019-11-21
btrfs_root_node in fs/btrfs/ctree.c in the Linux kernel through 5.3.12 allows a NULL pointer dereference because rcu_dereference(root->node) can be zero.
CVE-2019-19039
PUBLISHED: 2019-11-21
__btrfs_free_extent in fs/btrfs/extent-tree.c in the Linux kernel through 5.3.12 calls btrfs_print_leaf in a certain ENOENT case, which allows local users to obtain potentially sensitive information about register values via the dmesg program.
CVE-2019-6852
PUBLISHED: 2019-11-20
A CWE-200: Information Exposure vulnerability exists in Modicon Controllers (M340 CPUs, M340 communication modules, Premium CPUs, Premium communication modules, Quantum CPUs, Quantum communication modules - see security notification for specific versions), which could cause the disclosure of FTP har...
CVE-2019-6853
PUBLISHED: 2019-11-20
A CWE-79: Failure to Preserve Web Page Structure vulnerability exists in Andover Continuum (models 9680, 5740 and 5720, bCX4040, bCX9640, 9900, 9940, 9924 and 9702) , which could enable a successful Cross-site Scripting (XSS attack) when using the products web server.