Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82235 - puregui doesn't validate input and can be crashed
Summary: puregui doesn't validate input and can be crashed
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Auditing (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Sune Kloppenborg Jeppesen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-16 04:32 UTC by rob holland (RETIRED)
Modified: 2005-03-10 10:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rob holland (RETIRED) gentoo-dev 2005-02-16 04:32:13 UTC
There is no security risk here as the program isn't setuid. I'm putting the bug here purely because it was found as part of an audit.

callbacks.c:101-103:

    ip_addr = gtk_entry_get_text(GTK_ENTRY(gtk_object_get_data(GTK_OBJECT(user_data),"P_entry")));
    if (ip_addr != NULL )
      strcat(ftp_options, (gpointer) _(g_strdup_printf(" -P %s", ip_addr)));

This is a strcat to a static buffer with no input length check:

static char ftp_options[1024];

Pasting over 1024 characters into the IP address field in the standalone section of the GUI and selecting the standalone tick box causes a segfault when doing File->Save, File->Close.

There are a few other places in the GUI where this can be done.
Comment 1 rob holland (RETIRED) gentoo-dev 2005-02-16 05:52:43 UTC
I've emailed upstream.
Comment 2 rob holland (RETIRED) gentoo-dev 2005-03-10 10:22:54 UTC
closing bug, its been removed from portage now.