Modify

Opened 3 years ago

Last modified 7 weeks ago

#728 reopened defect

Buffer overflow not properly patched

Reported by: opensource@… Owned by:
Priority: minor Milestone: 1.2
Component: general Version: trunk
Keywords: Cc:

Description

changeset:1676 seems not to address the recently discovered buffer overflow.

From the Fedora bug report: (Bug 577654 in Red Hat's Bugzilla)

  • The code checks if the self-proclaimed size of the packet is larger than the real packet size. If the packet is larger than 256 bytes AND correctly tells about that, the heap will still be overwritten...
  • The self-proclaimed size of the packet is compared to uninitialized data, resulting in random results
  • They forgot to patch airbase-ng.c

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by misterx

Fixed now in r1683 for aircrack-ng, airdecap-ng and airodump-ng and r1687 for airbase-ng

comment:2 Changed 3 years ago by misterx

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 3 years ago by opensource@…

  • Resolution fixed deleted
  • Status changed from closed to reopened

Here is a comment from the original bug reporter claiming that the fix is not yet ok:
"""
I've only checked airodump-ng and as far as I can see the fix is incorrect as
the field "pkh.len" is uninitialized. It just happens to contain a value that
prevents the bug from getting triggered - this is left to a random value on the
stack however. It should read "caplen" instead of "pkh.len".

Why don't you just compare the promoted size of the EAPOL-frame to
"sizeof(wpa.eapol_frame)" ?
"""

comment:4 Changed 4 months ago by clopez

  • Milestone changed from 1.1 to 1.2

Here are the relevant links:

I have tested it with trunk (r2235):

svn co http://trac.aircrack-ng.org/svn/trunk/ aircrack-ng
cd aircrack-ng
make
wget http://pyrit.googlecode.com/svn/tags/opt/aircrackng_exploit.cap
$ aircrack-ng aircrackng_exploit.cap 
Opening aircrackng_exploit.cap
Read 1 packets.

   #  BSSID              ESSID                     Encryption

   1  00:DE:AD:C0:DE:00                            WPA (0 handshake)

Choosing first network as target.

Opening aircrackng_exploit.cap
Reading packets, please wait...

It keeps there forever and you have to hit CTR+C twice to make it stop :\

Add Comment

Modify Ticket

Action
as reopened .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.