This was tried with ordinary Windows computer and with virtualboxes, 32- and 64-bits.
Start TC as a user without elevated rights (not as Administrator), though the user was a member of Administrators group.
In the left pane open an archive with a directory structure.
In the right pane - the root of the system drive.
It would be possible to create a directory in the right pane using F7 key or md command.
It would be possible to unpack (copy) a file from the left pane to the right.
Now select a directory in the acrhive and try to unpack (copy) from left pane to the right.
There would be a messagebox with OK and As Administrator buttons.
Strangely, OK button does nothing; and administrator rights were necessary.
Processmonitor shows a suspicious line with buffer overflow when TC checked access rights.
TC 9.0a: Unpacking directory to the root of a system drive
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sorry, currently it's not possible to unpack just directories to the root of the drive. This location is special - it only allows to create folders, not files. TC cannot currently distinguish between the two, and I have no idea how this could be done.
Just create the folder first with F7, then unpack files to it.
Just create the folder first with F7, then unpack files to it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Corrections to my first post.
1. TC would unpack a file to the root in the same way as a directory - it would request additional permissions.
2. Buffer overflow is not an issue. Just a side effect when the program tries to get the correct size of returned data.
Additional information.
Far and 7-zip file manager would silently extract a directory even for an ordinary user.
Far would always request permissions to unpack a file.
7-zip file manager would silently extract a file for a user with administrative rights (no elevation requested) but would fail otherwise.
1. TC would unpack a file to the root in the same way as a directory - it would request additional permissions.
2. Buffer overflow is not an issue. Just a side effect when the program tries to get the correct size of returned data.
Additional information.
Far and 7-zip file manager would silently extract a directory even for an ordinary user.
Far would always request permissions to unpack a file.
7-zip file manager would silently extract a file for a user with administrative rights (no elevation requested) but would fail otherwise.