LoginSignup
0
0

More than 5 years have passed since last update.

CS-Cart: CSRF対策のsecurity_hashを取得するAPI

Last updated at Posted at 2015-12-16

CS-CartでCSRF対策に用いられるsecurity_hashの取得方法。

PHP
fn_generate_security_hash();
Smarty
{""|fn_generate_security_hash}
JavaScript
Tygh.security_hash

fn_generate_security_hashの実装を見る限り、CSRFトークンは使い捨てのワンタイムトークンではなく、セッションごとに作られる。つまり、セッション単位なら使い回しが可能。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0