« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 348 for UserName (0.004 sec.)
ファイルシステムのセキュリティ 7601
« セッションのセキュリティ Null バイト関連の問題 » PHP Manual セキュリティ ファイルシステムのセキュリティ 検索 ファイルシステムのセキュリティ 目次 Null バイト関連の問題 PHP は、ファイルおよびディレクトリ毎に権限を設定する多くのサーバーシ ス ... あるファイルを削除可能です。 例1 甘い変数の確認から生じるリスク <?php // ユーザーのホームディレクトリからファイルを削除する $username = $_POST [ 'user_submitted_name' ]; $userfile = $_POST [ 'user_submitted_filename' ]; $homedir = "/home/ $username " ; unl ... ink ( " $homedir / $userfile " ); echo "ファイルは削除されました!" ; ?> username および filename はユーザーフォームから投稿可能であるため、別の username および filename を投稿して 削除すべきではない削除す ... 撃 <?php // 外部からPHPユーザーがアクセス可能なハードドライブを削除します。PHPが // ルートのアクセス権限を有している場合、 $username = $_POST [ 'user_submitted_name' ]; // "../etc" $userfile = $_POST [ 'user_submitted_filename' ]; // "passwd" $homedir = " ...
https://man.mtool.work/php/8.3/security.filesystem.html
ファイルシステムのセキュリティ 7547
« セッションのセキュリティ Null バイト関連の問題 » PHP Manual セキュリティ ファイルシステムのセキュリティ 検索 ファイルシステムのセキュリティ 目次 Null バイト関連の問題 PHP は、ファイルおよびディレクトリ毎に権限を設定する多くのサーバーシ ス ... あるファイルを削除可能です。 例1 甘い変数の確認から生じるリスク <?php // ユーザーのホームディレクトリからファイルを削除する $username = $_POST [ 'user_submitted_name' ]; $userfile = $_POST [ 'user_submitted_filename' ]; $homedir = "/home/ $username " ; unl ... ink ( " $homedir / $userfile " ); echo "ファイルは削除されました!" ; ?> username および filename はユーザーフォームから投稿可能であるため、別の username および filename を投稿して 削除すべきではない削除す ... 撃 <?php // 外部からPHPユーザーがアクセス可能なハードドライブを削除します。PHPが // ルートのアクセス権限を有している場合、 $username = $_POST [ 'user_submitted_name' ]; // "../etc" $userfile = $_POST [ 'user_submitted_filename' ]; // "passwd" $homedir = " ...
https://man.mtool.work/php/8.3/security.filesystem.html
Script Injection Attacks 7430
« Request Injection Attacks MongoDB\Driver » PHP Manual Security Script Injection Attacks 検索 Script Injection Attacks If you are using JavaScript, make sure that any variables that cross the PHP- to-JavaScript boundary are passed in the s ... JavaScript to greet a user in the database logs. We could do: <?php $m = new MongoDB\Driver\Manager ; // Don't do this!!! $username = $_GET [ 'field' ]; $cmd = new \MongoDB\Driver\Command ( [ 'eval' => "print('Hello, $username !');" ] ); $r = $m -> execu ... However, what if a malicious user passes in some JavaScript? <?php $m = new MongoDB\Driver\Manager ; // Don't do this!!! $username = $_GET [ 'field' ]; // $username is set to "'); db.users.drop(); print('" $cmd = new \MongoDB\Driver\Command ( [ 'eval' = ... > "print('Hello, $username !');" ] ); $r = $m -> executeCommand ( 'dramio' , $cmd ); ?> Now MongoDB executes the JavaScript string "print('Hello, '); ...
https://man.mtool.work/php/8.3/mongodb.security.script_injection.html
Script Injection Attacks 7376
« Request Injection Attacks MongoDB\Driver » PHP Manual Security Script Injection Attacks 検索 Script Injection Attacks If you are using JavaScript, make sure that any variables that cross the PHP- to-JavaScript boundary are passed in the s ... JavaScript to greet a user in the database logs. We could do: <?php $m = new MongoDB\Driver\Manager ; // Don't do this!!! $username = $_GET [ 'field' ]; $cmd = new \MongoDB\Driver\Command ( [ 'eval' => "print('Hello, $username !');" ] ); $r = $m -> execu ... However, what if a malicious user passes in some JavaScript? <?php $m = new MongoDB\Driver\Manager ; // Don't do this!!! $username = $_GET [ 'field' ]; // $username is set to "'); db.users.drop(); print('" $cmd = new \MongoDB\Driver\Command ( [ 'eval' = ... > "print('Hello, $username !');" ] ); $r = $m -> executeCommand ( 'dramio' , $cmd ); ?> Now MongoDB executes the JavaScript string "print('Hello, '); ...
https://man.mtool.work/php/8.3/mongodb.security.script_injection.html
ホスト公開鍵を使用して認証を行う 7322
« ssh2_auth_agent ssh2_auth_none » PHP Manual SSH2 関数 ホスト公開鍵を使用して認証を行う 検索 ssh2_auth_hostbased_file (PECL ssh2 >= 0.9.0) ssh2_auth_hostbased_file — ホスト公開鍵を使用して認証を行う 説明 function ssh2_auth_hostbased_file ( ... resource $session , string $username , string $hostname , string $pubkeyfile , string $privkeyfile , string $passphrase = ? , string $local_username = ? ): boo ... まれたホスト公開鍵を使用して認証を行います。 パラメータ session ssh2_connect() のコールによって取得した SSH 接続リンク ID。 username hostname pubkeyfile privkeyfile passphrase もし privkeyfile が暗号化されている (そのはずです) 場合、パスフレーズを渡す必要 ... があります。 local_username もし local_username を省略した場合、 username の値を使用します。 戻り値 成功した場合に true を、失敗した場合に false を返し ...
https://man.mtool.work/php/8.3/function.ssh2-auth-hostbased-file.html
Request Injection Attacks 7322
« Security Script Injection Attacks » PHP Manual Security Request Injection Attacks 検索 Request Injection Attacks If you are passing $_GET (or $_POST ) parameters to your queries, make sure that they are cast to strings first. Users can in ... eries. A fairly innocuous example: suppose you are looking up a user's information with the request http://www.example.com?username=bob . Your application creates the query $q = new \MongoDB\Driver\Query( [ 'username' => $_GET['username'] ]) . Someone co ... uld subvert this by getting http://www.example.com?username[$ne]=foo , which PHP will magically turn into an associative array, turning your query into $q = new \MongoDB\Driver\Query ... ( [ 'username' => [ '$ne' => 'foo' ] ] ) , which will return all users not named "foo" (all of your users, probably). This is a fairly e ...
https://man.mtool.work/php/8.3/mongodb.security.request_injection.html
Request Injection Attacks 7322
« Security Script Injection Attacks » PHP Manual Security Request Injection Attacks 検索 Request Injection Attacks If you are passing $_GET (or $_POST ) parameters to your queries, make sure that they are cast to strings first. Users can in ... eries. A fairly innocuous example: suppose you are looking up a user's information with the request http://www.example.com?username=bob . Your application creates the query $q = new \MongoDB\Driver\Query( [ 'username' => $_GET['username'] ]) . Someone co ... uld subvert this by getting http://www.example.com?username[$ne]=foo , which PHP will magically turn into an associative array, turning your query into $q = new \MongoDB\Driver\Query ... ( [ 'username' => [ '$ne' => 'foo' ] ] ) , which will return all users not named "foo" (all of your users, probably). This is a fairly e ...
https://man.mtool.work/php/8.3/mongodb.security.request_injection.html
ユーザー名に対する、サービスへのアクセス権を追加する 7268
« win32service 関数 win32_add_service_env_var » PHP Manual win32service 関数 ユーザー名に対する、サービスへのアクセス権を追加する 検索 win32_add_right_access_service (PECL win32service >=1.1.0) win32_add_right_access_service — ユーザー名に対 ... する、サービスへのアクセス権を追加する 説明 function win32_add_right_access_service ( string $servicename , string $username , int $right , string $machine = null ): void servicename 上の username に、アクセス権を追加します。 これが成功するには、管 ... 理者権限が必要です。 パラメータ servicename アクセス権を追加するサービス名 username username のためのアクセス権を読み取ります right username に許可するアクセス権。 この値を定義するために 定数 の値が使えます ... n32Service\RightInfo オブジェクトを返します。 エラー / 例外 service パラメータが空の場合は、 ValueError がスローされます。 username パラメータが空の場合は、 ValueError がスローされます。 エラー時には Win32ServiceException がスローされます。 参考 win32_re ...
https://man.mtool.work/php/8.3/function.win32-add-right-access-service.html
ホスト公開鍵を使用して認証を行う 7268
« ssh2_auth_agent ssh2_auth_none » PHP Manual SSH2 関数 ホスト公開鍵を使用して認証を行う 検索 ssh2_auth_hostbased_file (PECL ssh2 >= 0.9.0) ssh2_auth_hostbased_file — ホスト公開鍵を使用して認証を行う 説明 function ssh2_auth_hostbased_file ( ... resource $session , string $username , string $hostname , string $pubkeyfile , string $privkeyfile , string $passphrase = ? , string $local_username = ? ): boo ... まれたホスト公開鍵を使用して認証を行います。 パラメータ session ssh2_connect() のコールによって取得した SSH 接続リンク ID。 username hostname pubkeyfile privkeyfile passphrase もし privkeyfile が暗号化されている (そのはずです) 場合、パスフレーズを渡す必要 ... があります。 local_username もし local_username を省略した場合、 username の値を使用します。 戻り値 成功した場合に true を、失敗した場合に false を返し ...
https://man.mtool.work/php/8.3/function.ssh2-auth-hostbased-file.html
ユーザー名に対する、サービスへのアクセス権を追加する 7214
« win32service 関数 win32_add_service_env_var » PHP Manual win32service 関数 ユーザー名に対する、サービスへのアクセス権を追加する 検索 win32_add_right_access_service (PECL win32service >=1.1.0) win32_add_right_access_service — ユーザー名に対 ... する、サービスへのアクセス権を追加する 説明 function win32_add_right_access_service ( string $servicename , string $username , int $right , string $machine = null ): void servicename 上の username に、アクセス権を追加します。 これが成功するには、管 ... 理者権限が必要です。 パラメータ servicename アクセス権を追加するサービス名 username username のためのアクセス権を読み取ります right username に許可するアクセス権。 この値を定義するために 定数 の値が使えます ... n32Service\RightInfo オブジェクトを返します。 エラー / 例外 service パラメータが空の場合は、 ValueError がスローされます。 username パラメータが空の場合は、 ValueError がスローされます。 エラー時には Win32ServiceException がスローされます。 参考 win32_re ...
https://man.mtool.work/php/8.3/function.win32-add-right-access-service.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT