
PoC for CVE-2009-0229 "Print Spooler Read File Vulnerability" LPE AFR (related to CVE-2020-1048)
PoC for CVE-2009-0229 "Print Spooler Read File Vulnerability" LPE AFR (related to CVE-2020-1048)
Note1: Unverified - unsure 100% is the same bug that triggers the CVE-2009-0229
Note2: Unverified - could work on newer systems like Windows Server 2012 and Windows Server 2016
Note3: All Windows releases come with 4 default "Separator Page" files
Note4: This trick is older than Windows 95 =), pretty sure it was used by pros for "stealth info recovery" ;)
Local attacker configures any printer s/he has access to so that it uses "Separator Page" file supplied by the attacker (attack.sep), now attacker has "weaponized printer"
Local attacker crafts the "Separator Page" file (attack.sep) to use the "@F"/"$F" operator, as follows, where the file to be exfiltrated is assumed to be "C:\secret.txt" (notice the \ and the direct concatenation to @F operator)
@
@FC:\\secret.txt
Local attacker needs to print something using the "weaponized" printer above
Attack improvement: one "Separator Page" file can have a brute-force list of most common filepaths/filenames
There is also @L operator :)
Found back in 2010 when I was doing "Hacking Printers for Fun and Profit" research/talks
I am pretty sure the Printing and Faxing sub-systems are bug-trapped with vulns back since Windows 3.1 (for historical reasons)
"Microsoft Security Bulletin MS09-022 - Critical"
CVE-2009-0229
CVE-2020-1048