Results of 1 - 9 of about 9 for Attack (0.001 sec.)
- Request Injection Attacks | PHP 8.3 13571
- 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 insert associative arrays in GET and POST requests, which could then become unwanted $-quer
... [ '$ne' => 'foo' ] ] ) , which will return all users not named "foo" (all of your users, probably). This is a fairly easy attack to defend against: make sure $_GET and $_POST parameters are the type you expect before you send them to the database. PHP ... has the filter_var() function to assist with this. Note that this type of attack can be used with any database interaction that locates a document, including updates, upserts, deletes, and findAndModify ...
-
https://man.mtool.work/php/8.3/mongodb.security.request_injection.html
- sodium_crypto_stream_xchacha20_xor — nonce と秘密鍵を使ってメッセージを暗号化す... 9508
- sodium_crypto_stream_xchacha20_xor (PHP 8 >= 8.1.0) sodium_crypto_stream_xchacha20_xor — nonce と秘密鍵を使ってメッセージを暗号化する(認証なし) 説明 function sodium_crypto_stream_xchacha20_xor ( #[ \SensitiveParameter ] string $message , st
... を使って message を暗号化します(認証はありません) 警告 この暗号化処理は認証を行いませんし、 選択暗号文攻撃(chosen-ciphertext attack) を防ぐことができません。 必ず暗号化されたテキストを認証コードと組み合わせるようにして下さい。 たとえば、 sodium_crypto_ae ...
-
https://man.mtool.work/php/8.3/function.sodium-crypto-stream-xchacha20-xor.html
- ssh2_fingerprint — リモートサーバーのフィンガープリントを処理する | PHP 8.3 9508
- ssh2_fingerprint (PECL ssh2 >= 0.9.0) ssh2_fingerprint — リモートサーバーのフィンガープリントを処理する 説明 function ssh2_fingerprint ( resource $session , int $flags = SSH2_FINGERPRINT_MD5 | SSH2_FINGERPRINT_HEX ): string アクティブなセッ
... D5 | SSH2_FINGERPRINT_HEX ); if ( $fingerprint != $known_host ) { die( "HOSTKEY MISMATCH!\n" . "Possible Man-In-The-Middle Attack?" ); } ?> 他のマニュアルの関連ページ Linux JM yppoll(8) Linux JM ripquery(8) Linux JM showmount(8) Python smtplib Linux JM ...
-
https://man.mtool.work/php/8.3/function.ssh2-fingerprint.html
- Script Injection Attacks | PHP 8.3 8879
- Script Injection Attacks If you are using JavaScript, make sure that any variables that cross the PHP- to-JavaScript boundary are passed in the scope field of MongoDB\BSON\Javascript , not interpolated into the JavaScript string. This can c
... ( 'dramio' , $cmd ); ?> Now MongoDB executes the JavaScript string "print('Hello, '); db.users.drop(); print('!');" . This attack is easy to avoid: use args to pass variables from PHP to JavaScript: <?php $m = new MongoDB\Driver\Manager ; $_GET [ 'fiel ...
-
https://man.mtool.work/php/8.3/mongodb.security.script_injection.html
- sodium_crypto_stream_xchacha20_xor_ic — nonce と秘密鍵を使ってメッセージを暗号... 8556
- sodium_crypto_stream_xchacha20_xor_ic (PHP 8 >= 8.2.0) sodium_crypto_stream_xchacha20_xor_ic — nonce と秘密鍵を使ってメッセージを暗号化する(認証なし) 説明 function sodium_crypto_stream_xchacha20_xor_ic ( #[ \SensitiveParameter ] string $mes
... 直接任意のブロックにアクセスすることができます。 警告 この暗号化処理は認証を行いませんし、 選択暗号文攻撃(chosen-ciphertext attack) を防ぐことができません。 必ず暗号化されたテキストを認証コードと組み合わせるようにして下さい。 たとえば、 sodium_crypto_ae ...
-
https://man.mtool.work/php/8.3/function.sodium-crypto-stream-xchacha20-xor-ic.ht...
- MongoDB\Driver\Manager::__construct — Create new MongoDB Manager | PHP 8.3 8250
- MongoDB\Driver\Manager::__construct (mongodb >=1.0.0) MongoDB\Driver\Manager::__construct — Create new MongoDB Manager 説明 final public function MongoDB\Driver\Manager::__construct ( ? string $uri = null , ? array $uriOptions = null , ? ar
... certificate validation creates a vulnerability. Allowing invalid hostnames may expose the driver to a » man-in-the-middle attack . tlsCAFile string Path to file with either a single or bundle of certificate authorities to be considered trusted when ma ... certificate validation creates a vulnerability. Allowing invalid hostnames may expose the driver to a » man-in-the-middle attack . username string The username for the user being authenticated. This option is useful if the username contains special ch ...
-
https://man.mtool.work/php/8.3/mongodb-driver-manager.construct.html
- openssl_encrypt — データを暗号化する | PHP 8.3 7927
- openssl_encrypt (PHP 5 >= 5.3.0, PHP 7, PHP 8) openssl_encrypt — データを暗号化する 説明 function openssl_encrypt ( #[ \SensitiveParameter ] string $data , string $cipher_algo , #[ \SensitiveParameter ] string $passphrase , int $options = 0
... ac = hash_hmac ( 'sha256' , $ciphertext_raw , $key , $as_binary = true ); if ( hash_equals ( $hmac , $calcmac )) // timing attack safe comparison { echo $original_plaintext . "\n" ; } ?> 参考 openssl_decrypt() - データを復号する 他のマニュアルの関連ペー ...
-
https://man.mtool.work/php/8.3/function.openssl-encrypt.html
- POST メソッドによるアップロード | PHP 8.3 7315
- POST メソッドによるアップロード この機能により、テキスト、バイナリファイルの両方をアップロードできるように なります。 PHP の認証機構およびファイル操作関数を用いて、アップロードを許可する ユーザーとアップロード後にそのファイルを使用して行う動
... tmp_name' ], $uploadfile )) { echo "File is valid, and was successfully uploaded.\n" ; } else { echo "Possible file upload attack!\n" ; } echo 'Here is some more debugging info:' ; print_r ( $_FILES ); print "</pre>" ; ?> アップロードされたファイルを受 ...
-
https://man.mtool.work/php/8.3/features.file-upload.post-method.html
- htmlspecialchars — 特殊文字を HTML エンティティに変換する | PHP 8.3 7315
- htmlspecialchars (PHP 4, PHP 5, PHP 7, PHP 8) htmlspecialchars — 特殊文字を HTML エンティティに変換する 説明 function htmlspecialchars ( string $string , int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 , ? string $encoding = null , b
... は有効な UTF-8 のバイト列ではありません。 $input = "atta\x80ck" ; // ENT_IGNORE は無効なバイトを黙って切り捨てます。出力: "attack" echo bin2hex ( htmlspecialchars ( $input , ENT_QUOTES | ENT_IGNORE , 'UTF-8' )), "\n" ; // 61747461636b // ENT_SUBSTITUTE ...
-
https://man.mtool.work/php/8.3/function.htmlspecialchars.html
PREV
1
NEXT