« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for malicious (0.001 sec.)
Script Injection Attacks | PHP 8.3 11228
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 ... and ( [ 'eval' => "print('Hello, $username !');" ] ); $r = $m -> executeCommand ( 'dramio' , $cmd ); ?> However, what if a malicious user passes in some JavaScript? <?php $m = new MongoDB\Driver\Manager ; // Don't do this!!! $username = $_GET [ 'field' ]; ... adds an argument to the JavaScript scope, which gets used as argument for the greet function. Now if someone tries to send malicious code, MongoDB will harmlessly print Hello, '); db.dropDatabase(); print('! . Using arguments helps to prevent malicious in ...
https://man.mtool.work/php/8.3/mongodb.security.script_injection.html
MongoDB\Driver\Manager::__construct — Create new MongoDB Manager | PHP 8.3 7485
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 ... Supplying a schemaMap provides more security than relying on JSON schemas obtained from the server. It protects against a malicious server advertising a false JSON schema, which could trick the client into sending unencrypted data that should be encrypte ... cryptedFieldsMap provides more security than relying on an encryptedFields obtained from the server. It protects against a malicious server advertising a false encryptedFields . extraOptions array The extraOptions relate to the mongocryptd process. The fo ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.construct.html
PREV 1 NEXT