« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for dramio (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 ... ield' ]; $cmd = new \MongoDB\Driver\Command ( [ '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' ... print('" $cmd = new \MongoDB\Driver\Command ( [ 'eval' => "print('Hello, $username !');" ] ); $r = $m -> executeCommand ( 'dramio' , $cmd ); ?> Now MongoDB executes the JavaScript string "print('Hello, '); db.users.drop(); print('!');" . This attack is ... => "function greet(username) { print('Hello, ' + username + '!'); }" , 'args' => $args , ] ); $r = $m -> executeCommand ( 'dramio' , $cmd ); ?> This adds an argument to the JavaScript scope, which gets used as argument for the greet function. Now if so ...
https://man.mtool.work/php/8.3/mongodb.security.script_injection.html
Application Performance Monitoring (APM) | PHP 8.3 7485
Application Performance Monitoring (APM) The extension contains an event subscriber API, which allows applications to monitor commands and internal activity pertaining to the » Server Discovery and Monitoring Specification . This tutorial w ... DB\Driver\Query ( [ 'region_slug' => 'scotland-highlands' , 'age' => [ '$gte' => 20 ] ] ); $cursor = $m -> executeQuery ( 'dramio.whisky' , $query ); $query = new \MongoDB\Driver\Query ( [ 'region_slug' => 'scotland-lowlands' , 'age' => [ '$gte' => 15 ... ] ] ); $cursor = $m -> executeQuery ( 'dramio.whisky' , $query ); $query = new \MongoDB\Driver\Query ( [ 'region_slug' => 'scotland-lowlands' ] ); $cursor = $m -> execu ... teQuery ( 'dramio.whisky' , $query ); ?> ...
https://man.mtool.work/php/8.3/mongodb.tutorial.apm.html
PREV 1 NEXT