CHANGES revision 1.44
1$NetBSD: CHANGES,v 1.44 2020/10/15 04:21:53 mrg Exp $ 2 3changes in bozohttpd 20201014: 4 o also set -D_GNU_SOURCE in Makefile.boot. from 5 hadrien.lacour@posteo.net. 6 o fix array size botch (assertion, not exploitable.) from 7 martin@netbsd.org. 8 o also match %2F as well as %2f. from leah@vuxu.org. 9 o many manual and help fixes. clean ups for higher lint levels, 10 consistency/style clean ups. various option fixes including made 11 -f imply -b. from <henrik@gulbra.net> for freebsd. 12 13changes in bozohttpd 20200912: 14 o add .m4a and .m4v file extensions. 15 16changes in bozohttpd 20200820: 17 o make this work on sun2 by reducing mmap window there. 18 o fix SSL shutdown sequence. from spz@netbsd.org. 19 o add readme support to directory indexing. from jmcneill@netbsd.org 20 o add blocklist(8) support. from jruoho@netbsd.org. 21 22changes in bozohttpd 20190228: 23 o extend timeout facility to ssl and stop servers hanging forever 24 if the client never sends anything. reported by Steffen in netbsd 25 PR#50655. 26 o don't display special files in the directory index. they aren't 27 served, but links to them are generated. 28 o fix CGI '+' parameter handling, some error checking, and a double 29 free. from rajeev_v_pillai@yahoo.com 30 o more directory indexing clean up. from rajeev_v_pillai@yahoo.com 31 32changes in bozohttpd 20181215: 33 o fix .htpasswd bypass for authenticated users. reported by JP, 34 from leot@netbsd.org 35 o avoid possible null dereference when receiving a big request that 36 timeout. reported by maya@netbsd.org, from leot@netbsd.org 37 o fix handling of -T option, from leot@netbsd.org 38 o cleanups and portability improvements, from maya@netbsd.org 39 o change directory indexing to use html tables, from 40 rajeev_v_pillai@yahoo.com 41 42changes in bozohttpd 20181125: 43 o fixes for option parsing introduced in bozohttpd 20181123 44 45changes in bozohttpd 20181121: 46 o add url remap support via .bzremap file, from martin@netbsd.org 47 o handle redirections for any protocol, not just http: 48 o fix a denial of service attack against header contents, which 49 is now bounded at 16KiB. reported by JP 50 o reduce default timeouts, and add expand timeouts to handle the 51 initial line, each header, and the total time spent 52 o add -T option to expose new timeout settings 53 o minor RFC fixes related to timeout handling 54 o fix special file (.htpasswd, .bz*) bypass. reported by JP 55 56changes in bozohttpd 20170201: 57 o fix an infinite loop in cgi processing 58 o fixes and clean up for the testsuite 59 o no longer sends encoding header for compressed formats 60 61changes in bozohttpd 20160517: 62 o add a bozo_get_version() function which returns the version number 63 64changes in bozohttpd 20160415: 65 o add search-word support for CGI 66 o fix a security issue in CGI suffix handler support which would 67 allow remote code execution, from shm@netbsd.org 68 o -C option supports now CGI scripts only 69 70changes in bozohttpd 20151028: 71 o add CGI support for ~user translation (-E switch) 72 o add redirects to ~user translation 73 o fix bugs around ~user translation 74 o add schema detection for absolute redirects 75 o fixed few memory leaks 76 o bunch of minor tweaks 77 o removed -r support 78 o smarter redirects 79 80changes in bozohttpd 20150320: 81 o fix redirection handling 82 o support transport stream (.ts) and video object (.vob) files 83 o directory listings show correct file sizes for large files 84 85changes in bozohttpd 20140717: 86 o properly handle SSL errors 87 88changes in bozohttpd 20140708: 89 o fixes for virtual host support, from rajeev_v_pillai@yahoo.com 90 o avoid printing double errors, from shm@netbsd.org 91 o fix a security issue in basic HTTP authentication which would allow 92 authentication to be bypassed, from shm@netbsd.org 93 94changes in bozohttpd 20140201: 95 o support .svg files 96 o fix a core dump when requests timeout 97 98changes in bozohttpd 20140102: 99 o update a few content types 100 o add support for directly calling lua scripts to handle 101 processes, from mbalmer@netbsd.org 102 o properly escape generated HTML 103 o add authentication for redirections, from martin@netbsd.org 104 o handle chained ssl certifications, from elric@netbsd.org 105 o add basic support for gzipped files, from elric@netbsd.org 106 o properly escape generated URIs 107 108changes in bozohttpd 20111118: 109 o add -P <pidfile> option, from jmmv@netbsd.org 110 o avoid crashes with http basic auth, from pooka@netbsd.org 111 o add support for REDIRECT_STATUS variable, from tls@netbsd.org 112 o support .mp4 files in the default map 113 o directory indexes with files with : are now displayed properly, from 114 reed@netbsd.org 115 o allow -I option to be useful in non-inetd mode as well 116 117changes in bozohttpd 20100920: 118 o properly fully disable multi-file mode for now 119 o fix the -t and -U options when used without the -e option, broken since 120 the library-ifcation 121 o be explicit that logs go to the FTP facility in syslog 122 o use scandir() with alphasort() for sorted directory lists, from moof 123 o fix a serious error in vhost handling; "Host:.." would allow access to 124 the next level directory from the virtual root directory, from seanb 125 o fix some various non standard compile time errors, from rudolf 126 o fix dynamic CGI content maps, from rudolf 127 128changes in bozohttpd 20100617: 129 o fix some compile issues 130 o fix SSL mode. from rtr 131 o fix some cgi-bin issues, as seen with cvsweb 132 o disable multi-file daemon mode for now, it breaks 133 o return 404's instead of 403's when chdir of ~user dirs fail 134 o remove "noreturn" attribute from bozo_http_error() that was 135 causing incorrect runtime behaviour 136 137changes in bozohttpd 20100509: 138 o major rework and clean up of internal interfaces. move the main 139 program into main.c, the remaining parts are useable as library 140 add bindings for lua. by Alistair G. Crooks <agc@netbsd.org> 141 o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325 142 143changes in bozohttpd 20090522: 144 o avoid dying in daemon mode for some uncommon, but recoverable, errors 145 o close leaking file descriptors for CGI and daemon mode 146 o handle poll errors properly 147 o don't try to handle more than one request per process yet 148 o add subdirs for build "debug" and "small" versions 149 o clean up a bad merge / duplicate code 150 o make mmap() usage portable, fixes linux & ranges: support 151 o document the -f option 152 o daemon mode now serves 6 files per child 153 154changes in bozohttpd 20090417: 155 o make bozohttpd internally more modular, preparing the way 156 to handle more than one request per process 157 o fix http-auth, set $REMOTE_USER not $REMOTEUSER. also fix 158 cgi-bin with cvsweb, from Holger Weiss <holger@CIS.FU-Berlin.DE> 159 o fix an uninitialised variable use in daemon mode 160 o fix ssl mode with newer OpenSSL 161 o mmap large files in manageable sizes so we can serve any size file 162 o refactor url processing to handle query strings correctly for CGI 163 from Sergey Katsev at Coyote Point 164 o add If-Modified-Since support, from Joerg Sonnenberger 165 <joerg@netbsd.org> 166 o many more manual fixes, from NetBSD 167 168changes in bozohttpd 20080303: 169 o fix some cgi header processing, from <thelsdj@gmail.com> 170 o add simple Range: header processing, from <bad@bsd.de> 171 o man page fixes, from NetBSD 172 o clean up various parts, from NetBSD 173 174changes in bozohttpd 20060710: 175 o prefix some function names with "bozo" 176 o align directory indexing <hr> markers 177 o clean up some code GCC4 grumbled about 178 179changes in bozohttpd 20060517: 180 o don't allow "/.." or "../" files 181 o don't write ":80" into urls for the http port 182 o fix a fd leak when fork() fails 183 o make directory indexing mode not look so ugly 184 o build a text version of the manual page 185 o make "make clean" work properly 186 187changes in bozohttpd 20050410: 188 o fix some off-by-one errors from <roland.illig@gmx.de> 189 o properly support nph- CGI 190 o make content maps case insensitive 191 o fix proto header merging to include the missing comma 192 o major source reorganisation; most features are in separate files now 193 o new -V flag that makes unknown virtualhosts use slashdir 194 from <rumble@ephemeral.org> 195 o HTTP/1.x protocol headers are now properly merged for CGI 196 197changes in bozohttpd 20040808: 198 o CGI status is now properly handled (-a flag has been removed) 199 o CGI file upload support works 200 o %xy translations are no longer ever applied after the first '?', 201 ala RFC2396. from lukem 202 o daemon mode (-b) should no longer hang spinning forever if it 203 sees no children. from lukem 204 o new .bzabsredirect file support. from <martin@netbsd.org> 205 o return a 404 error if we see %00 or %2f (/) 206 o don't print 2 "200" headers for CGI 207 o support .torrent files 208 209changes in bozohttpd 20040218: 210 o new .bzredirect file support for sane directory redirection 211 o new -Z option that enables SSL mode, from <rtr@eterna.com.au> 212 o the -C option has been changed to take two explicit options, rather 213 than a single option with a space separating the suffix and the 214 interpreter. ``-C ".foo /path/to/bar"'' should now be written 215 as ``-C .foo /path/to/bar'' 216 o the -M option has been changed like -C and no longer requires or 217 supports a single argument with space-separated options 218 o with -a, still print the 200 OK. from <rtr@eterna.com.au> 219 o with -r, if a .bzdirect file appears in a directory, allow direct 220 access to this directory 221 222changes in bozohttpd 20031005: 223 o fixes for basic authorisation. from <ecu@ipv42.net> 224 o always display file size in directory index mode 225 o add .xbel, .xml & .xsl -> text/xml mappings. from 226 <wiz@danbala.ifoer.tuwien.ac.at> 227 228changes in bozohttpd 20030626: 229 o fix a recent core dump when given no input 230 o add new -r flag that ensures referrer is set to this host 231 o fix several compile time errors with -DNO_CGIBIN_SUPPORT 232 o fix some man page details. from lukem@wasabisystems.com 233 o re-add a missing memset(), fixing a core dump. from lukem 234 o support HTTP basic authorisation, disabled by default. from lukem 235 o print the port number in redirects and errors. from lukem 236 o only syslog the basename of the program. from lukem 237 o add __attribute__() format checking. from lukem 238 o fix cgibin SCRIPT_NAME to have a leading /. from zakj@nox.cx 239 o simplify some code in -C to avoid a core dump. from lukem 240 o add a .css -> css/text entry to the content_map[]. from zakj@nox.cx 241 242changes in bozohttpd 20030409: 243 o -d without DEBUG enabled only prints one warning and continues 244 o one can now define the C macro SERVER_SOFTWARE when building to 245 change the Server: header and CGI variable of the same name 246 o add new -s flag the force logging output to stderr. from zakj@nox.cx 247 o add new -a flag for CGI bin that stops bozohttpd from outputting 248 any HTTP reply, the CGI program must output these. from zakj@nox.cx 249 o new REQUEST_URI and DATE_GMT environment variables for CGI. from 250 zakj@nox.cx 251 o add a "Makefile.boot" that should work with any make program 252 o build on linux again 253 o fix core dumps when using -C 254 255changes in bozohttpd 20030313: 256 o deprecate -r flag; make this the default and silently ignore -r now 257 o add support for file extentions to call CGI programs (from lukem) 258 o add dynamic support to add new content map entries, allowing both 259 new file types and non /cgi-bin CGI programs to be run with the 260 new -C "suffix cgihandler" and -M "suffix type encoding encoding11" 261 options 262 o in -b mode, set the http date after accept() returns, not before we 263 call accept() 264 o in -b mode, bind all addresses found not just the first one 265 o unsupport old hostname API 266 o in -b mode, set the SO_REUSEADDR socket option (lukem) 267 o allow -x (index.html) mode to work with CGI handlers 268 269changes in bozohttpd 20021106: 270 o add .bz2 support 271 o properly escape <, > and & in error messages, partly from 272 Nicolas Jombart <ecu@mariejeanne.net> 273 o new -H flag to hide .* files in directory index mode 274 o fix buffer reallocation when parsing a request, to avoid 275 overflowing the buffer with carriage returns (\r) 276 o do not decode "%XY"-style cgi-bin data beyond the "?" 277 278changes in bozohttpd 5.15 (20020913): 279 o add .ogg support -> `application/x-ogg' 280 o fix CGI requests with "/" in the query part 281 282changes in bozohttpd 5.14 (20020823): 283 o allow -X mode to work for "/" 284 o work on systems without MADV_SEQUENTIAL 285 o make a local cut-down copy of "queue.h" (fixes linux & solaris 286 support at the very least) 287 o portability fixes for pre-ipv6 socket api systems (eg, solaris 7) 288 o portability fixes for missing _PATH_DEFPATH, LOG_FTP and __progname 289 o better documentation on virtual host support 290 291changes in bozohttpd 5.13 (20020804): 292 o support .mp3 files (type audio/mpeg) 293 o use stat() to find out if something is a directory, for -X mode 294 295changes in bozohttpd 5.12 (20020803): 296 o constification 297 o fixes & enhancements for directory index mode (-X) 298 299changes in bozohttpd 5.11 (20020730): 300 o more man page fixes from Thomas Klausner 301 <wiz@danbala.ifoer.tuwien.ac.at> 302 o de-K&R C-ification 303 o fix Date: header for daemon mode 304 o fix core dump when asking for /cgi-bin/ when CGI isn't configured 305 o use a valid Server: header 306 307changes in bozohttpd 5.10 (20020710): 308 - add freebsd support 309 - fix a couple of header typos 310 - many cgi-bin fixes from lukem@netbsd.org 311 - add -T chrootdir and -U user, plus several minor other cleanups 312 with signals and return values. from xs@kittenz.org 313 - add -e that does not clear the environment for -T/-U 314 - fix a formatting error noticed by ISIHARA Takanori <ishit@oak.dti.ne.jp> 315 316changes in bozohttpd 5.09 (20010922): 317 - add a daemon mode 318 - document how to use bozohttpd in netbsd inetd with more than 40 319 connections per minute and also with cgibin 320 - man page fixes from wiz@netbsd.org 321 322changes in bozohttpd 5.08 (20010812): 323 - add directory index generation support (-X) from ad@netbsd.org 324 - add .pa as an alias for .pac 325 - make server software version configurable (RFC) 326 327changes in bozohttpd 5.07 (20010610): 328 - add .png support 329 - new "-x index.html" flag to change default file 330 - new "-p public_html" flag to change default ~user directory 331 - fixes cgi-bin support and more from chuck@research.att.com 332 - add many new content-types, now support most common ones 333 334changes in bozohttpd 5.06 (20000825): 335 - add IPv6 support from itojun@iijlab.net 336 - man page fixes from jlam@netbsd.org 337 338changes in bozohttpd 5.05 (20000815): 339 - fix a virtual host bug, from kleink@netbsd.org 340 341changes in bozohttpd 5.04 (20000427): 342 - fix virtual host support; URI takes precedence over Host: 343 344changes in bozohttpd 5.03 (20000427): 345 - fix a bug with chdir() 346 347changes in bozohttpd 5.02 (20000426): 348 - .pac spport from simonb 349 350changes in bozohttpd 5.01 (20000421): 351 - .swf support 352 - virtual hosting support 353