Version: SVN revision 1699, 2007-10-10 14:10:13
Date of run: 2008-06-07 12:51
| Hostname: | foreninger.uio.no |
| Vortex authentication host: | localhost |
| Vortex authentication port: | 9005 |
| Vortex authentication method: | authorizeWithOwnership |
| Vortex authentication vhost name: | foreninger.uio.no |
| Vortex data dir: | /usit/flipp/vortex/data/foreninger_uio_no |
| Vortex username: | [NOT LOGGED IN] Warning: this script should be run as user 'vortex@localhost', so that Vortex permissions can be tested properly. Some security-related tests will fail. |
| PHP info | here |
| # | Description | Expected result | Actual result | Error message | Result |
| 1 | Try to read contents of file named 'read-me.txt' in its entirety | File contents should be read without problems | Correct file content read successfully | -- | OK |
| 2 | List and verify contents of directory 'list-me' using opendir() and readdir() | Directory entries can be read and are as expected | Directory entries verified OK | -- | OK |
| 3 | Open file using relative path 'dir/file1.txt' | File can be opened | File opened successfully | -- | OK |
| 4 | Open file using relative path './dir/../another-file.txt' | File can be opened | File opened successfully | -- | OK |
| 5 | Open file using absolute path '/usit/flipp/vortex/data/foreninger_uio_no/vrtx/php/livetest/modules/00-basic/dir/file1.txt' | File can be opened | File opened successfully | -- | OK |
| 6 | Change working directory to 'dir' and try to open file 'file1.txt' | File can be opened relative to new working directory | File opened successfully relative to new working directory | -- | OK |
| 7 | Include/execute PHP script code from file 'include-me.php' using include() | Included file is executed properly | Included code executed successfully | -- | OK |
| 8 | Open file with non-ASCII characters in it: 'a file with spaces and weird characters in it øæåØÆÅ @+.txt' | File can be opened | File was opened successfully | -- | OK |
| 9 | Execute a PHP script with a name containing non-ASCII characters: 'æøåscript.php' | Executing script should work | Failed to execute script | HTTP response-code: 404, message: 'Not Found' (this is a known bug) | FAILED |
Module has failed tests !
| # | Description | Expected result | Actual result | Error message | Result |
| 1 | Simple file open in mode 'r' | File can be opened | File was opened successfully in mode 'r' | -- | OK |
| 2 | Simple file open in mode 'rb' | File can be opened | File was opened successfully in mode 'rb' | -- | OK |
| 3 | Simple file open in mode 'rt' | File can be opened | File was opened successfully in mode 'rt' | -- | OK |
| 4 | Simple file open in mode 'rw' | Opening file should not be allowed | File opening failed in mode 'rw' | -- | OK |
| 5 | Simple file open in mode 'r+' | Opening file should not be allowed | File opening failed in mode 'r+' | -- | OK |
| 6 | Simple file open in mode 'w' | Opening file should not be allowed | File opening failed in mode 'w' | -- | OK |
| 7 | Simple file open in mode 'w+' | Opening file should not be allowed | File opening failed in mode 'w+' | -- | OK |
| 8 | Simple file open in mode 'a' | Opening file should not be allowed | File opening failed in mode 'a' | -- | OK |
| 9 | Simple file open in mode 'a+' | Opening file should not be allowed | File opening failed in mode 'a+' | -- | OK |
| 10 | Simple file open in mode 'x' | Opening file should not be allowed | File opening failed in mode 'x' | -- | OK |
| 11 | Simple file open in mode 'x+' | Opening file should not be allowed | File opening failed in mode 'x+' | -- | OK |
All module tests passed.
| # | Description | Expected result | Actual result | Error message | Result |
| 1 | Try to open directory 'not-readable-by-vortex@localhost' that is not readable by 'vortex@localhost' | Opening directory should fail | Error in test module! | Missing test resource: http://foreninger.uio.no:80/vrtx/php/livetest/modules/02-security-vortex-permissions/not-readable-by-vortex@localhost | FAILED |
| 2 | Try to open file 'not-readable-by-vortex@localhost.txt' that is not readable by 'vortex@localhost' | Opening file should fail | Error in test module! | Missing test resource: http://foreninger.uio.no:80/vrtx/php/livetest/modules/02-security-vortex-permissions/not-readable-by-vortex@localhost.txt | FAILED |
| 3 | Try to open directory 'readable-by-everyone' that is readable by everyone | Directory can be opened | Directory was opened successfully | -- | OK |
| 4 | Try to open file 'readable-by-everyone.txt' that is readable by everyone | File can be opened | File was opened successfully | -- | OK |
| 5 | Try to open file 'readable-by-everyone.txt' that is readable by everyone, as an anonymous user by temporarily hiding JSESSIONID | File can be opened | File was opened successfully | -- | OK |
| 6 | Try to open file 'not-readable-by-anyone.txt' that is not readable by anyone | Opening file should fail | Error in test module! | Missing test resource: http://foreninger.uio.no:80/vrtx/php/livetest/modules/02-security-vortex-permissions/not-readable-by-anyone.txt | FAILED |
| 7 | Try to open directory 'readable-only-by-vortex@localhost' that is only readable by 'vortex@localhost' | Directory can be opened | Error in test module! | Missing test resource: http://foreninger.uio.no:80/vrtx/php/livetest/modules/02-security-vortex-permissions/readable-only-by-vortex@localhost | FAILED |
| 8 | Try to open file 'readable-only-by-vortex@localhost.txt' that is only readable by 'vortex@localhost' | File can be opened | Error in test module! | Missing test resource: http://foreninger.uio.no:80/vrtx/php/livetest/modules/02-security-vortex-permissions/readable-only-by-vortex@localhost.txt | FAILED |
| 9 | Try to open file 'readable-only-by-vortex@localhost.txt' as an anonymous user by temporarily hiding JSESSIONID | Opening file should fail | Error in test module! | Missing test resource: http://foreninger.uio.no:80/vrtx/php/livetest/modules/02-security-vortex-permissions/readable-only-by-vortex@localhost.txt | FAILED |
| 10 | Try to open file that is only readable processed by anyone | File can be opened | Opening file succeeded | -- | OK |
| 11 | Try to execute an external PHP script 'executable-only-read-processed.php' that is only readable processed by anyone | Executing script should work | Script was executed successfully | -- | OK |
| 12 | Try to open file 'owned-by-vortex@localhost.txt' which has a different owner than that of the running PHP script | Opening file should fail | Error in test module! | Missing test resource: http://foreninger.uio.no:80/vrtx/php/livetest/modules/02-security-vortex-permissions/owned-by-vortex@localhost.txt | FAILED |
Module has failed tests !
| # | Description | Expected result | Actual result | Error message | Result |
| 1 | Execute command '/bin/ls' using system() | Should not work | Function call failed | -- | OK |
| 2 | Execute command '/bin/echo hello from passthru' using passthru() | Should not work | Function call failed | -- | OK |
| 3 | Execute command '/bin/ls -a' using popen('/bin/ls -a', 'r') | Should not work | Function call failed | -- | OK |
| 4 | Execute command '/bin/ls -a' using proc_open('/bin/ls -a', 'r', ...) | Should not work | Function call failed | -- | OK |
| 5 | Execute command '/bin/ls -a' using exec('/bin/ls -a') | Should not work | Function call failed | -- | OK |
| 6 | Function call: yp_get_default_domain() | Should not work | Function was not defined | -- | OK |
| 7 | Dispatch message to logging system by using syslog() | Should not work | Function call failed | -- | OK |
| 8 | Trying to set php.ini option using ini_set() and ini_alter() | Should not work | Function calls failed | -- | OK |
| 9 | Trying to get a php.ini option value using ini_get() | Should not work | Function call failed | -- | OK |
| 10 | Trying to get a php.ini option value using get_cfg_var('safe_mode') | Should not work | Function call failed | -- | OK |
| 11 | Trying to call ini_restore('safe_mode_exec_dir') | Should not work | Function call failed | -- | OK |
| 12 | Try to delete readable file 'try-to-delete-me.txt' using unlink() | File should not be deleted | File could not be deleted | -- | OK |
| 13 | Try to rename file 'try-to-rename-me.txt' using rename() | File should not be renamed | File could not be renamed | -- | OK |
| 14 | Try to change group owner of file 'change-my-group.txt' using chgrp() | Group should not be changed | Group change failed | -- | OK |
| 15 | Try to change owner of file 'change-my-owner.txt' using chown() | Function call should fail | Function call failed | -- | OK |
| 16 | Try to change permissions of file 'change-my-permissions.txt' using chmod() | Function call should fail | Function call failed | -- | OK |
| 17 | Try to copy file 'copy-me.txt' to new file 'copy-me(2).txt' using copy() | Copy operation should not succeed | Function call failed and no file was copied | -- | OK |
| 18 | Try to obtain an exclusive advisory lock on file 'flock-me.txt' (after opening it) using flock() | Function call should fail | Function call failed | -- | OK |
| 19 | Try to create a new directory named 'mkdir-created-me' using mkdir() | New directory should not be created | Function call failed, no new directory created | -- | OK |
| 20 | Try to remove empty directory named 'rmdir-me' using rmdir() | Directory should not be removed | Directory could not be removed | -- | OK |
| 21 | Try to create a symbolic link to file 'symlink-me.txt' named 'symlink-to-symlink-me.txt' using symlink() | Symlinking to file should not work | Symlinking failed | -- | OK |
| 22 | Try to create a new and empty file named 'touched-by-php.txt' using touch() | Creating new file should not work | File could not be created | -- | OK |
| 23 | Try to update timestamp of existing file named 'touch-me.txt' using touch() | Updating timestamp of file should not work | Timestamp could not be updated | -- | OK |
All module tests passed.
| # | Description | Expected result | Actual result | Error message | Result |
| 1 | Test POST-request with 'application/x-www-form-urlencoded' data to script 'POST-test.php' | POST-request should work, the script should echo out all variables sent to it | POST request succeeded, all variables verified | -- | OK |
All module tests passed.
Warning: only 48 / 56 test(s) passed.