"redirect" binary is not statically linked

Bug #159772 reported by Paul Whittaker
4
Affects Status Importance Assigned to Milestone
thttpd (Debian)
Fix Released
Unknown
thttpd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: thttpd-util

The thttpd-util package includes a CGI program ("/usr/lib/cgi-bin/redirect") to support page redirection. To use this utility, you place the "redirect" executable in your CGI directory, and add a symlink to it from the page you want to redirect.

The supplied binary (in version 2.23beta1-6) is dynamically-linked:

 $ ldd /usr/lib/cgi-bin/redirect
        libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0x00710000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00d82000)
        /lib/ld-linux.so.2 (0x00bc1000)

If you choose to run the thttpd server chrooted (which is the default setting, and also securest), "redirect" will fail to run correctly and thttpd returns an error page instead of a redirection.

Recompiling redirect.c statically produces a CGI script that works.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in thttpd:
status: New → Incomplete
Revision history for this message
Paul Whittaker (launchpad-pdw) wrote : Re: [Bug 159772] Re: "redirect" binary is not statically linked

2008/11/12 Daniel T Chen <email address hidden>

> Is this symptom still reproducible in 8.10?
>
> ** Changed in: thttpd (Ubuntu)
> Status: New => Incomplete
>
> --
> "redirect" binary is not statically linked
> https://bugs.launchpad.net/bugs/159772
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Hi Daniel,

Yes it is. [Shell transcript follows.]

Regards,

Paul.

*pdw@pdwhittaker:~$ *ls /usr/lib/cgi-bin/redirect
ls: cannot access /usr/lib/cgi-bin/redirect: No such file or directory
*pdw@pdwhittaker:~$ *aptitude show thttpd-util
Package: thttpd-util
State: not installed
Version: 2.25b-3
Priority: optional
Section: universe/web
Maintainer: Ubuntu MOTU Developers <email address hidden>
Uncompressed Size: 127k
Depends: libc6 (>= 2.6.1-1)
Description: tiny/turbo/throttling HTTP server (utilities)
 thttpd is a small, fast secure webserver. It features CGI support,
 URL-traffic-based throttling and basic authentication. thttpd has a very
small
 memory footprint as it only forks itself in order to execute CGI scripts.
It is
 designed to be as fast as fully featured web-servers and it performs
extremely
 well under high load.

 Homepage: <http://www.acme.com/software/thttpd/>

 This package contains various support utilities for thttpd web-server.

*pdw@pdwhittaker:~$ *sudo aptitude install thttpd-util
[sudo] password for pdw:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Building tag database... Done
The following packages have been kept back:
  alacarte base-files dbus dbus-x11 foo2zjs libdbus-1-3 libsmbclient
  module-init-tools samba-common smbclient update-notifier
  update-notifier-common
The following NEW packages will be installed:
  thttpd-util
0 packages upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 27.8kB of archives. After unpacking 127kB will be used.
Writing extended state information... Done
Get:1 http://gb.archive.ubuntu.com hardy/universe thttpd-util 2.25b-3
[27.8kB]
Fetched 27.8kB in 0s (178kB/s)
Selecting previously deselected package thttpd-util.
(Reading database ... 157561 files and directories currently installed.)
Unpacking thttpd-util (from .../thttpd-util_2.25b-3_i386.deb) ...
Setting up thttpd-util (2.25b-3) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Writing extended state information... Done
Building tag database... Done
*pdw@pdwhittaker:~$ *ldd /usr/lib/cgi-bin/redirect
        linux-gate.so.1 => (0xb7fa1000)
        libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb7f60000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e11000)
        /lib/ld-linux.so.2 (0xb7fa2000)

Revision history for this message
era (era) wrote :

Confirmed as per corresponding upstream bug report

Changed in thttpd (Ubuntu):
status: Incomplete → Confirmed
Changed in thttpd (Debian):
status: Unknown → Won't Fix
Changed in thttpd (Debian):
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.