Exploit database

GH-67340f13e331ad187786f604c1fd57ca

nonamecoder/cve-2023-22906

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-22906

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files61Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

html-report/s13_weak_func_check/vul_func_3_printf-wpa_supplicant.html

HTML · 14,005 bytes
<!-- 
EMBA - EMBEDDED LINUX ANALYZER

Copyright 2020-2023 Siemens AG
Copyright 2020-2023 Siemens Energy AG

EMBA comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under the terms of the GNU General Public License.
See LICENSE file for usage of this software.

EMBA is licensed under GPLv3

Author(s): Pascal Eckmann
Contributor(s): Michael Messner, Stefan Haboeck
-->

<!-- Used icons: https://github.com/CoreyGinnivan/system-uicons -->
 
<!DOCTYPE html>
<html lang="en">
<head>
  <title>EMBA firmware report</title>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../style/style.css" type="text/css">
  <link rel="icon" type="image/png" href="../style/favicon.png">
</head>
<body>

<div id="sidenav" class="side">
  <div id="logo">
    <a class="inherit" href="../index.html"><img class="inherit" id="logoImage" src="../style/emba.svg" alt="logo"></a>
  </div>
  <div id="nav">
      <a id="embark" class="hidden" href="http://24.199.64.69:8000/html-report/s13_weak_func_check/{{&#32;embarkBackUrl&#32;}}">&laquo; Back to EMBArk</a> <!-- nosem -->
      <a class="backButton" href="../index.html">&laquo; Back to main</a>
<a class="modul" href="../s13_weak_func_check.html" title="./../s13_weak_func_check.html" >&laquo; Back to s13_weak_func_check</a>
      <!-- navigation start -->
      <!-- navigation end -->
      <input id="expand" class="expand_njs hidden" type="button" value="More results:" onclick="this.value=this.value=='+ Show more results'?'- Hide more results':'+ Show more results';">
      <div class="expand_area">
        <!-- etc start -->
        <!-- etc end -->
      </div>
  </div>
  <a href="http://24.199.64.69:8000/html-report/s13_weak_func_check/TIMELINK"><div id="buttonTimeInvisible" class="rectButton"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" stroke="white" stroke-linecap="round" stroke-linejoin="round" transform="matrix(-1 0 0 1 19 2)"><circle cx="8.5" cy="8.5" r="8"/><path d="M8.5 5.5v4H5"/></g></svg></div></a>
  <div id="buttonSizer" class="rectButton buttonClose" onclick="buttonNav()"></div>
</div>
<div id="main" class="main">
  <!-- content start -->
<pre>[</span><span class="orange">*</span>] Binary protection state of </span><span class="orange">wpa_supplicant</span></pre>
<br />
<pre>  </pre>
<pre>  	<span class="orange">Partial RELRO</span>  <span class="red">No Canary found</span>   <span class="green">NX enabled</span>   <span class="red">No PIE</span>       <span class="green">No RPATH</span>     <span class="green">No RUNPATH</span>   <span class="red">Symbols</span></pre>
<br />
<pre></span></pre>
<pre>[</span><span class="orange">*</span>] Function </span><span class="orange">printf</span> tear down of </span><span class="orange">wpa_supplicant</span></pre>
<br />
<pre>   1e628:	9902      	ldr	r1, [sp, #8]</pre>
<pre>   1e62a:	9a03      	ldr	r2, [sp, #12]</pre>
<pre><span class="red">   1e62c:	db05      	blt.n	1e63a &lt;printf_decode+0x196&gt</span></span></pre>
<pre>   1e62e:	f809 0006 	strb.w	r0, [r9, r6]</pre>
<pre>   1e632:	3503      	adds	r5, #3</pre>
<pre>   1e634:	7828      	ldrb	r0, [r5, #0]</pre>
<pre>   1e636:	4626      	mov	r6, r4</pre>
<pre><span class="red">   1e638:	e744      	b.n	1e4c4 &lt;printf_decode+0x20&gt</span></span></pre>
<pre>   1e63a:	4618      	mov	r0, r3</pre>
<pre>   1e63c:	463d      	mov	r5, r7</pre>
<pre><span class="red">   1e63e:	e741      	b.n	1e4c4 &lt;printf_decode+0x20&gt</span></span></pre>
<br />
<pre>0001e640 &lt;wpa_ssid_txt&gt;:</pre>
<pre>   1e640:	b508      	push	{r3, lr}</pre>
<pre>   1e642:	4602      	mov	r2, r0</pre>
<pre>   1e644:	b160      	cbz	r0, 1e660 &lt;wpa_ssid_txt+0x20&gt;</pre>
<pre>   1e646:	f64c 6028 	movw	r0, #52776	; 0xce28</pre>
<pre>   1e64a:	460b      	mov	r3, r1</pre>
<pre>   1e64c:	f2c0 0009 	movt	r0, #9</pre>
<pre>   1e650:	2181      	movs	r1, #129	; 0x81</pre>
<pre><span class="red">   1e652:	f7ff fec5 	bl	1e3e0 &lt;printf_encode&gt</span></span></pre>
<pre>   1e656:	f64c 6028 	movw	r0, #52776	; 0xce28</pre>
<pre>   1e65a:	f2c0 0009 	movt	r0, #9</pre>
<pre>--</pre>
<pre>   1e7e2:	d1f3      	bne.n	1e7cc &lt;wpa_config_parse_string+0x58&gt;</pre>
<pre>   1e7e4:	1b41      	subs	r1, r0, r5</pre>
<pre>   1e7e6:	4628      	mov	r0, r5</pre>
<pre>   1e7e8:	6039      	str	r1, [r7, #0]</pre>
<pre>   1e7ea:	e8bd 41f0 	ldmia.w	sp!, {r4, r5, r6, r7, r8, lr}</pre>
<pre>   1e7ee:	f7ff bfad 	b.w	1e74c &lt;dup_binstr&gt;</pre>
<pre>   1e7f2:	1b44      	subs	r4, r0, r5</pre>
<pre>   1e7f4:	4628      	mov	r0, r5</pre>
<pre>   1e7f6:	4621      	mov	r1, r4</pre>
<pre>   1e7f8:	f7ff ffa8 	bl	1e74c &lt;dup_binstr&gt;</pre>
<pre>   1e7fc:	4606      	mov	r6, r0</pre>
<pre>   1e7fe:	2800      	cmp	r0, #0</pre>
<pre>   1e800:	d0e4      	beq.n	1e7cc &lt;wpa_config_parse_string+0x58&gt;</pre>
<pre>   1e802:	1c65      	adds	r5, r4, #1</pre>
<pre>   1e804:	4628      	mov	r0, r5</pre>
<pre>   1e806:	f7f7 e9c8 	blx	15b98 &lt</span>alloc&commat;plt&gt;</pre>
<pre>   1e80a:	4604      	mov	r4, r0</pre>
<pre>   1e80c:	b120      	cbz	r0, 1e818 &lt;wpa_config_parse_string+0xa4&gt;</pre>
<pre>   1e80e:	4629      	mov	r1, r5</pre>
<pre>   1e810:	4632      	mov	r2, r6</pre>
<pre><span class="red">   1e812:	f7ff fe47 	bl	1e4a4 &lt;printf_decode&gt</span></span></pre>
<pre>   1e816:	6038      	str	r0, [r7, #0]</pre>
<pre>   1e818:	4630      	mov	r0, r6</pre>
<pre>--</pre>
<pre>   39f1e:	4770      	bx	lr</pre>
<br />
<pre>00039f20 &lt;sockaddr_print&gt;:</pre>
<pre>   39f20:	b530      	push	{r4, r5, lr}</pre>
<pre>   39f22:	460c      	mov	r4, r1</pre>
<pre>   39f24:	8811      	ldrh	r1, [r2, #0]</pre>
<pre>   39f26:	b0b3      	sub	sp, #204	; 0xcc</pre>
<pre>   39f28:	2901      	cmp	r1, #1</pre>
<pre>   39f2a:	d008      	beq.n	39f3e &lt;sockaddr_print+0x1e&gt;</pre>
<pre>   39f2c:	f644 1160 	movw	r1, #18784	; 0x4960</pre>
<pre>   39f30:	4622      	mov	r2, r4</pre>
<pre>   39f32:	f2c0 0107 	movt	r1, #7</pre>
<pre><span class="red">   39f36:	f7e5 f857 	bl	1efe8 &lt;wpa_printf&gt</span></span></pre>
<pre>   39f3a:	b033      	add	sp, #204	; 0xcc</pre>
<pre>   39f3c:	bd30      	pop	{r4, r5, pc}</pre>
<pre>   39f3e:	4605      	mov	r5, r0</pre>
<pre>   39f40:	3202      	adds	r2, #2</pre>
<pre>   39f42:	4668      	mov	r0, sp</pre>
<pre>   39f44:	3b02      	subs	r3, #2</pre>
<pre>   39f46:	21c8      	movs	r1, #200	; 0xc8</pre>
<pre><span class="red">   39f48:	f7e4 fa4a 	bl	1e3e0 &lt;printf_encode&gt</span></span></pre>
<pre>   39f4c:	f246 4148 	movw	r1, #25672	; 0x6448</pre>
<pre>   39f50:	4628      	mov	r0, r5</pre>
<br />
<pre></span></pre>
<pre>[</span><span class="orange">*</span>] Function </span><span class="orange">printf</span> used </span><span class="orange">3</span> times </span><span class="orange">wpa_supplicant</span></pre>
<br />
  <!-- content end -->
</div>

<a href="https://github.com/e-m-b-a/emba" title="github.com/e-m-b-a/emba" target="_blank">
  <div id="buttonInfo" class="rectButtonVisible">
    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" transform="translate(2 2)"><g stroke="white" stroke-linecap="round" stroke-linejoin="round"><circle cx="8.5" cy="8.5" r="8"/><path d="M8.5 12.5v-4h-1"/><path d="M7.5 12.5h2"/></g><circle cx="8.5" cy="5.5" fill="white" r="1"/></g></svg>
  </div>
</a>
<div id="buttonBack" class="nonClickable rectButtonVisible"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><path d="M9.5 14.5l4-4l-4-4" fill="none" stroke="#444" stroke-linecap="round" stroke-linejoin="round"/></svg></div>
<div id="buttonForward" class="nonClickable rectButtonVisible"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><path d="M11.5 14.5l-4-4l4-4" fill="none" stroke="#444" stroke-linecap="round" stroke-linejoin="round"/></svg></div> 
<div id="buttonDown" class="rectButton" onclick="scrollDown()"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" stroke="#fff" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 6.5l-4 4l-4-4"/><path d="M14.5 10.5l-4 4l-4-4"/></g></svg></div>
<div id="buttonUp" class="rectButton" onclick="scrollUp()"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" stroke="#fff" stroke-linecap="round" stroke-linejoin="round"><path d="M6.5 14.5l4-4l4 4"/><path d="M6.5 10.5l4-4l4 4"/></g></svg></div> 

<script>
window.onload = function () {
  var buttons = document.getElementsByClassName("rectButton");
  for (let i=0; i<buttons.length; i++) {
    buttons[i].style.visibility = "visible";
  }
  var buttonDown = document.getElementById("buttonDown");
  buttonDown.classList.add('rectButtonVisible');
  buttonDown.classList.remove('rectButton');

  var buttonUp = document.getElementById("buttonUp");
  buttonUp.classList.add('rectButtonVisible');
  buttonUp.classList.remove('rectButton');
    
  var buttonSizer = document.getElementById("buttonSizer");
  buttonSizer.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" stroke="white" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 16.5v-4.978l-5-.022"/><path d="M18.5 2.5l-7 7"/><path d="M16.5 9.5l-5 .023V4.5"/><path d="M9.5 11.5l-7 7"/></g></svg>';
  if (document.getElementById("buttonTime") !== null) {
    var buttonTime = document.getElementById("buttonTime");
    buttonTime.style.bottom = "50px";
  }
  document.getElementById("expand").value = "+ Show more results";
  document.getElementById("expand").className += " expand";
  var embarkButton = document.getElementById("embark");
  if ( !(embarkButton.href.includes("embarkBackUrl")) ) {
    embarkButton.classList.remove('hidden');
    document.getElementById("logoImage").src = "./../style/embark.svg";
    document.getElementById("logo").style.background = "#2d2d2d";
  }
}

function openNav() {
  document.getElementById("sidenav").style.width = "250px";
  document.getElementById("main").style.marginLeft = "250px";
  document.getElementById("nav").style.visibility = "visible";
}

function closeNav() {
  document.getElementById("sidenav").style.width = "50px";
  document.getElementById("sidenav").scrollTop = 0;
  document.getElementById("main").style.marginLeft = "50px";
  document.getElementById("nav").style.visibility = "hidden";
}

function scrollDown() {
  window.scrollTo(0,document.body.scrollHeight);
}

function scrollUp() {
  window.scrollTo(0,0);
}

function buttonNav() {
  var button = document.getElementById("buttonSizer");
  if ( button.classList.contains('buttonOpen') ) {
    button.classList.remove('buttonOpen');
    button.classList.add('buttonClose');
    button.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" stroke="white" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 16.5v-4.978l-5-.022"/><path d="M18.5 2.5l-7 7"/><path d="M16.5 9.5l-5 .023V4.5"/><path d="M9.5 11.5l-7 7"/></g></svg>';
    openNav();
  } else if( button.classList.contains('buttonClose') ) {
    button.classList.remove('buttonClose');
    button.classList.add('buttonOpen');
    button.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" width="40" height="40" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 21 21"><g fill="none" fill-rule="evenodd" stroke="white" stroke-linecap="round" stroke-linejoin="round"><path d="M18.5 7.5v-5h-5"/><path d="M18.5 2.5l-6 5.929"/><path d="M7.5 18.5l-5 .023V13.5"/><path d="M8.5 12.5l-6 6"/></g></svg>';
    closeNav();
  };
}

document.onkeydown = function(e) {
    switch (e.keyCode) {
      case 37:
        document.getElementById("buttonForward").parentNode.click(); 
        break;
      case 39:
        document.getElementById("buttonBack").parentNode.click();       
        break;
    }
};
</script>

</body>
</html>