<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="chinese">
	<id>https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=Check_Point_Identity_Agent_Arbitrary_%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E5%AF%AB%E5%85%A5%E6%BC%8F%E6%B4%9E</id>
	<title>Check Point Identity Agent Arbitrary 任意文件寫入漏洞 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=Check_Point_Identity_Agent_Arbitrary_%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E5%AF%AB%E5%85%A5%E6%BC%8F%E6%B4%9E"/>
	<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=Check_Point_Identity_Agent_Arbitrary_%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E5%AF%AB%E5%85%A5%E6%BC%8F%E6%B4%9E&amp;action=history"/>
	<updated>2026-04-20T12:56:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://pwnwiki.com/index.php?title=Check_Point_Identity_Agent_Arbitrary_%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E5%AF%AB%E5%85%A5%E6%BC%8F%E6%B4%9E&amp;diff=1491&amp;oldid=prev</id>
		<title>Pwnwiki: Created page with &quot;==EXP== &lt;pre&gt; Check Point Identity Agent Arbitrary File Write Vulnerability   Description   ===========   The Check Point Identity Agent allows low privileged users to write f...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=Check_Point_Identity_Agent_Arbitrary_%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E5%AF%AB%E5%85%A5%E6%BC%8F%E6%B4%9E&amp;diff=1491&amp;oldid=prev"/>
		<updated>2021-04-10T13:28:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==EXP== &amp;lt;pre&amp;gt; Check Point Identity Agent Arbitrary File Write Vulnerability   Description   ===========   The Check Point Identity Agent allows low privileged users to write f...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==EXP==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Check Point Identity Agent Arbitrary File Write Vulnerability&lt;br /&gt;
 &lt;br /&gt;
Description&lt;br /&gt;
 &lt;br /&gt;
===========&lt;br /&gt;
 &lt;br /&gt;
The Check Point Identity Agent allows low privileged users to write files to protected locations of the file system.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Details&lt;br /&gt;
 &lt;br /&gt;
=======&lt;br /&gt;
 &lt;br /&gt;
Advisory ID: usd-2021-0005&lt;br /&gt;
 &lt;br /&gt;
Product: Check Point Identity Agent&lt;br /&gt;
 &lt;br /&gt;
Affected Version: &amp;lt; R81.018.0000&lt;br /&gt;
 &lt;br /&gt;
Vulnerability Type: Symlink Vulnerability&lt;br /&gt;
 &lt;br /&gt;
Security Risk: High&lt;br /&gt;
 &lt;br /&gt;
Vendor URL: https://www.checkpoint.com&lt;br /&gt;
 &lt;br /&gt;
Vendor Status: Fixed&lt;br /&gt;
 &lt;br /&gt;
Advisory URL: https://herolab.usd.de/security-advisories/usd-2021-0005/&lt;br /&gt;
 &lt;br /&gt;
First Published: 2021-03-31&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Introduction&lt;br /&gt;
 &lt;br /&gt;
============&lt;br /&gt;
 &lt;br /&gt;
The Check Point Identity Agent allows low privileged users to write files to protected locations of the file system.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Privileged file write vulnerabilities allow low privileged users to create or overwrite files in arbitrary locations of the file system.&lt;br /&gt;
 &lt;br /&gt;
The impact of these attacks largely depends on the content that is written to the files. If the content is user controlled, privilege escalations are usually possible. Otherwise, the vulnerability can be used to perform Denial of Service attacks.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Proof of Concept&lt;br /&gt;
 &lt;br /&gt;
================&lt;br /&gt;
 &lt;br /&gt;
The Check Point Identity Agent allows users to collect information for the technical support. This information is collected to a Windows Cabinet file and stored within a user defined location. During the write operation that creates the Cabinet file, the service uses the permissions of the SYSTEM account, which allows low privileged users to create the Cabinet file in arbitrary locations of the file system. By using a symbolic link, the file name is also fully user controlled and the write operation can also be redirected to already existing files.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
In the following screenshot, a low privileged user account sets the log folder of the Check Point Identity Agent to a user controlled path on the file system. This is possible within the tray menu of the agent.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Screenshot URL: https://herolab.usd.de/wp-content/uploads/sites/4/01-set-log-folder.png&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
The Cabinet file that we will create soon has a naming scheme of CP_Identity_Agent_Logs_25-01-2021_17.07.11.cab. As the name contains the current time and the export takes a while, an reliable attack requires multiple symbolic links. For our demonstration, we use the following simple script to create these:&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
```&lt;br /&gt;
 &lt;br /&gt;
C:\Users\tony\Desktop&amp;gt; type link.bat&lt;br /&gt;
 &lt;br /&gt;
C:\ProgramData\CreateSymlink.exe -p C:\Linker\CP_Identity_Agent_Logs_31-01-2021_12.13.00.cab C:\Windows\win.ini&lt;br /&gt;
 &lt;br /&gt;
C:\ProgramData\CreateSymlink.exe -p C:\Linker\CP_Identity_Agent_Logs_31-01-2021_12.13.01.cab C:\Windows\win.ini&lt;br /&gt;
 &lt;br /&gt;
C:\ProgramData\CreateSymlink.exe -p C:\Linker\CP_Identity_Agent_Logs_31-01-2021_12.13.02.cab C:\Windows\win.ini&lt;br /&gt;
 &lt;br /&gt;
C:\ProgramData\CreateSymlink.exe -p C:\Linker\CP_Identity_Agent_Logs_31-01-2021_12.13.03.cab C:\Windows\win.ini&lt;br /&gt;
 &lt;br /&gt;
C:\ProgramData\CreateSymlink.exe -p C:\Linker\CP_Identity_Agent_Logs_31-01-2021_12.13.04.cab C:\Windows\win.ini&lt;br /&gt;
 &lt;br /&gt;
[...]&lt;br /&gt;
 &lt;br /&gt;
```&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Within the script, we make obviously use of the symboliclink-testing-tools (https://github.com/googleprojectzero/symboliclink-testing-tools) by James Forshaw (https://twitter.com/tiraniddo). After invoking the script, all possible file system locations for the to be generated Cabinet file point now to C:\Windows\win.ini, which is not writable for low privileged user accounts. Now we can request technical support information within the agents tray menu:&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
Screenshot URL: https://herolab.usd.de/wp-content/uploads/sites/4/02-request-technical-support-info.png&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
When the export finished, the C:\Windows\win.ini file should be overwritten with the contents of the Cabinet file. The following listing shows the original and the new content of the file:&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
```&lt;br /&gt;
 &lt;br /&gt;
C:\&amp;gt; type Windows\win.ini&lt;br /&gt;
 &lt;br /&gt;
; for 16-bit app support&lt;br /&gt;
 &lt;br /&gt;
[fonts]&lt;br /&gt;
 &lt;br /&gt;
[extensions]&lt;br /&gt;
 &lt;br /&gt;
[mci extensions]&lt;br /&gt;
 &lt;br /&gt;
[files]&lt;br /&gt;
 &lt;br /&gt;
[Mail]&lt;br /&gt;
 &lt;br /&gt;
MAPI=1&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
C:\&amp;gt; type C:\Windows\win.ini&lt;br /&gt;
 &lt;br /&gt;
MSCF [...]&lt;br /&gt;
 &lt;br /&gt;
```&lt;br /&gt;
 &lt;br /&gt;
Fix&lt;br /&gt;
 &lt;br /&gt;
=======&lt;br /&gt;
 &lt;br /&gt;
Whenever high privileged services write data into user controlled parts of the file system, they should make sure to impersonate the corresponding user during the operation. Additionally, protection mechanisms can be implemented to avoid following symlinks during write operations.&lt;br /&gt;
 &lt;br /&gt;
#  0day.today [2021-04-10]  #&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pwnwiki</name></author>
	</entry>
</feed>