From 0596c6d9b3e9dda73beaa239e6349478667d267d Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 5 Jul 2007 19:53:58 +0000 Subject: [PATCH] *All*
blocks now contain a nonce field, and the use of a nonce is now enforced whenever method=POST is used. This prevents an attacker from simply removing the nonce entirely. --- webcit/floors.c | 5 +++-- webcit/notes.c | 3 ++- webcit/roomops.c | 10 ++++++---- webcit/webcit.c | 4 +++- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/webcit/floors.c b/webcit/floors.c index da7e0061a..3ea670d8f 100644 --- a/webcit/floors.c +++ b/webcit/floors.c @@ -118,8 +118,9 @@ void display_floorconfig(char *prepend_html) } wprintf(" " - "" - ""); + wprintf("\n", WC->nonce); + wprintf("\n" "" diff --git a/webcit/notes.c b/webcit/notes.c index 137480a52..38cd1b7de 100644 --- a/webcit/notes.c +++ b/webcit/notes.c @@ -67,9 +67,10 @@ void display_note(long msgnum) /** Offer in-place editing. */ if (strlen(eid) > 0) { wprintf("\n", eid, + WC->nonce, eid ); } diff --git a/webcit/roomops.c b/webcit/roomops.c index 832b622d1..a6005641d 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -378,8 +378,9 @@ void embed_room_graphic(void) { void embed_view_o_matic(void) { int i; - wprintf("\n" - "