CHANGES revision 1.54
11.54Sandvar$NetBSD: CHANGES,v 1.54 2022/11/02 20:38:21 andvar Exp $
21.53Skim
31.53Skimchanges in bozohttpd 20220104:
41.53Skim	o  remove obsolete .bzdirect handling.
51.50Smrg
61.50Smrgchanges in bozohttpd 20210824:
71.50Smrg	o  new "-m tlsversion" option to set the minimum TLS version
81.50Smrg	   available.  partially from <sunil@nimmagadda.net>.
91.51Smrg	o  extend the list of available ciphers to include most of the
101.51Smrg	   openssl "HIGH" with some additional disables.  retain the current
111.51Smrg	   list of bad options.  should deal with PR#51278.
121.49Smrg
131.49Smrgchanges in bozohttpd 20210504:
141.52Sandvar	o  don't assume host BUFSIZ is sufficient.  small BUFSIZ leads to
151.49Smrg	   always happens errors in the testsuite.  switch all these buffers
161.49Smrg	   to be 4KiB sized.  reported by embr <git@liclac.eu>
171.48Smrg
181.48Smrgchanges in bozohttpd 20210403:
191.48Smrg	o  fix a denial of service attack against initial request contents,
201.48Smrg           now bounded at 16KiB.  reported by Justin Parrott in PR#56085
211.47Smrg
221.47Smrgchanges in bozohttpd 20210227:
231.47Smrg	o  new support for content types: .tar.bz2, .tar.xz, .tar.lz,
241.47Smrg	   .tar.zst, .tbz2, .txz, .tlz, .zipx, .xz, .zst, .sz, .lz, .lzma,
251.47Smrg	   .lzo, .7z, .lzo, .cab, .dmg, .jar, and .rar.  should fix
261.47Smrg	   netbsd PR#56026:
271.47Smrg	   MIME type of .tar.xz file on ny{cdn,ftp}.NetBSD.org is invalid
281.45Smrg
291.46Smrgchanges in bozohttpd 20210211:
301.45Smrg	o  fix various NULL derefs from malformed headers.  mostly from
311.45Smrg	   <emily@ingalls.rocks>.
321.46Smrg	o  fix memory leaks in library interface: add bozo_cleanup().
331.43Smrg
341.43Smrgchanges in bozohttpd 20201014:
351.43Smrg	o  also set -D_GNU_SOURCE in Makefile.boot.  from
361.43Smrg	   hadrien.lacour@posteo.net.
371.43Smrg	o  fix array size botch (assertion, not exploitable.)  from
381.43Smrg	   martin@netbsd.org.
391.43Smrg	o  also match %2F as well as %2f.  from leah@vuxu.org.
401.44Smrg	o  many manual and help fixes.  clean ups for higher lint levels,
411.44Smrg	   consistency/style clean ups.  various option fixes including made
421.44Smrg	   -f imply -b.  from <henrik@gulbra.net> for freebsd.
431.42Srhialto
441.42Srhialtochanges in bozohttpd 20200912:
451.42Srhialto	o  add .m4a and .m4v file extensions.
461.41Smrg
471.41Smrgchanges in bozohttpd 20200820:
481.41Smrg	o  make this work on sun2 by reducing mmap window there.
491.41Smrg	o  fix SSL shutdown sequence.  from spz@netbsd.org.
501.41Smrg	o  add readme support to directory indexing.  from jmcneill@netbsd.org
511.41Smrg	o  add blocklist(8) support.  from jruoho@netbsd.org.
521.37Smrg
531.40Smrgchanges in bozohttpd 20190228:
541.40Smrg	o  extend timeout facility to ssl and stop servers hanging forever
551.40Smrg	   if the client never sends anything.  reported by Steffen in netbsd
561.40Smrg	   PR#50655.
571.37Smrg	o  don't display special files in the directory index.  they aren't
581.37Smrg	   served, but links to them are generated.
591.36Smrg	o  fix CGI '+' parameter handling, some error checking, and a double
601.36Smrg	   free.  from rajeev_v_pillai@yahoo.com
611.36Smrg	o  more directory indexing clean up.  from rajeev_v_pillai@yahoo.com
621.32Sleot
631.32Sleotchanges in bozohttpd 20181215:
641.34Smrg	o  fix .htpasswd bypass for authenticated users.  reported by JP,
651.32Sleot	   from leot@netbsd.org
661.32Sleot	o  avoid possible null dereference when receiving a big request that
671.32Sleot	   timeout.  reported by maya@netbsd.org, from leot@netbsd.org
681.32Sleot	o  fix handling of -T option, from leot@netbsd.org
691.32Sleot	o  cleanups and portability improvements, from maya@netbsd.org
701.33Smrg	o  change directory indexing to use html tables, from
711.31Smrg	   rajeev_v_pillai@yahoo.com
721.29Smrg
731.29Smrgchanges in bozohttpd 20181125:
741.30Smrg	o  fixes for option parsing introduced in bozohttpd 20181123
751.26Smrg
761.28Smrgchanges in bozohttpd 20181121:
771.26Smrg	o  add url remap support via .bzremap file, from martin@netbsd.org
781.26Smrg	o  handle redirections for any protocol, not just http:
791.26Smrg	o  fix a denial of service attack against header contents, which
801.27Smrg	   is now bounded at 16KiB.  reported by JP
811.27Smrg	o  reduce default timeouts, and add expand timeouts to handle the
821.27Smrg	   initial line, each header, and the total time spent
831.27Smrg	o  add -T option to expose new timeout settings
841.27Smrg	o  minor RFC fixes related to timeout handling
851.30Smrg	o  fix special file (.htpasswd, .bz*) bypass.  reported by JP
861.25Smrg
871.25Smrgchanges in bozohttpd 20170201:
881.25Smrg	o  fix an infinite loop in cgi processing
891.25Smrg	o  fixes and clean up for the testsuite
901.25Smrg	o  no longer sends encoding header for compressed formats
911.11Smrg
921.23Sagcchanges in bozohttpd 20160517:
931.25Smrg	o  add a bozo_get_version() function which returns the version number
941.23Sagc
951.22Smrgchanges in bozohttpd 20160415:
961.22Smrg	o  add search-word support for CGI
971.22Smrg	o  fix a security issue in CGI suffix handler support which would
981.22Smrg	   allow remote code execution, from shm@netbsd.org
991.22Smrg	o  -C option supports now CGI scripts only
1001.22Smrg
1011.21Sshmchanges in bozohttpd 20151028:
1021.21Sshm	o  add CGI support for ~user translation (-E switch)
1031.21Sshm	o  add redirects to ~user translation
1041.21Sshm	o  fix bugs around ~user translation
1051.21Sshm	o  add schema detection for absolute redirects
1061.21Sshm	o  fixed few memory leaks
1071.21Sshm	o  bunch of minor tweaks
1081.21Sshm	o  removed -r support
1091.21Sshm	o  smarter redirects 
1101.21Sshm
1111.20Smrgchanges in bozohttpd 20150320:
1121.20Smrg	o  fix redirection handling
1131.20Smrg	o  support transport stream (.ts) and video object (.vob) files
1141.20Smrg	o  directory listings show correct file sizes for large files
1151.20Smrg
1161.19Smrgchanges in bozohttpd 20140717:
1171.20Smrg	o  properly handle SSL errors
1181.19Smrg
1191.18Smrgchanges in bozohttpd 20140708:
1201.18Smrg	o  fixes for virtual host support, from rajeev_v_pillai@yahoo.com
1211.18Smrg	o  avoid printing double errors, from shm@netbsd.org
1221.18Smrg	o  fix a security issue in basic HTTP authentication which would allow
1231.18Smrg	   authentication to be bypassed, from shm@netbsd.org
1241.18Smrg
1251.15Smrgchanges in bozohttpd 20140201:
1261.16Smrg	o  support .svg files
1271.15Smrg	o  fix a core dump when requests timeout
1281.15Smrg
1291.15Smrgchanges in bozohttpd 20140102:
1301.14Smrg	o  update a few content types
1311.14Smrg	o  add support for directly calling lua scripts to handle
1321.14Smrg	   processes, from mbalmer@netbsd.org
1331.13Smrg	o  properly escape generated HTML
1341.13Smrg	o  add authentication for redirections, from martin@netbsd.org
1351.13Smrg	o  handle chained ssl certifications, from elric@netbsd.org
1361.13Smrg	o  add basic support for gzipped files, from elric@netbsd.org
1371.12Smrg	o  properly escape generated URIs
1381.12Smrg
1391.15Smrgchanges in bozohttpd 20111118:
1401.11Smrg	o  add -P <pidfile> option, from jmmv@netbsd.org
1411.11Smrg	o  avoid crashes with http basic auth, from pooka@netbsd.org
1421.11Smrg	o  add support for REDIRECT_STATUS variable, from tls@netbsd.org
1431.11Smrg	o  support .mp4 files in the default map
1441.11Smrg	o  directory indexes with files with : are now displayed properly, from
1451.11Smrg	   reed@netbsd.org
1461.11Smrg	o  allow -I option to be useful in non-inetd mode as well
1471.9Smrg
1481.15Smrgchanges in bozohttpd 20100920:
1491.9Smrg	o  properly fully disable multi-file mode for now
1501.9Smrg	o  fix the -t and -U options when used without the -e option, broken since
1511.9Smrg	   the library-ifcation
1521.9Smrg	o  be explicit that logs go to the FTP facility in syslog
1531.10Smrg	o  use scandir() with alphasort() for sorted directory lists, from moof
1541.10Smrg	o  fix a serious error in vhost handling; "Host:.." would allow access to
1551.10Smrg	   the next level directory from the virtual root directory, from seanb
1561.10Smrg	o  fix some various non standard compile time errors, from rudolf
1571.10Smrg	o  fix dynamic CGI content maps, from rudolf
1581.7Smrg
1591.15Smrgchanges in bozohttpd 20100617:
1601.7Smrg	o  fix some compile issues
1611.8Smrg	o  fix SSL mode.  from rtr
1621.8Smrg	o  fix some cgi-bin issues, as seen with cvsweb
1631.8Smrg	o  disable multi-file daemon mode for now, it breaks
1641.8Smrg	o  return 404's instead of 403's when chdir of ~user dirs fail
1651.8Smrg	o  remove "noreturn" attribute from bozo_http_error() that was
1661.8Smrg	   causing incorrect runtime behaviour
1671.6Smrg
1681.15Smrgchanges in bozohttpd 20100509:
1691.6Smrg	o  major rework and clean up of internal interfaces.  move the main
1701.30Smrg	   program into main.c, the remaining parts are useable as library
1711.6Smrg	   add bindings for lua.  by Alistair G. Crooks <agc@netbsd.org>
1721.6Smrg	o  fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325
1731.4Smrg
1741.15Smrgchanges in bozohttpd 20090522:
1751.4Smrg	o  avoid dying in daemon mode for some uncommon, but recoverable, errors
1761.4Smrg	o  close leaking file descriptors for CGI and daemon mode
1771.4Smrg	o  handle poll errors properly
1781.4Smrg	o  don't try to handle more than one request per process yet
1791.5Smrg	o  add subdirs for build "debug" and "small" versions
1801.5Smrg	o  clean up a bad merge / duplicate code
1811.5Smrg	o  make mmap() usage portable, fixes linux & ranges: support
1821.5Smrg	o  document the -f option
1831.5Smrg	o  daemon mode now serves 6 files per child
1841.3Smrg
1851.15Smrgchanges in bozohttpd 20090417:
1861.3Smrg	o  make bozohttpd internally more modular, preparing the way
1871.3Smrg	   to handle more than one request per process
1881.3Smrg	o  fix http-auth, set $REMOTE_USER not $REMOTEUSER.  also fix
1891.3Smrg	   cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE>
1901.3Smrg	o  fix an uninitialised variable use in daemon mode
1911.3Smrg	o  fix ssl mode with newer OpenSSL
1921.3Smrg	o  mmap large files in manageable sizes so we can serve any size file
1931.3Smrg	o  refactor url processing to handle query strings correctly for CGI
1941.3Smrg	   from Sergey Katsev at Coyote Point
1951.3Smrg	o  add If-Modified-Since support, from Joerg Sonnenberger
1961.3Smrg	   <joerg@netbsd.org>
1971.3Smrg	o  many more manual fixes, from NetBSD
1981.3Smrg
1991.15Smrgchanges in bozohttpd 20080303:
2001.3Smrg	o  fix some cgi header processing, from <thelsdj@gmail.com>
2011.3Smrg	o  add simple Range: header processing, from <bad@bsd.de>
2021.3Smrg	o  man page fixes, from NetBSD
2031.3Smrg	o  clean up various parts, from NetBSD
2041.3Smrg
2051.15Smrgchanges in bozohttpd 20060710:
2061.3Smrg	o  prefix some function names with "bozo"
2071.3Smrg	o  align directory indexing <hr> markers
2081.3Smrg	o  clean up some code GCC4 grumbled about
2091.1Stls
2101.15Smrgchanges in bozohttpd 20060517:
2111.1Stls	o  don't allow "/.." or "../" files
2121.1Stls	o  don't write ":80" into urls for the http port
2131.1Stls	o  fix a fd leak when fork() fails
2141.1Stls	o  make directory indexing mode not look so ugly
2151.1Stls	o  build a text version of the manual page
2161.1Stls	o  make "make clean" work properly
2171.1Stls
2181.15Smrgchanges in bozohttpd 20050410:
2191.1Stls	o  fix some off-by-one errors from <roland.illig@gmx.de>
2201.1Stls	o  properly support nph- CGI
2211.1Stls	o  make content maps case insensitive
2221.1Stls	o  fix proto header merging to include the missing comma
2231.1Stls	o  major source reorganisation; most features are in separate files now
2241.1Stls	o  new -V flag that makes unknown virtualhosts use slashdir
2251.1Stls	   from <rumble@ephemeral.org>
2261.1Stls	o  HTTP/1.x protocol headers are now properly merged for CGI
2271.1Stls
2281.15Smrgchanges in bozohttpd 20040808:
2291.1Stls	o  CGI status is now properly handled (-a flag has been removed)
2301.1Stls	o  CGI file upload support works
2311.1Stls	o  %xy translations are no longer ever applied after the first '?',
2321.1Stls	   ala RFC2396.  from lukem
2331.1Stls	o  daemon mode (-b) should no longer hang spinning forever if it
2341.1Stls	   sees no children.  from lukem
2351.1Stls	o  new .bzabsredirect file support. from <martin@netbsd.org>
2361.1Stls	o  return a 404 error if we see %00 or %2f (/)
2371.1Stls	o  don't print 2 "200" headers for CGI
2381.1Stls	o  support .torrent files
2391.1Stls
2401.15Smrgchanges in bozohttpd 20040218:
2411.1Stls	o  new .bzredirect file support for sane directory redirection
2421.1Stls	o  new -Z option that enables SSL mode, from <rtr@eterna.com.au>
2431.1Stls	o  the -C option has been changed to take two explicit options, rather
2441.1Stls	   than a single option with a space separating the suffix and the
2451.1Stls	   interpreter.  ``-C ".foo /path/to/bar"'' should now be written
2461.1Stls	   as ``-C .foo /path/to/bar''
2471.1Stls	o  the -M option has been changed like -C and no longer requires or
2481.1Stls	   supports a single argument with space-separated options
2491.1Stls	o  with -a, still print the 200 OK.  from <rtr@eterna.com.au>
2501.1Stls	o  with -r, if a .bzdirect file appears in a directory, allow direct
2511.1Stls	   access to this directory
2521.1Stls
2531.15Smrgchanges in bozohttpd 20031005:
2541.1Stls	o  fixes for basic authorisation.  from <ecu@ipv42.net>
2551.1Stls	o  always display file size in directory index mode
2561.1Stls	o  add .xbel, .xml & .xsl -> text/xml mappings.  from
2571.1Stls	   <wiz@danbala.ifoer.tuwien.ac.at>
2581.1Stls
2591.15Smrgchanges in bozohttpd 20030626:
2601.1Stls	o  fix a recent core dump when given no input
2611.1Stls	o  add new -r flag that ensures referrer is set to this host
2621.1Stls	o  fix several compile time errors with -DNO_CGIBIN_SUPPORT
2631.1Stls	o  fix some man page details. from lukem@wasabisystems.com
2641.1Stls	o  re-add a missing memset(), fixing a core dump. from lukem
2651.1Stls	o  support HTTP basic authorisation, disabled by default.  from lukem
2661.1Stls	o  print the port number in redirects and errors. from lukem
2671.1Stls	o  only syslog the basename of the program. from lukem
2681.1Stls	o  add __attribute__() format checking. from lukem
2691.1Stls	o  fix cgibin SCRIPT_NAME to have a leading /.  from zakj@nox.cx
2701.1Stls	o  simplify some code in -C to avoid a core dump.  from lukem
2711.1Stls	o  add a .css -> css/text entry to the content_map[].  from zakj@nox.cx
2721.1Stls
2731.15Smrgchanges in bozohttpd 20030409:
2741.1Stls	o  -d without DEBUG enabled only prints one warning and continues
2751.1Stls	o  one can now define the C macro SERVER_SOFTWARE when building to
2761.1Stls	   change the Server: header and CGI variable of the same name
2771.1Stls	o  add new -s flag the force logging output to stderr. from zakj@nox.cx
2781.1Stls	o  add new -a flag for CGI bin that stops bozohttpd from outputting
2791.1Stls	   any HTTP reply, the CGI program must output these.  from zakj@nox.cx
2801.1Stls	o  new REQUEST_URI and DATE_GMT environment variables for CGI.  from
2811.1Stls	   zakj@nox.cx
2821.1Stls	o  add a "Makefile.boot" that should work with any make program
2831.1Stls	o  build on linux again
2841.1Stls	o  fix core dumps when using -C
2851.1Stls
2861.15Smrgchanges in bozohttpd 20030313:
2871.1Stls	o  deprecate -r flag; make this the default and silently ignore -r now
2881.52Sandvar	o  add support for file extensions to call CGI programs (from lukem)
2891.1Stls	o  add dynamic support to add new content map entries, allowing both
2901.1Stls	   new file types and non /cgi-bin CGI programs to be run with the
2911.1Stls	   new -C "suffix cgihandler" and -M "suffix type encoding encoding11"
2921.1Stls	   options
2931.1Stls	o  in -b mode, set the http date after accept() returns, not before we
2941.1Stls	   call accept()
2951.1Stls	o  in -b mode, bind all addresses found not just the first one
2961.1Stls	o  unsupport old hostname API
2971.1Stls	o  in -b mode, set the SO_REUSEADDR socket option (lukem)
2981.1Stls	o  allow -x (index.html) mode to work with CGI handlers
2991.1Stls
3001.15Smrgchanges in bozohttpd 20021106:
3011.1Stls	o  add .bz2 support
3021.1Stls	o  properly escape <, > and & in error messages, partly from
3031.1Stls	   Nicolas Jombart <ecu@mariejeanne.net>
3041.1Stls	o  new -H flag to hide .* files in directory index mode
3051.1Stls	o  fix buffer reallocation when parsing a request, to avoid
3061.1Stls	   overflowing the buffer with carriage returns (\r)
3071.1Stls	o  do not decode "%XY"-style cgi-bin data beyond the "?"
3081.1Stls
3091.15Smrgchanges in bozohttpd 5.15 (20020913):
3101.1Stls	o  add .ogg support -> `application/x-ogg'
3111.1Stls	o  fix CGI requests with "/" in the query part
3121.1Stls
3131.15Smrgchanges in bozohttpd 5.14 (20020823):
3141.1Stls	o  allow -X mode to work for "/"
3151.1Stls	o  work on systems without MADV_SEQUENTIAL
3161.1Stls	o  make a local cut-down copy of "queue.h" (fixes linux & solaris
3171.1Stls	   support at the very least)
3181.1Stls	o  portability fixes for pre-ipv6 socket api systems (eg, solaris 7)
3191.1Stls	o  portability fixes for missing _PATH_DEFPATH, LOG_FTP and __progname
3201.1Stls	o  better documentation on virtual host support
3211.1Stls
3221.15Smrgchanges in bozohttpd 5.13 (20020804):
3231.1Stls	o  support .mp3 files (type audio/mpeg)
3241.1Stls	o  use stat() to find out if something is a directory, for -X mode
3251.1Stls
3261.15Smrgchanges in bozohttpd 5.12 (20020803):
3271.1Stls	o  constification
3281.1Stls	o  fixes & enhancements for directory index mode (-X)
3291.1Stls
3301.15Smrgchanges in bozohttpd 5.11 (20020730):
3311.1Stls	o  more man page fixes from Thomas Klausner
3321.1Stls	   <wiz@danbala.ifoer.tuwien.ac.at>
3331.1Stls	o  de-K&R C-ification
3341.1Stls	o  fix Date: header for daemon mode
3351.1Stls	o  fix core dump when asking for /cgi-bin/ when CGI isn't configured
3361.1Stls	o  use a valid Server: header
3371.1Stls
3381.15Smrgchanges in bozohttpd 5.10 (20020710):
3391.1Stls	- add freebsd support 
3401.1Stls	- fix a couple of header typos
3411.1Stls	- many cgi-bin fixes from lukem@netbsd.org
3421.1Stls	- add -T chrootdir and -U user, plus several minor other cleanups
3431.1Stls	with signals and return values.  from xs@kittenz.org
3441.1Stls	- add -e that does not clear the environment for -T/-U
3451.1Stls	- fix a formatting error noticed by ISIHARA Takanori <ishit@oak.dti.ne.jp>
3461.1Stls
3471.15Smrgchanges in bozohttpd 5.09 (20010922):
3481.1Stls	- add a daemon mode
3491.1Stls	- document how to use bozohttpd in netbsd inetd with more than 40 
3501.1Stls	connections per minute and also with cgibin
3511.1Stls	- man page fixes from wiz@netbsd.org
3521.1Stls
3531.15Smrgchanges in bozohttpd 5.08 (20010812):
3541.1Stls	- add directory index generation support (-X) from ad@netbsd.org
3551.1Stls	- add .pa as an alias for .pac
3561.1Stls	- make server software version configurable (RFC)
3571.1Stls
3581.15Smrgchanges in bozohttpd 5.07 (20010610):
3591.1Stls	- add .png support 
3601.1Stls	- new "-x index.html" flag to change default file
3611.1Stls	- new "-p public_html" flag to change default ~user directory
3621.1Stls	- fixes cgi-bin support and more from chuck@research.att.com
3631.1Stls	- add many new content-types, now support most common ones
3641.1Stls
3651.15Smrgchanges in bozohttpd 5.06 (20000825):
3661.33Smrg	- add IPv6 support from itojun@iijlab.net
3671.1Stls	- man page fixes from jlam@netbsd.org
3681.1Stls
3691.15Smrgchanges in bozohttpd 5.05 (20000815):
3701.1Stls	- fix a virtual host bug, from kleink@netbsd.org
3711.1Stls
3721.15Smrgchanges in bozohttpd 5.04 (20000427):
3731.1Stls	- fix virtual host support; URI takes precedence over Host:
3741.1Stls
3751.15Smrgchanges in bozohttpd 5.03 (20000427):
3761.1Stls	- fix a bug with chdir() 
3771.1Stls
3781.15Smrgchanges in bozohttpd 5.02 (20000426):
3791.54Sandvar	- .pac support from simonb
3801.1Stls
3811.15Smrgchanges in bozohttpd 5.01 (20000421):
3821.1Stls	- .swf support 
3831.1Stls	- virtual hosting support 
384