hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-6368) TransferFsImage#receiveFile() should perform validation on fsImageName parameter
Date Sat, 10 May 2014 22:58:14 GMT
Ted Yu created HDFS-6368:
----------------------------

             Summary: TransferFsImage#receiveFile() should perform validation on fsImageName
parameter
                 Key: HDFS-6368
                 URL: https://issues.apache.org/jira/browse/HDFS-6368
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Currently only null check is performed:
{code}
          if (fsImageName == null) {
            throw new IOException("No filename header provided by server");
          }
          newLocalPaths.add(new File(localPath, fsImageName));
{code}
Value of fsImageName, obtained from HttpURLConnection header, may be tainted.
This may allow an attacker to access, modify, or test the existence of critical or sensitive
files.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message