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