VortexPHP automated live test

Version: SVN revision 1699, 2007-10-10 14:10:13

Date of run: 2007-11-11 9:06

System properties

Hostname:www.kjemi.uio.no
Vortex authentication host:localhost
Vortex authentication port:9005
Vortex authentication method:authorizeWithOwnership
Vortex authentication vhost name:www.kjemi.uio.no
Vortex data dir:/usit/flipp/vortex/data/www_kjemi_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 infohere

Running test modules

Module : 00-basic

#DescriptionExpected resultActual resultError messageResult
1Try to read contents of file named 'read-me.txt' in its entiretyFile contents should be read without problemsCorrect file content read successfully--OK
2List and verify contents of directory 'list-me' using opendir() and readdir()Directory entries can be read and are as expectedDirectory entries verified OK--OK
3Open file using relative path 'dir/file1.txt'File can be openedFile opened successfully--OK
4Open file using relative path './dir/../another-file.txt'File can be openedFile opened successfully--OK
5Open file using absolute path '/usit/flipp/vortex/data/www_kjemi_uio_no/vrtx/php/livetest/modules/00-basic/dir/file1.txt'File can be openedFile opened successfully--OK
6Change working directory to 'dir' and try to open file 'file1.txt'File can be opened relative to new working directoryFile opened successfully relative to new working directory--OK
7Include/execute PHP script code from file 'include-me.php' using include()Included file is executed properlyIncluded code executed successfully--OK
8Open file with non-ASCII characters in it: 'a file with spaces and weird characters in it øæåØÆÅ @+.txt'File can be openedFile was opened successfully--OK
9Execute a PHP script with a name containing non-ASCII characters: 'æøåscript.php'Executing script should workFailed to execute scriptHTTP response-code: 404, message: 'Not Found' (this is a known bug)FAILED

Module has failed tests !

Module : 01-basic-fopen-modes

#DescriptionExpected resultActual resultError messageResult
1Simple file open in mode 'r'File can be openedFile was opened successfully in mode 'r'--OK
2Simple file open in mode 'rb'File can be openedFile was opened successfully in mode 'rb'--OK
3Simple file open in mode 'rt'File can be openedFile was opened successfully in mode 'rt'--OK
4Simple file open in mode 'rw'Opening file should not be allowedFile opening failed in mode 'rw'--OK
5Simple file open in mode 'r+'Opening file should not be allowedFile opening failed in mode 'r+'--OK
6Simple file open in mode 'w'Opening file should not be allowedFile opening failed in mode 'w'--OK
7Simple file open in mode 'w+'Opening file should not be allowedFile opening failed in mode 'w+'--OK
8Simple file open in mode 'a'Opening file should not be allowedFile opening failed in mode 'a'--OK
9Simple file open in mode 'a+'Opening file should not be allowedFile opening failed in mode 'a+'--OK
10Simple file open in mode 'x'Opening file should not be allowedFile opening failed in mode 'x'--OK
11Simple file open in mode 'x+'Opening file should not be allowedFile opening failed in mode 'x+'--OK

All module tests passed.

Module : 02-security-vortex-permissions

#DescriptionExpected resultActual resultError messageResult
1Try to open directory 'not-readable-by-vortex@localhost' that is not readable by 'vortex@localhost'Opening directory should failOpening directory failed--OK
2Try to open file 'not-readable-by-vortex@localhost.txt' that is not readable by 'vortex@localhost'Opening file should failFile could not be opened--OK
3Try to open directory 'readable-by-everyone' that is readable by everyoneDirectory can be openedDirectory was opened successfully--OK
4Try to open file 'readable-by-everyone.txt' that is readable by everyoneFile can be openedFile was opened successfully--OK
5Try to open file 'readable-by-everyone.txt' that is readable by everyone, as an anonymous user by temporarily hiding JSESSIONIDFile can be openedFile was opened successfully--OK
6Try to open file 'not-readable-by-anyone.txt' that is not readable by anyoneOpening file should failFile could not be opened--OK
7Try to open directory 'readable-only-by-vortex@localhost' that is only readable by 'vortex@localhost'Directory can be openedDirectory could not be opened--FAILED
8Try to open file 'readable-only-by-vortex@localhost.txt' that is only readable by 'vortex@localhost'File can be openedFile could not be opened--FAILED
9Try to open file 'readable-only-by-vortex@localhost.txt' as an anonymous user by temporarily hiding JSESSIONIDOpening file should failFile could not be opened--OK
10Try to open file that is only readable processed by anyoneFile can be openedOpening file succeeded--OK
11Try to execute an external PHP script 'executable-only-read-processed.php' that is only readable processed by anyoneExecuting script should workScript was executed successfully--OK
12Try to open file 'owned-by-vortex@localhost.txt' which has a different owner than that of the running PHP scriptOpening file should failFile could not be opened--OK

Module has failed tests !

Module : 03-security-disabled-functions

#DescriptionExpected resultActual resultError messageResult
1Execute command '/bin/ls' using system()Should not workFunction call failed--OK
2Execute command '/bin/echo hello from passthru' using passthru()Should not workFunction call failed--OK
3Execute command '/bin/ls -a' using popen('/bin/ls -a', 'r')Should not workFunction call failed--OK
4Execute command '/bin/ls -a' using proc_open('/bin/ls -a', 'r', ...)Should not workFunction call failed--OK
5Execute command '/bin/ls -a' using exec('/bin/ls -a')Should not workFunction call failed--OK
6Function call: yp_get_default_domain()Should not workFunction was not defined--OK
7Dispatch message to logging system by using syslog()Should not workFunction call failed--OK
8Trying to set php.ini option using ini_set() and ini_alter()Should not workFunction calls failed--OK
9Trying to get a php.ini option value using ini_get()Should not workFunction call failed--OK
10Trying to get a php.ini option value using get_cfg_var('safe_mode')Should not workFunction call failed--OK
11Trying to call ini_restore('safe_mode_exec_dir')Should not workFunction call failed--OK
12Try to delete readable file 'try-to-delete-me.txt' using unlink()File should not be deletedFile could not be deleted--OK
13Try to rename file 'try-to-rename-me.txt' using rename()File should not be renamedFile could not be renamed--OK
14Try to change group owner of file 'change-my-group.txt' using chgrp()Group should not be changedGroup change failed--OK
15Try to change owner of file 'change-my-owner.txt' using chown()Function call should failFunction call failed--OK
16Try to change permissions of file 'change-my-permissions.txt' using chmod()Function call should failFunction call failed--OK
17Try to copy file 'copy-me.txt' to new file 'copy-me(2).txt' using copy()Copy operation should not succeedFunction call failed and no file was copied--OK
18Try to obtain an exclusive advisory lock on file 'flock-me.txt' (after opening it) using flock()Function call should failFunction call failed--OK
19Try to create a new directory named 'mkdir-created-me' using mkdir()New directory should not be createdFunction call failed, no new directory created--OK
20Try to remove empty directory named 'rmdir-me' using rmdir()Directory should not be removedDirectory could not be removed--OK
21Try to create a symbolic link to file 'symlink-me.txt' named 'symlink-to-symlink-me.txt' using symlink()Symlinking to file should not workSymlinking failed--OK
22Try to create a new and empty file named 'touched-by-php.txt' using touch()Creating new file should not workFile could not be created--OK
23Try to update timestamp of existing file named 'touch-me.txt' using touch()Updating timestamp of file should not workTimestamp could not be updated--OK

All module tests passed.

Module : 10-web

#DescriptionExpected resultActual resultError messageResult
1Test 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 itPOST request succeeded, all variables verified--OK

All module tests passed.

Summary

Warning: only 53 / 56 test(s) passed.