Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27418

The package component allows non image files renamed with image extensions

    Details

      Description

      This issue was discovering while testing another issue, under the 5.4.11 certification.

      The tc-3228 test case, has the following step

      5. Now try to upload a file that is an actual image, but which is renamed to an unavailable extension, such as a jpg file named "my_disguised_image.php".

      I tried a variation of this step and renamed a php file to have jpg as extension.

      eZP accepts it.

      Steps to reproduce
      • Create an invalid image

         ls / > invalidImage.jpg

      • Create a style package
      • When the package manager asks to select an image, upload the {{ invalidImage.jpg}} file.
      • Confirms it will accept that file as an image.

        Activity

        Hide
        Gunnstein Lye added a comment - - edited

        Description confirmed, though not a security vulnerability, and low priority. Checking whether a jpg file is a valid image can give false positives, and a non-image is easily detected by the user: The image won't be shown.

        Show
        Gunnstein Lye added a comment - - edited Description confirmed, though not a security vulnerability, and low priority. Checking whether a jpg file is a valid image can give false positives, and a non-image is easily detected by the user: The image won't be shown.

          People

          • Assignee:
            Unassigned
            Reporter:
            Eduardo Fernandes (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 0 minutes
              0m
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 45 minutes
              45m