Skip to content
Access control Advisory Advanced CVE-2016-7222

Task Scheduler Elevation of Privilege Vulnerability (CVE-2016-7222)

Task Scheduler mishandled UNC paths when a user created a scheduled task, allowing a locally authenticated attacker to run arbitrary code with elevated system privileges. The update corrects how Task Scheduler handles specially crafted UNC paths.

Shanti Lindström Follow

Originally disclosed on Microsoft

High 6.5 View original

Description

An elevation of privilege vulnerability exists in Task Scheduler when a user creates a task that uses UNC paths. An attacker who successfully exploited this vulnerability could run arbitrary code with elevated system privileges. To exploit the vulnerability, a locally authenticated attacker could use Windows Task Scheduler to schedule a new task with a specially crafted UNC path. This security update addresses the vulnerability by correcting how Task Scheduler handles specially crafted UNC paths.

Windows Task Scheduler

Windows Task Scheduler

The original report as published on the Microsoft Security Response Center, by Shanti Lindström , Individual. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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

Root cause

Likely, Task Scheduler did not properly validate or handle specially crafted UNC paths when creating a task, leading to privilege elevation.

Impact

A locally authenticated attacker could run arbitrary code with elevated system privileges.

What the attacker needed

Local authenticated access to Windows

How it was found

  1. Log on locally to the Windows system.
  2. Open Windows Task Scheduler.
  3. Schedule a new task that uses a specially crafted UNC path.

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.

Task Scheduler is a Windows tool that runs programs automatically at set times. A UNC path is a network address like \\server\share. The bug meant that a specially crafted network path in a scheduled task could let a logged-in user run their own code with higher, system-level rights.

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.

More by Shanti Lindström

View all

1 more disclosed report, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.