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