instruction stringclasses 1
value | input stringlengths 184 34.9k | output stringclasses 2
values |
|---|---|---|
please judge the source code for vulnerabilities. | <form action=<double<underscore>quote>test.php<double<underscore>quote> method=<double<underscore>quote>POST<double<underscore>quote>><NEWLINE> 新パスワード<input name=<double<underscore>quote>pwd<double<underscore>quote> type=<double<underscore>quote>password<double<underscore>quote>><NEWLINE> <input type=<double<unde... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> session<underscore>start();<NEWLINE> if(session<underscore>id() === $<underscore>POST[<double<underscore>quote>token<double<underscore>quote>]{<NEWLINE> $id=$<underscore>SESSION[<double<underscore>quote>id<double<underscore>quote>];<NEWLINE> $pwd=$<underscore>POST[<double<underscore>q... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> public function validate<underscore>is<underscore>logined()<NEWLINE> {<NEWLINE> $session = $this<hyphen>>get<underscore>session();<NEWLINE> $param = $this<hyphen>>get<underscore>param();<NEWLINE> if (($this<hyphen>>get<underscore>page() == parent::PAGE<underscore>SETTING)<NEWLI... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> public function prepare<underscore>set<underscore>token() {<NEWLINE> <slash><slash> 中略<NEWLINE> $session[$this<hyphen>>get<underscore>login()][self::TOKEN] = session<underscore>id();<NEWLINE> $this<hyphen>>set<underscore>session($this<hyphen>>get<underscore>login(), $session[$this... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE>define(<single<underscore>quote>TMPLDIR<single<underscore>quote>, <single<underscore>quote><slash>var<slash>www<slash>dt<slash>tmpl<slash><single<underscore>quote>);<NEWLINE>if(isset($<underscore>GET[<single<underscore>quote>template<single<underscore>quote>])){<NEWLINE> <slash><slash> 修正したコード<NEWLINE>... | 0 |
please judge the source code for vulnerabilities. | public function proc<underscore>readfile()<NEWLINE>{<NEWLINE><slash><slash> 中略<NEWLINE> <slash><slash> リクエストパラメタを取得<NEWLINE> $param = $this<hyphen>>get<underscore>param();<NEWLINE> <slash><slash> リクエストパラメタからファイル名を取得<NEWLINE> $filename = (string)$param[parent::FILENAME];<NEWLINE> <slash><slash> ファイル名がセットさ... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> define(<single<underscore>quote>FILE<underscore>PATH<single<underscore>quote>, <single<underscore>quote><slash>var<slash>www<slash>dt<slash>tmpl<slash><single<underscore>quote>);<NEWLINE> $pathAndOldname= FILE<underscore>PATH . basename($<underscore>GET[<double<underscore>quote>oldname<double<under... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> define(<single<underscore>quote>FILE<underscore>PATH<single<underscore>quote>, <single<underscore>quote><slash>var<slash>www<slash>dt<slash>tmpl<slash><single<underscore>quote>);<NEWLINE> $pathAndOldname= FILE<underscore>PATH . basename($<underscore>GET[<double<underscore>quote>oldname<double<under... | 0 |
please judge the source code for vulnerabilities. | public function proc<underscore>rename<underscore>file()<NEWLINE>{<NEWLINE><slash><slash> 中略<NEWLINE> <slash><slash> 変更前と変更後のファイル名が異なる場合<NEWLINE> } else {<NEWLINE> <slash><slash> 変更前ファイル名をパス付きで指定<NEWLINE> $oldname = parent::GOODS<underscore>FILE<underscore>PATH. basename($oldname);<NEWLINE> <... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> <slash><slash>一度セッションIDを作成していると、そのセッションIDで開始される <NEWLINE> session<underscore>start();<NEWLINE> <slash><slash>ログイン処理後<NEWLINE> <slash><slash>安全な値でセッションIDを再発行<NEWLINE> session<underscore>regenerate<underscore>id();<NEWLINE> $<underscore>SESSION[<double<underscore>quote>id<double<underscor... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> <slash><slash>前略<NEWLINE> session<underscore>destroy();<NEWLINE> session<underscore>start();<NEWLINE> session<underscore>regenerate<underscore>id();<NEWLINE> <slash><slash>後略<NEWLINE>?> | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> session<underscore>start();<NEWLINE> <slash><slash>ログイン処理後<NEWLINE> <slash><slash>セッションIDの変更を行う<NEWLINE> session<underscore>regenerate<underscore>id(true);<NEWLINE> $<underscore>SESSION[<double<underscore>quote>id<double<underscore>quote>]=$<underscore>POST[<double<underscore>quote>id<doub... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> public function login()<NEWLINE> {<NEWLINE> $db = $this<hyphen>>get<underscore>db();<NEWLINE> $param = $this<hyphen>>get<underscore>param();<NEWLINE> $session = $this<hyphen>>get<underscore>session();<NEWLINE> $stmt = $db<hyphen>>prepare(parent::LOGIN<underscore>SQL);<NE... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> session<underscore>start();<NEWLINE> <slash><slash>ログイン処理後<NEWLINE> session<underscore>regenerate<underscore>id(true);<NEWLINE> <slash><slash>セッションを持たせてログインしていることが分かるようにする<NEWLINE> $<underscore>SESSION[<double<underscore>quote>id<double<underscore>quote>]=$<underscore>POST[<double<undersco... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> session<underscore>start();<NEWLINE> <slash><slash>セッション情報をもっていることを確認する<NEWLINE> if(isset($<underscore>SESSION[<double<underscore>quote>id<double<underscore>quote>]){<NEWLINE> print(<double<underscore>quote>ようこそ<double<underscore>quote>. $<underscore>SESSION[<double<underscore>quote>id<do... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> session<underscore>start();<NEWLINE> <slash><slash>ログイン処理後<NEWLINE> session<underscore>regenerate<underscore>id(true);<NEWLINE> <slash><slash>セッションを持たせてログインしていることが分かるようにする<NEWLINE> $<underscore>SESSION[<double<underscore>quote>id<double<underscore>quote>]=$<underscore>POST[<double<undersco... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> session<underscore>start();<NEWLINE> <slash><slash>権限がadminであることを確認する<NEWLINE> if($<underscore>SESSION[<double<underscore>quote>auth<double<underscore>quote>]==<double<underscore>quote>admin<double<underscore>quote>){<NEWLINE> $price=$<underscore>POST[<double<underscore>quote>price<double... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> public function validate<underscore>is<underscore>logined<underscore>admin()<NEWLINE> {<NEWLINE> $session = $this<hyphen>>get<underscore>session();<NEWLINE> if (!(in<underscore>array((string)$this<hyphen>>get<underscore>page(), $this<hyphen>><underscore>non<underscore>login<underscore... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> <slash><slash>リダイレクト関数を定義する<NEWLINE> function redirect($url) {<NEWLINE> <slash><slash>URLとして不適切な文字があればエラーとして処理を停止する<NEWLINE> if(preg<underscore>match(<single<underscore>quote><slash><backslash>r|<backslash>n<slash><single<underscore>quote>, $url)) {<NEWLINE> die(<single<unders... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE><slash><slash> 前処理略<NEWLINE><slash><slash> ヘッダ出力処理あり(脆弱性対策コード)<NEWLINE>header(<double<underscore>quote>X<hyphen>Frame<hyphen>Options: SAMEORIGIN<double<underscore>quote>);<NEWLINE><slash><slash> 後処理略<NEWLINE>?> | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE><slash><slash> 前処理略<NEWLINE><slash><slash> ヘッダ出力処理<NEWLINE>header(<double<underscore>quote>X<hyphen>Frame<hyphen>Options: SAMEORIGIN<double<underscore>quote>);<NEWLINE><slash><slash> 後処理略<NEWLINE>?> | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE> $body = $<underscore>GET[<single<underscore>quote>message<single<underscore>quote>];<NEWLINE> $from = $<underscore>GET[<single<underscore>quote>from<single<underscore>quote>];<NEWLINE> if(preg<underscore>match(<single<underscore>quote><slash><backslash>r|<backslash>n<slash><single<underscore>quo... | 0 |
please judge the source code for vulnerabilities. | public function proc<underscore>send()<NEWLINE>{<NEWLINE> $param = $this<hyphen>>get<underscore>param();<NEWLINE> <slash><slash> メール送信処理<NEWLINE> $message=$param[self::MESSAGE];<NEWLINE> $message=wordwrap($message, 70, <double<underscore>quote><backslash>r<backslash>n<double<underscore>quote>);<NEWLINE> ... | 0 |
please judge the source code for vulnerabilities. | <?php<NEWLINE>$url=$<underscore>POST[<double<underscore>quote>url<double<underscore>quote>];<NEWLINE>if(preg<underscore>match(<single<underscore>quote><slash>^https?:<backslash><slash><backslash><slash>example.com<backslash><slash><slash><single<underscore>quote>,$url)) {<NEWLINE> header(<double<underscore>quote>Loc... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.