Language: PHP
Label: vulnerable
CWE: CWE-77 \u2014 Improper Neutralization of Special Elements used in a Command ('Command Injection')
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

Code:
	private function initAccessToken(){
		$action = strtolower(ACTION);
		$disableCookie = array(
			'explorer.index.filedownload',
			'explorer.index.fileout',
			'explorer.share.filedownload',
			'explorer.share.fileout',
		);
		$enableCookie = array('user.index.index');
		if(in_array($action,$enableCookie)){Cookie::disable(false);} // 带token的url跳转入口页面允许cookie输出;
		if(in_array($action,$disableCookie)){Cookie::disable(true);allowCROS();}
	}