게시글 CSRF 취약점(16-749 16-750) 수정

This commit is contained in:
chicpro committed 2016-10-17 14:47:45 +09:00
1 parent ce0a6dc3af
commit e99c7a81db
6 files changed
+92 -2

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
<?php
include_once('./_common.php');
include_once(G5_LIB_PATH.'/json.lib.php');
if(!$bo_table)
die(json_encode(array('error'=>'게시판 정보가 올바르지 않습니다.', 'url'=>G5_URL)));
set_session('ss_write_'.$bo_table.'_token', '');
$token = get_write_token($bo_table);
die(json_encode(array('error'=>'', 'token'=>$token, 'url'=>'')));
?>