From f657368b72f62699e51cb6b7efeb9e0b30f02f67 Mon Sep 17 00:00:00 2001 From: niekt0 Date: Mon, 1 Nov 2010 14:08:39 +0100 Subject: [PATCH] Fixed small bugs in eventz, TODO fix --- doc/TODO | 53 ++++++++---- wwwroot/inc/eventz/addClass.inc | 3 + wwwroot/inc/eventz/addTemplate.inc | 2 +- wwwroot/inc/eventz/configure_image_new.inc | 94 ---------------------- wwwroot/inc/eventz/debugging.inc | 3 + wwwroot/inc/eventz/dump_mail_xml.inc | 6 -- wwwroot/inc/eventz/upload_own_template.inc | 5 +- wwwroot/inc/filez.inc | 22 ++++- 8 files changed, 70 insertions(+), 118 deletions(-) delete mode 100644 wwwroot/inc/eventz/configure_image_new.inc diff --git a/doc/TODO b/doc/TODO index 4cb7450..580ed2d 100644 --- a/doc/TODO +++ b/doc/TODO @@ -1,17 +1,10 @@ - User mail is not working - Registration process is not working - (IMHO we should use SHA1 or stronger algorithm instead of MD5 for storing passwords) - (We can use multiple hash algorithms (so we'll have backward DB compatibility): - {SHA256}0654209dbde29a5c17e4f04ab63a91d303d2e7c791c7b5777581a7fa6550054e - {SHA1}f67c52c4a27cf05c99e4f3f946d6500f045a4735 - 5b077a0ab90992d9763c5b120b22c9d7 - ) + (rewrite sending of reg. mails) -- Cron scripts are not executed - (no automatic logouts, no K generation, ...) - -- fix uploading of files +- Cron scripts are not executed (most of them should be OK now) + (no automatic logouts, no K generation, ...) - fix ALL sql injections @@ -29,11 +22,33 @@ - Suspected security holes: ( cron/process-img.sh ) - ( sms_payment.php => yes, sqli but is it really used? ) - ( inc/eventz/upload_data_node.php => Shell injections in .zip handling, .jpg handling, - "strange" filenames like .htacess (to allow listing of folder) + ( ./inc/eventz/spamuj_ubik.inc ) + ( ./inc/eventz/upload_own_template.inc ) (is even needed?) -- Implement URL handling using PATH_INFO instead of mod_rewrite +- Remove eventz (and files) that are not used (verify this before removing) + ( ./inc/eventz/login_lockout_test.inc ) + ( ./inc/eventz/add_test.inc ) + ( ./inc/eventz/add_ubik_friend.inc ) + ( ./inc/eventz/cron_test.inc ) + ( ./inc/eventz/login_lockout_test.inc ) + ( ./inc/eventz/login_test.inc ) + ( ./inc/eventz/mail_test.inc ) + ( ./inc/eventz/test_button.inc ) + ( ./inc/eventz/testing_cron.inc ) + ( ./inc/eventz/testm.inc ) + ( ./inc/eventz/send-old.inc ) + ( ./inc/eventz/destroy_synapse2.inc ) + ( ./inc/eventz/login2.inc ) + ( ./inc/eventz/send2.inc ) + ( ./inc/eventz/set_parent2.inc ) + +- Remove/fix not working eventz + ( ./inc/eventz/addClass.inc ) + ( ./inc/eventz/addEvent.inc ) + ( ./inc/eventz/addAjax.inc ) + ( ./inc/eventz/addPlugin.inc ) + ( ./inc/eventz/kyberia.inc ) (wtf) + - Refactor directory structure @@ -45,3 +60,13 @@ - documentation/installation guide (see README) - Clean code => fix uninitialized variables + +- Implement URL handling using PATH_INFO instead of mod_rewrite + +- (IMHO we should use SHA1 or stronger algorithm instead of MD5 for storing passwords) + (We can use multiple hash algorithms (so we'll have backward DB compatibility): + {SHA256}0654209dbde29a5c17e4f04ab63a91d303d2e7c791c7b5777581a7fa6550054e + {SHA1}f67c52c4a27cf05c99e4f3f946d6500f045a4735 + 5b077a0ab90992d9763c5b120b22c9d7 + ) Harvie + diff --git a/wwwroot/inc/eventz/addClass.inc b/wwwroot/inc/eventz/addClass.inc index bd7d1ce..7812b4f 100644 --- a/wwwroot/inc/eventz/addClass.inc +++ b/wwwroot/inc/eventz/addClass.inc @@ -1,4 +1,7 @@ query($q); diff --git a/wwwroot/inc/eventz/configure_image_new.inc b/wwwroot/inc/eventz/configure_image_new.inc deleted file mode 100644 index d494fe9..0000000 --- a/wwwroot/inc/eventz/configure_image_new.inc +++ /dev/null @@ -1,94 +0,0 @@ - \ No newline at end of file diff --git a/wwwroot/inc/eventz/debugging.inc b/wwwroot/inc/eventz/debugging.inc index e566eea..6a1de8f 100644 --- a/wwwroot/inc/eventz/debugging.inc +++ b/wwwroot/inc/eventz/debugging.inc @@ -1,4 +1,7 @@ - - - - - - diff --git a/wwwroot/inc/eventz/upload_own_template.inc b/wwwroot/inc/eventz/upload_own_template.inc index fb14d27..d2d1a1a 100644 --- a/wwwroot/inc/eventz/upload_own_template.inc +++ b/wwwroot/inc/eventz/upload_own_template.inc @@ -1,4 +1,7 @@ query("update nodes set node_template='$node_template' where node_id='$node_id'"); } -?> \ No newline at end of file +?> diff --git a/wwwroot/inc/filez.inc b/wwwroot/inc/filez.inc index b049320..d068cae 100644 --- a/wwwroot/inc/filez.inc +++ b/wwwroot/inc/filez.inc @@ -1,7 +1,9 @@ 0) { + return false; + } + return true; +} + } /* @@ -43,4 +61,4 @@ function disk_usage($d, $depth = NULL) { } -?> \ No newline at end of file +?> -- 2.30.2