function passwordvisit_input_password(&$template)
{
    global $zbp;
    if (isset($_POST['password']) && $_POST['password'] != '') {
        $article = $template->GetTags('article');
        if ($article->Metas->passwordvisit_password != '') {
            if (GetVars('password', 'POST') == $article->Metas->passwordvisit_password) {
                return;
            } else {
                echo '<script type="text/javascript">alert("密码错误，请重新输入！");window.location="' . $article->Url . '";</script>';
                die();
            }
        } else {
            if (GetVars('password', 'POST') == $zbp->Config('passwordvisit')->default_password) {
                return;
            } else {
                echo '<script type="text/javascript">alert("密码错误，请重新输入！");window.location="' . $article->Url . '";</script>';
                die();
            }
        }
    } else {
        $article = $template->GetTags('article');
        if ($zbp->Config('passwordvisit')->all_encrypt || $article->Metas->passwordvisit_enable_encrypt) {
            $article->Content = $zbp->Config('passwordvisit')->default_text . '<form id="form1" name="form1" method="post"><input name="password" type="password" width="100px" /><input name="submit" type="submit" value="查看"/></form>';
            $template->SetTags('article', $article);
        }
    }
}
NVD is only using a subset of CWE for mapping instead of the entire CWE, and the weakness type is not covered by that subset.