Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61E47184E2 for ; Wed, 18 Nov 2015 22:40:12 +0000 (UTC) Received: (qmail 976 invoked by uid 500); 18 Nov 2015 22:40:12 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 864 invoked by uid 500); 18 Nov 2015 22:40:12 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 672 invoked by uid 99); 18 Nov 2015 22:40:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2015 22:40:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 003692C1F5E for ; Wed, 18 Nov 2015 22:40:12 +0000 (UTC) Date: Wed, 18 Nov 2015 22:40:11 +0000 (UTC) From: "Robert Kanter (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-12584) Disable directory browsing in HttpServer2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-12584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Kanter updated HADOOP-12584: ----------------------------------- Attachment: HADOOP-12584.001..patch Simple fix sets {{org.eclipse.jetty.servlet.Default.dirAllowed}} to {{false}}. I verified that with the patch you can't browse the files anymore. > Disable directory browsing in HttpServer2 > ----------------------------------------- > > Key: HADOOP-12584 > URL: https://issues.apache.org/jira/browse/HADOOP-12584 > Project: Hadoop Common > Issue Type: Bug > Components: security > Affects Versions: 2.8.0 > Reporter: Robert Kanter > Assignee: Robert Kanter > Attachments: HADOOP-12584.001.patch > > > We found a minor security issue with the Yarn Web UIs (or anything using {{HttpServer2}}. Currently, you can list the contents of the {{/static}} directory for the RM, NM, and JHS. This isn't a huge deal, but there are some ways to abuse this to get access to files on the host, though it would be pretty difficult. It's also good practice to disable directory listing on web apps. > Here are the URLs: > - http://HOST:8088/static/ > - http://HOST:19888/static/ > - http://HOST:8042/static/ -- This message was sent by Atlassian JIRA (v6.3.4#6332)