Disable access to critical CGIs via untrusted referrers.
authoroes <oes@users.sourceforge.net>
Thu, 28 Nov 2002 18:14:32 +0000 (18:14 +0000)
committeroes <oes@users.sourceforge.net>
Thu, 28 Nov 2002 18:14:32 +0000 (18:14 +0000)
commitfff61001bc84aa95161b177231e2d37376cccf8a
tree5faf9e0b080534c461f5a9de930b8371fd919a17
parent564aada1e8c8d01b9957bb56ef7cb33812cbc6fb
Disable access to critical CGIs via untrusted referrers.
This prevents users from being tricked by malicious websites
into making unintentional configuration changes:

 - Added flag to each cgi_dispatcher that allows or denies
   external linking
 - Introduced proviorical function that greps for the
   referrer header before regular header parsing happens
 - Added safety check to dispatch_known_cgi. CGI is called
   if (cgi harmless || no referrer || we are referrer).
   Else a) toggle calls are modified not to change status and
   b) all other calls are denied.
cgi.c