First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 196811
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 196772
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Tobias Heinlein <keytoaster@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 196811 depends on: Show dependency tree
Bug 196811 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-23 17:28 0000
I.Synopsis

A vulnerability has been discovered in 3proxy allowing for the remote
execution of arbitrary code.

There is a double free vulnerability in function ftpprchild().
...
if (!strncasecmp((char *)buf, "OPEN ", 5)){
        if(param->hostname) myfree(param->hostname); <--first free
        if(parsehostname((char *)buf+5, param, 21)){RETURN(803);}

the parsehostname will free param->hostname again.
int parsehostname(char *hostname, struct clientparam *param, unsigned
short port){
                char *sp;

                if(!hostname || !*hostname)return 1;
                if ( (sp = strchr(hostname, ':')) ) *sp = 0;
                if(param->hostname) myfree(param->hostname); <-- double free


Impact
A remote attacker could send a specially crafted transparent request to
the proxy, resulting in the execution of arbitrary code with privileges
of the user running 3proxy.

Credit:
Venustech AD-LAB discovery this vuln. Thank to all Venustech AD-Lab
guys.

------- Comment #1 From Tobias Heinlein 2007-10-23 17:33:05 0000 -------
Something's weird here, I'm absolutely sure there was no existing report about
this issue when I searched for it 3 seconds ago..

*** This bug has been marked as a duplicate of bug 196772 ***

First Last Prev Next    No search results available      Search page      Enter new bug