{"id":57896,"date":"2024-07-04T19:30:37","date_gmt":"2024-07-04T16:30:37","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/179360\/SA-20240627-0.txt"},"modified":"2024-07-04T19:30:37","modified_gmt":"2024-07-04T16:30:37","slug":"softmaker-office-freeoffice-local-privilege-escalation","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/softmaker-office-freeoffice-local-privilege-escalation\/","title":{"rendered":"SoftMaker Office \/ FreeOffice Local Privilege Escalation"},"content":{"rendered":"<p>SEC Consult Vulnerability Lab Security Advisory &lt; 20240627-0 &gt;<br \/>=======================================================================<br \/>title: Local Privilege Escalation via MSI installer<br \/>product: SoftMaker Office \/ FreeOffice<br \/>vulnerable version: SoftMaker Office 2024 \/ NX before revision 1214<br \/>FreeOffice 2021 Revision 1068<br \/>FreeOffice 2024 before revision 1215<br \/>fixed version: SoftMaker Office 2024 \/ NX &#8211; revision 1214<br \/>FreeOffice 2024 &#8211; revision 1215<br \/>CVE number: CVE-2023-7270<br \/>impact: high<br \/>homepage: https:\/\/www.softmaker.com\/en\/<br \/>found: 2023-11-27<br \/>by: Michael Baer (Office F\u00fcrth)<br \/>SEC Consult Vulnerability Lab<\/p>\n<p>An integrated part of SEC Consult, an Eviden business<br \/>Europe | Asia<\/p>\n<p>https:\/\/www.sec-consult.com<\/p>\n<p>=======================================================================<\/p>\n<p>Vendor description:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>&#8220;SoftMaker Office makes working with documents, spreadsheets and presentations<br \/>a breeze \u2013 whether you&#8217;re on Windows, Linux, Mac, iOS or Android.&#8221;<\/p>\n<p>Source: https:\/\/www.softmaker.com\/en\/products\/softmaker-office<\/p>\n<p>Business recommendation:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>The vendor provides a patch which should be installed immediately.<\/p>\n<p>SEC Consult highly recommends to perform a thorough security review of the<br \/>product conducted by security professionals to identify and resolve potential<br \/>further security issues.<\/p>\n<p>Vulnerability overview\/description:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>1) Local Privilege Escalation via MSI installer (CVE-2023-7270)<br \/>The SoftMaker Office and FreeOffice MSI installer files were found to produce<br \/>a visible conhost.exe window running as the SYSTEM user when using the repair<br \/>function of msiexec.exe.<\/p>\n<p>This allows a local, low-privileged attacker to use a chain of actions,<br \/>to open a fully functional cmd.exe with the privileges of the SYSTEM user.<\/p>\n<p>Note:<br \/>This attack does not work using a recent version of the Edge Browser or<br \/>Internet Explorer. A different browser, such as Chrome or Firefox, needs to be<br \/>used. Also make sure, that Edge or IE have not been set as default browser<br \/>and that Firefox or Chrome are not running before attempting to exploit it.<br \/>Otherwise, the spawned process would be running with your own permissions and<br \/>the installer will just add a new tab to the browser, instead of spawning a<br \/>new process with SYSTEM.<\/p>\n<p>Proof of concept:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>1) Local Privilege Escalation via MSI installer (CVE-2023-7270)<br \/>For the exploit to work, SoftMaker Office or FreeOffice have to be installed<br \/>via the MSI file. Afterwards, any low-privileged user can start the<br \/>repair of the software by double-clicking the installer and trigger<br \/>the vulnerable actions without a UAC popup. The installer, if deleted from it&#8217;s<br \/>original location, can be found in C:\\Windows\\Installer with a randomized name.<\/p>\n<p>During the repair process, a console application gets called with SYSTEM<br \/>privileges and performs a read action on some files.<\/p>\n<p>SoftMaker Office: Executes 7z.exe, which reads<br \/>C:\\Program Files\\SoftMaker Office 2024\\tb\\7z.exe<\/p>\n<p>FreeOffice: Executes syspin.exe, which reads<br \/>C:\\Windows\\SysWOW64\\OneCoreCommonProxyStub.dll<\/p>\n<p>This can be used by an attacker by simply setting an oplock on the files<br \/>mentioned before.<\/p>\n<p>As soon as it gets read, the process is blocked until the lock is released.<\/p>\n<p>To do that, one can use the &#8216;SetOpLock.exe&#8217; tool from<br \/>&#8220;https:\/\/github.com\/googleprojectzero\/symboliclink-testing-tools&#8221;<br \/>with the following parameters:<\/p>\n<p>while ($true) { SetOpLock.exe &#8220;C:\\Program Files\\SoftMaker Office 2024\\tb\\7z.exe&#8221; x }<br \/>while ($true) { SetOpLock.exe &#8220;C:\\Windows\\SysWOW64\\OneCoreCommonProxyStub.dll&#8221; x }<\/p>\n<p>See figure 1 [soft_lock.png] and figure 2 [lock.png]\n<p>During the repair process, the locked file is accessed multiple times. The lock<br \/>has to be released by pressing ENTER several times before the window opens.<\/p>\n<p>If the window appears, the lock should not be released to keep the<br \/>window open. The window that gets opened when the console program is<br \/>executed doesn&#8217;t close and can then be interacted with.<\/p>\n<p>Note 1: The syspin.exe window is minimized. When the lock is triggered, it<br \/>is advised to check the taskbar whether a window with a blue arrow,<br \/>see figure 7 [taskbar.png], exists.<\/p>\n<p>The attacker can then perform the following actions to spawn a SYSTEM shell:<br \/>&#8211; Right click on the top bar of the window<br \/>&#8211; Click on properties, see figure 3 [soft_openbrowser.png] and figure 4 [openbrowser.png]&#8211; Under options, click on the &#8220;new console features&#8221; link<br \/>&#8211; Open the link with e.g. firefox<br \/>&#8211; In the opened browser window press the key combination CTRL+o<br \/>&#8211; Type cmd.exe in the top bar and press Enter, see figure 5 [soft_cmd.png] and figure 6 [cmd.png]\n<p>Note 2: This does not work using a recent version of the Edge Browser.<\/p>\n<p>Note 3: The program syspin.exe is invoked several times, sometimes without<br \/>elevated privileges. If the final cmd.exe is not elevated, release the lock<br \/>and wait for the next syspin.exe invocation. During our test, the fifth<br \/>window was run with elevated privileges.<\/p>\n<p>Vulnerable \/ tested versions:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>The following versions have been tested by SEC Consult which were the most recent<br \/>versions available at the time of the test:<br \/>* SoftMaker Office 2024 &#8211; 24.0.6034<br \/>* FreeOffice 2021 Revision 1068<\/p>\n<p>According to the vendor, all versions of SoftMaker Office NX\/2024 before revision 1214<br \/>and FreeOffice 2024 before revision 1215 with the MSI installer are affected.<\/p>\n<p>FreeOffice 2021 is unsupported and will not be fixed according to the vendor.<\/p>\n<p>Vendor contact timeline:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>2023-12-02: Contacting vendor through sales@softmaker.de,<br \/>asking for security contact.<br \/>2023-12-07: Contacting vendor through https:\/\/www.softmaker.com\/en\/support\/customer-support<br \/>asking for security contact.<br \/>2024-01-11: Contacting vendor through https:\/\/www.softmaker.com\/en\/support\/customer-support<br \/>asking for security contact.<br \/>2024-01-11: Vendor provides security contact and asks for advisory<br \/>unencrypted<br \/>2024-01-12: Sending advisory draft unencrypted to security contact<br \/>2024-02-17: Asking for status of vulnerability, no response<br \/>2024-03-06: Asking for status of vulnerability, no response<br \/>2024-04-08: Asking for a status update, setting release date to<br \/>17th April.<br \/>2024-04-08: Vendor response, seems not to have received our previous mails.<br \/>Asking for deadline extension as a release it already planned.<br \/>2024-04-09: Sending advisory draft again, extending deadline.<br \/>2024-04-11: Asking whether email was received, confirmed. Sent proposed<br \/>solution.<br \/>2024-04-22: Asking when new release is planned and whether fixes could be<br \/>incorporated.<br \/>2024-04-23: Vendor response, current service pack update not including fixes,<br \/>planned in about 6 weeks.<br \/>2024-05-27: Vendor response, service pack \/ revision 1214 was published which fixes<br \/>the issue for Office 2024 and Office NX. FreeOffice 2024 will<br \/>be fixed in the next release mid June. FreeOffice 2021 is unsupported.<br \/>2024-06-11: Vendor: FreeOffice 2024 will be patched on 18th June, asks for advisory<br \/>release to be postponed a bit.<br \/>2024-06-17: Setting advisory release date for 27th June, reserving CVE.<br \/>2024-06-18: Vendor releases FreeOffice 2024 revision 1215.<br \/>2024-06-27: Release of security advisory.<\/p>\n<p>Solution:<br \/>&#8212;&#8212;&#8212;<br \/>The vendor provides a service pack version 1214 for SoftMaker Office 2024 and<br \/>SofMaker Office NX, which can be downloaded from:<br \/>https:\/\/softmaker.de\/download\/servicepacks<\/p>\n<p>FreeOffice 2024 revision 1215:<br \/>https:\/\/www.freeoffice.com\/de\/download\/servicepacks<\/p>\n<p>FreeOffice 2021 is unsupported and will not be fixed according to the vendor.<\/p>\n<p>Workaround:<br \/>&#8212;&#8212;&#8212;&#8211;<br \/>None<\/p>\n<p>Advisory URL:<br \/>&#8212;&#8212;&#8212;&#8212;-<br \/>https:\/\/sec-consult.com\/vulnerability-lab\/<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>SEC Consult Vulnerability Lab<br \/>An integrated part of SEC Consult, an Eviden business<br \/>Europe | Asia<\/p>\n<p>About SEC Consult Vulnerability Lab<br \/>The SEC Consult Vulnerability Lab is an integrated part of SEC Consult, an<br \/>Eviden business. It ensures the continued knowledge gain of SEC Consult in the<br \/>field of network and application security to stay ahead of the attacker. The<br \/>SEC Consult Vulnerability Lab supports high-quality penetration testing and<br \/>the evaluation of new offensive and defensive technologies for our customers.<br \/>Hence our customers obtain the most current information about vulnerabilities<br \/>and valid recommendation about the risk profile of new technologies.<\/p>\n<p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br \/>Interested to work with the experts of SEC Consult?<br \/>Send us your application https:\/\/sec-consult.com\/career\/<\/p>\n<p>Interested in improving your cyber security with the experts of SEC Consult?<br \/>Contact our local offices https:\/\/sec-consult.com\/contact\/<br \/>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/p>\n<p>Mail: security-research at sec-consult dot com<br \/>Web: https:\/\/www.sec-consult.com<br \/>Blog: https:\/\/blog.sec-consult.com<br \/>Twitter: https:\/\/twitter.com\/sec_consult<\/p>\n<p>EOF Michael Baer \/ 2024<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SEC Consult Vulnerability Lab Security Advisory &lt; 20240627-0 &gt;=======================================================================title: Local Privilege Escalation via MSI installerproduct: SoftMaker Office \/ FreeOfficevulnerable version: SoftMaker Office 2024 \/ NX before revision 1214FreeOffice 2021 Revision 1068FreeOffice 2024 before revision 1215fixed version: SoftMaker Office 2024 \/ NX &#8211; revision 1214FreeOffice 2024 &#8211; revision 1215CVE number: CVE-2023-7270impact: highhomepage: https:\/\/www.softmaker.com\/en\/found: 2023-11-27by: Michael Baer &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-57896","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/57896","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=57896"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/57896\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=57896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=57896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=57896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}