3 ms·
For that second one: That sounds like a vulnerability in virus scanners even without junctions, although junctions make it enormously easier to exploit: * Crea
by quietbritishjim 8y ago
For that second one: That sounds like a vulnerability in virus scanners even without junctions, although junctions make it enormously easier to exploit:
* Create a directory in a location you have permission to, but you think a higher-privilege user will create it later.
* Create and quarantine a file in it.
* Delete the directory.
* When the higher privilege user creates the directory, you can restore your file into it.
The fix is for virus scanners to operate at user permission level when restoring the file.
- zaat 8y ago> The fix is for virus scanners to operate at user permission level when restoring the file. "user permission" as such doesn't exist, it is always a specific user. Which user should the restore function run as? There is no easy solution to this, as the restore must be able to restore the file to locations like the windows directory as well as directories that only specific user have access to, like a home folder on a file server.
- quietbritishjim 8y ago> Which user should the restore function run as? The one that clicks the "restore" button. > the restore must be able to restore the file to locations like the windows directory Then the user will need to get the help of someone with an admin account i.e. their IT department (they probably have an admin account themself if it's a home computer). If this happened regularly it would be a problem, but how often do virus scanners false positive on system files and users quarantine them? I would bet not very often.
- giancarlostoro 8y agoProblem might be that whoever is clicking restore is likely running that software as an admin thereby the user clicking restore is the admin user. I'm not 100% sure though, but I think that's the behavior. Edit: Found this[0] to clarify what happens when you run software as UAC. I can imagine an A/V program needs admin privileges to run altogether. [0]: https://msdn.microsoft.com/en-us/library/bb625963.aspx https://msdn.microsoft.com/en-us/library/bb625963.aspx
- zaat 8y agoThat will not solve the problem of writing to places an administrator can't write to: 1. Places where only SYSTEM have write access to (e.g. system32) 2. Places where only a specific user have access to (private folder in a file server share). An administrator won't be able to restore user's file without taking ownership on the folder.
- AnIdiotOnTheNet 8y agoOk, let me ask: why? What is the absolute worst case scenario here? That a user in your organization gains admin privileges on their workstation? Nearly every org I've ever worked at already gave their users admin privileges because trying to do their job without it caused far more friction than any imaginary gains from locking them down. So they might screw up their OS, big deal, that's what imaging is for. It's not like ransomware needs admin privileges to ruin your day anyway. In fact, local admin does absolutely nothing for it since it will still only have permissions to the same network resources that the user does, and of course their local documents. There are some kiosk-style single-application appliance use cases out there where it makes sense to lock things down just to make sure the user isn't browsing reddit all day or something, but by their nature those are at low risk of being infected and you care even less about them than a workstation if they are. I honestly can't think of a realistic scenario in which this isn't a complete non-issue.
- grkvlt 8y ago> Nearly every org I've ever worked at already gave their users admin privileges I assume you've never worked at a large retail or investment bank, or similar organisation, then? Admin privileges are never granted to ordinary users; to install new programs or perform administrative tasks requires a call to the helpdesk, and there is usually some form of remote management service running to handle updates and so on.
- AnIdiotOnTheNet 8y agoOk, but why? What does that actually accomplish?
- KAMSPioneer 8y agoJust a few ideas off the top of my head: An attacker that gains SYSTEM permissions on a machine can dump the SAM database, which may contain credentials for domain or enterprise administrators. This is very bad. A user with administrator permissions can modify their DNS settings to avoid DNS-level filtering to block known malware domains. This can be bad. A malicious or ignorant user can disable or remove antivirus protection. This can be bad. A user can accidentally make a computer nonfunctional by, for example, deleting system files, perhaps because it was suggested (sarcastically) on a help forum ("LOL delete system32"). This is bad. I'm far from a security expert, but from a sysadmin perspective, every user having local admin privs is an absolute nightmare.