<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Benjamin Burkhardt on Medium]]></title>
        <description><![CDATA[Stories by Benjamin Burkhardt on Medium]]></description>
        <link>https://medium.com/@benjaminburkhardt?source=rss-f0c10a715e5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*F0AS1GXW7jOUVMIv8UjU2w.jpeg</url>
            <title>Stories by Benjamin Burkhardt on Medium</title>
            <link>https://medium.com/@benjaminburkhardt?source=rss-f0c10a715e5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 22:14:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@benjaminburkhardt/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Exploiting CVE-2020–8597]]></title>
            <link>https://medium.com/apple-developer-academy-federico-ii/exploiting-cve-2020-8597-119c645c0699?source=rss-f0c10a715e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/119c645c0699</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[openwrt]]></category>
            <category><![CDATA[cve]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Benjamin Burkhardt]]></dc:creator>
            <pubDate>Tue, 07 Apr 2020 07:44:58 GMT</pubDate>
            <atom:updated>2020-04-07T09:02:52.175Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jH6vGPB6k9Q9TwET0hMgmg.png" /></figure><p>In our hunt for a security vulnerability to research for our project, we stumbled across the nonprofit OSWAP Foundation working to improve the security of software and eventually came across IoTGoat and WebGoat. OWASP earlier released <a href="https://owasp.org/www-project-webgoat/">WebGoat</a> which is an insecure Web Application for educational purposes which now already in its 8th version.</p><blockquote><a href="https://github.com/OWASP/IoTGoat">The IoTGoat Project</a> is a deliberately insecure firmware based on <a href="https://openwrt.org/">OpenWrt</a> and maintained by <a href="https://owasp.org/">OWASP</a> to educate software developers and security professionals with testing commonly found vulnerabilities in IoT devices.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GEKIwH6lAiI3ayB2J-tPjw.png" /></figure><p>IoTGoat is still work in progress and OWASP encourages everyone to build and submit new challenges for the environement. The first 10 challenges for the most important vulnerabilities are expected to be released soon.</p><p>This inspired us to look into OpenWRT vulnerabilities after which we stumbled upon <a href="https://nvd.nist.gov/vuln/detail/CVE-2020-8597">CVE-2020–8597</a>. A vulnerability found in <a href="https://github.com/paulusmack/ppp">a specific implementation</a> of the Point-to-Point Protocol which is preinstalled on OpenWRT. That package is used by a lot of routers and comes pre-installed on a bunch of Linux distributions.</p><p><strong><em>So let’s jump right into it!</em></strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FLumJYWwnr6fSg%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fice-goat-LumJYWwnr6fSg&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FLumJYWwnr6fSg%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="290" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e4c558fd53aaf0e07b3bde49fc83b27/href">https://medium.com/media/1e4c558fd53aaf0e07b3bde49fc83b27/href</a></iframe><h3>The Point-to-Point Protocol (PPP)</h3><p>PPP goes back to the late 1980s, while at this time SLIP (Serial Line Internet Protocol) basically was the standard for serial IP implementations, and network interface cards (NIC), as we know them today, did not exist yet.</p><p>For connecting computers to real networks serial connections were used to connect computers point-to-point. Such a serial connection does have a baud rate of 115200 which equals to 0.1152 Mbps and was mostly used to connect the workstation to a gateway/modem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*FBBYaKxERP4BPeDtAM5fLg.png" /></figure><p>The layer two protocol PPP supplements SLIP and is still in use today for connection establishment between your (ISDN, DSL, ADSL) modem and the internet service provider (ISP) or in UMTS/3G networks. Even cable and fiber connections are using PPP with PPPoE (over ethernet) to establish a connection.</p><p>Because of that, this as outdated seeming legacy protocol is still ubiquitous in today’s systems by <a href="https://github.com/paulusmack/ppp">being preinstalled</a> on almost any Linux distribution.</p><h3>Explaining CVE-2020–8597</h3><p>The Extensible Authentication Protocol (<strong>EAP</strong>) is an authentication framework which is part of PPP to negotiate authentication methods between peers. Lets imagine the following scenario:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z7uNguCI9nYV6z_4hmRShg.png" /></figure><p>The attacker Alice (Router A) wants to attack the pppd (daemon) on Bob’s system (Router B). Therefore Alice starts the communication with Bob’s pppd client by sending a configuration request to Bob.</p><p>Now Bob replies with the configuration and then (in step 5) requests the EAP Identity from Alice.</p><p>After that Alice replies with her response identity (step 6) and sends an EAP MD5-Challenge containing her identity name again. This EAP should not be successful for exploiting the CVE because an unsuccessful EAP Challenge makes the server log:</p><pre>rcvd [EAP Response id=0x8a Identity &lt;Name &quot;Alice&quot;&gt;]<br>EAP: unauthenticated peer name &quot;Alice&quot;</pre><p><strong><em>So what?</em></strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FxT5LMEcHRXKXpIHCCI%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fseason-16-the-simpsons-16x15-xT5LMEcHRXKXpIHCCI&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2FxT5LMEcHRXKXpIHCCI%2Fgiphy.gif%3Fcid%3D790b7611c0b98623845e225e75bb30907984d4dca9fab076%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="328" frameborder="0" scrolling="no"><a href="https://medium.com/media/ce758753f7859c7c177e030976d9c54d/href">https://medium.com/media/ce758753f7859c7c177e030976d9c54d/href</a></iframe><p>The next time Alice sends an extremely long identity name within the EAP-Challenge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lXubDIswCNB4e7NO-llSng.png" /><figcaption>IoTGoat ifconfig, highlighting the MAC address of eth0 to address the challenge packet</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QoqQEqa6ZXpR7IdLHsqCiA.png" /><figcaption>EAP MD5-Challenge packet</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pNbtekV7yboED-PERQLvnw.png" /><figcaption>Starting the pppd in IoTGoat</figcaption></figure><p>Which leads to to following log entry:</p><pre>rcvd [EAP Response id=0x8a Identity &lt;Name &quot;AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&quot;&gt;]<br>EAP: unauthenticated peer name &quot;AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&quot;</pre><p>An identity name exceeding the length of 255-bit exploits <a href="https://github.com/paulusmack/ppp/commit/8d7970b8f3db727fe798b65f3377fe6787575426">the vulnerability in pppd</a> and kills the daemon:</p><pre>*** buffer overflow detected ***: pppd terminated<br>======= Backtrace: =========<br>/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fea131337e5]<br>/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7fea131d515c]<br>/lib/x86_64-linux-gnu/libc.so.6(+0x117160)[0x7fea131d3160]<br>pppd[0x42a858]<br>pppd(main+0x95f)[0x40981f]<br>/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fea130dc830]<br>pppd(_start+0x29)[0x409db9]<br>======= Memory map: ========<br><a href="https://github.com/marcinguy/CVE-2020-8597">[full log can be found here]</a></pre><p>This immediately results in a Denial of Service (DoS).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FAgrfqPt5AyiTm%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fmeme-update-success-AgrfqPt5AyiTm&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FAgrfqPt5AyiTm%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="257" frameborder="0" scrolling="no"><a href="https://medium.com/media/cfeffd70138bcb656aa3ada5ac64a0a5/href">https://medium.com/media/cfeffd70138bcb656aa3ada5ac64a0a5/href</a></iframe><p>The pppd process running on router B is terminated. Router B used pppd for setting up new connections so as a result, the router won’t be able to set up new connections and won’t work anymore until a reboot or restart of pppd. Since routers are usually not rebooted frequently, the DoS can last a while.</p><p>Additionally, since this is a buffer overflow it may also be used for arbitrary code execution but we were not able to reproduce this in OpenWRT.</p><h3>Conclusion</h3><p>This vulnerability has been <a href="https://github.com/paulusmack/ppp/commit/8d7970b8f3db727fe798b65f3377fe6787575426">patched</a> by the maintainer of ppp on February 3rd. Because it affects the pppd it is mostly of importance to ISP’s and router manufacturers. Even though most Linux distributions come with the ppp package preinstalled it is not in use by default.</p><p>Written by <a href="https://www.linkedin.com/in/benjamin-burkhardt/"><strong>Benjamin Burkhardt</strong></a> <em>&amp;</em> <a href="https://www.linkedin.com/in/job-paardekooper/"><strong>Job Paardekooper</strong></a></p><p><strong>References</strong></p><ul><li><a href="https://github.com/paulusmack/ppp">paulusmack/ppp</a></li><li><a href="https://de.tenable.com/blog/cve-2020-8597-buffer-overflow-vulnerability-in-point-to-point-protocol-daemon-pppd">CVE-2020-8597: Buffer Overflow Vulnerability in Point-to-Point Protocol Daemon (pppd)</a></li><li><a href="https://github.com/benjaminburkhardt/CVE-2020-8597">benjaminburkhardt/CVE-2020-8597</a></li><li><a href="https://github.com/marcinguy/CVE-2020-8597">marcinguy/CVE-2020-8597</a></li><li><a href="https://github.com/WinMin/CVE-2020-8597">WinMin/CVE-2020-8597</a></li><li><a href="https://www.virtualbox.org/wiki/PPP_Tunnel">PPP_Tunnel - Oracle VM VirtualBox</a></li><li><a href="https://openwrt.org/advisory/2020-02-21-1">Security Advisory 2020-02-21-1 - ppp buffer overflow vulnerability (CVE-2020-8597)</a></li></ul><p><a href="https://act-on.ioactive.com/acton/attachment/34793/f-41f641c7-354e-4329-9205-c7ae53c09dc9/1/-/-/-/-/CVE-2020-8597.pdf">IOActive Security Advisory</a></p><p><a href="https://www.alliedtelesis.com/sites/default/files/ppp_feature_config_guide_rev_c.pdf">Point-to-Point Protocol (PPP)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=119c645c0699" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apple-developer-academy-federico-ii/exploiting-cve-2020-8597-119c645c0699">Exploiting CVE-2020–8597</a> was originally published in <a href="https://medium.com/apple-developer-academy-federico-ii">Apple Developer Academy | Federico II</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>