惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园_首页
量子位
阮一峰的网络日志
阮一峰的网络日志
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hackread – Cybersecurity News, Data Breaches, AI and More
云风的 BLOG
云风的 BLOG
D
DataBreaches.Net
B
Blog
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
博客园 - 三生石上(FineUI控件)
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
H
Help Net Security
The Cloudflare Blog
U
Unit 42

ABB00717

SecList Knock Pivoting and Tunneling File Inclusion Login Brute Forcing Reverse Shell Web Fuzzing HTB - SpeedNet PHP Filter to RCE Redis HTB - Pollution HTB - Pollution 工具 常見服務 HTB - BroScience HTB - BroScience 如何把爛爛的 shell 升級成好用的 TTY 滲透筆記 HTB - Imagery HTB - Imagery HTB - Reset HTB - Reset HTB - Trick HTB - Trick HTB - Editorial HTB - Editorial 150. Evaluate Reverse Polish Notation droopescan 安裝找不到 module imp 解決「桌面背景被當成一個視窗不斷重新彈出並覆蓋其他視窗」的問題 桌面不斷彈出覆蓋其他視窗
Broken Authentication
2026-09-19 · via ABB00717

Nineveh

Nineveh 靶機中的 http://nineveh.htb/department 登入是這麼寫的:

session_start();
if (isset($_SESSION['username'])) {
    header('Location: manage.php');
    die();
}
$USER = 'admin';
$PASS = '1q2w3e4r5t';
if (isset($_POST['username']) && isset($_POST['password'])) {
    if ($_POST['username'] == $USER) {
        if (strcmp($_POST['password'], $PASS) == 0) {
            $_SESSION['username'] = $USER;
            header('Location: manage.php');
        } else {
            $error = 'Invalid Password!';
        }
    } else {
        $error = 'invalid username';
    }
}

反正就是 PHP Type Juggling:

這個例子中把 password 改成陣列就可以被繞過了: