Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Webdav gives root access when folder is deleted

Discussion in 'Security' started by ev2945, Apr 10, 2019.

  1. ev2945

    ev2945 Registered

    Joined:
    Apr 10, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    wellington
    cPanel Access Level:
    Root Administrator
    Hi,

    I gave someone access to a specific folder on the server using WebDav. As it is about some kind of CMS, the user can delete this folder (which should stay possible). I would expect that if the folder is deleted, the user doesn't have any access anymore. But instead he gets access to the root folder...!

    Any way to change this?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    443
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @ev2945


    Can you provide the exact replication steps on how to reproduce this issue? Here's what I attempted thus far and was unable to replicate:

    1. Create a new WebDisk account from cPanel>>Files>>WebDisk -> Create an Additional Web Disk Account
    2. When creating the account assigned it access to public_html/webdavtest
    3. Added a test.txt file in the public_html/webdavtest folder to ensure i can view/edit contents
    4. Logged in at https://domain.tld:2078
    5. Logged out and removed the webdavtest folder
    6. Attempted to log in again and was met with a failure
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ev2945

    ev2945 Registered

    Joined:
    Apr 10, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    wellington
    cPanel Access Level:
    Root Administrator
    Hi Lauren,

    Thanks for having a look at it!

    Here are the steps I followed:

    1. Cpanel >> User Manager --> Edit User
    2. Services - enable Web Disk
    3. Set home directory, read-write

    webdisk1.png

    4. folder accessible, using cyberduck

    webdisk2_cyberduck.png

    5. user deletes course via web application (and with that, the subfolder within that was made accessible via web disk)
    6. user logs in on webdisk via cyberduck - sees root folder instead (with read & write access)

    webdisk3_cyberduck.jpg
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    443
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @ev2945


    Thank you so much for the great replication steps, I'm still unable to replicate the issue you're noting can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice