Adobe Acrobat Reader DC Net.Discovery.queryServices Remote Code Execution Vulnerability
A use-after-free vulnerability in Adobe Acrobat Reader DC's handling of the Net.Discovery.queryServices JavaScript method can be triggered by a malicious PDF, leading to a crash and potentially arbitrary code execution. An attacker could exploit this by tricking a victim into opening a crafted PDF or visiting a malicious web page.
Originally disclosed on Cisco Talos
A specific Javascript script embedded in a PDF file can lead to a pointer to previously freed object to be reused when opening a PDF document in Adobe Acrobat Reader DC 2018.009.20044. With careful memory manipulation, this can potentially lead to sensitive memory disclosure or arbitrary code execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 the Net.Discovery.queryServices method frees an object but later dereferences a stale pointer to it when processing an invalid service name.
Impact
With careful memory manipulation, this could potentially lead to sensitive memory disclosure or arbitrary code execution, but the exploit requires the PDF to be in a trusted location.
What the attacker needed
Victim opens malicious PDF; PDF in trusted locations list
How it was found
- Create a PDF document with embedded JavaScript that calls Net.Discovery.queryServices with an empty string as the first argument.
- Add the PDF file to the trusted locations list in Acrobat Reader's Security(Enhanced) preferences.
- Open the PDF in Adobe Acrobat Reader DC 2018.009.20044 to trigger the use-after-free and crash.
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 use-after-free is a type of bug where a program keeps using memory after it has been freed, which can let an attacker control what happens next. In this case, a malicious PDF with special JavaScript can cause the PDF reader to crash and possibly run the attacker's code. The victim just needs to open the file or visit a web page.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.