Exploiting Application & File Vulnerabilities
How unencrypted files, everyday users with admin rights, and loose file permissions let adversaries steal, change, or destroy data.
1Data is the target
Stealing, changing, or destroying data is often an adversary's end goal. Data lives in files on devices and servers, and applications are the programs that read and change it. Three weaknesses make that data far easier to reach than it should be.
2Unencrypted files
An adversary can read any unencrypted file if they have access to the device or drive storing it. A login password protects the operating system, not the disk: if a laptop is stolen, someone can remove its drive, connect it to another computer, and open every unencrypted file. The same goes for lost USB drives and unprotected backups.
3Admin rights where they don't belong
Computers have two main kinds of accounts:
| Account type | What it can do |
|---|---|
| Standard user | Run programs and work with their own files; cannot change system settings or other users' files |
| Administrative user | Control system settings; install software; typically access any file or application on the system |
If regular users are given administrative privileges and an adversary compromises one of their accounts (through phishing, say), the adversary gets elevated privileges on the system. Instead of reaching one person's files, they can install malware, turn off security tools, and read everything. This is why the safer practice is to give everyday accounts standard rights and use a separate admin account only when needed.
4Weak access controls
Access controls are the settings that decide who can view, edit, or delete each file and folder. When they are weakly configured, many users can view, and sometimes edit, files they have no reason to touch. Adversaries take advantage of this: compromise any one of those accounts, and they can steal or destroy the files, or disrupt an application that depends on them.
Folder: \\fileserver\Finance\Payroll Everyone ............... Read, Write Finance-Staff .......... Read, Write Payroll-Managers ....... Full control
Here, Everyone can read and write the payroll folder. Any compromised account in the organization, even a student intern's, could copy or change salary files.
Encrypt data so a stolen device reveals nothing, keep everyday accounts at standard rights so one stolen login stays small, and give each file only the access people need.
5Worked examples
The stolen laptop
A manager's laptop with a strong login password is stolen from a car. Its drive is not encrypted and holds employee records. Can the thief read them?
- 1The login password only protects the operating system's sign-in screen.
- 2The thief can remove the drive and connect it to another computer, or boot another operating system.
- 3Unencrypted files can then be read directly.
The phished admin
At a small company, every employee's account has administrator rights “to avoid IT tickets.” A receptionist's account is phished. What can the attacker do?
- 1The receptionist's account has administrative privileges.
- 2With it, the attacker can install malware, disable security tools, change system settings, and access any file on the computer.
- 3With a standard account, the attacker would have been limited to the receptionist's own files.
Everyone can write
Using the payroll permissions above, an attacker phishes a warehouse worker's account. What can they do to the payroll files?
- 1The Everyone group has Read and Write on the payroll folder.
- 2The warehouse worker is part of Everyone, so the compromised account can open and change payroll files.
- 3The attacker could copy salaries (confidentiality), change bank details (integrity), or delete files (availability).
Name the weakness
Name the weakness in each: (a) a backup drive with customer data sits unencrypted in an unlocked drawer; (b) a teacher's everyday account can install any software; (c) all students can edit the shared grades spreadsheet.
- 1(a) Unencrypted files: anyone who takes the drive can read it.
- 2(b) Administrative privileges for an everyday user.
- 3(c) Weak access controls: students should have no edit access to grades.
6Common mistakes
The disk can be read from another computer. Only encryption protects files when the device is in someone else's hands.
It turns every phished account into a system-wide compromise.
Broad permissions mean any compromised account can reach the data. Grant access by role, as narrowly as possible.
“Because the payroll folder grants Read and Write to Everyone, an adversary who compromises any employee account could copy or alter salary files. Restricting the folder to the payroll group would limit the damage of a single compromised account.”
Name the weakness, how an adversary uses it, and which data is put at risk.