Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/george0papasotiriou/cve-2026-22005-oauth-2.0-device-code-phishing-short-interval-
身份验证与授权钓鱼工具漏洞利用Web应用程序漏洞利用钓鱼攻击Web安全学习与教育
GitHubgeorge0papasotiriou/cve-2026-22005-oauth-2.0-device-code-phishing-short-interval-

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2026-22005-OAuth-2.0-Device-Code-Phishing-Short-Interval-

CVE-2026-22005 的概念验证,演示了通过过短的轮询间隔进行的 OAuth 2.0 设备码钓鱼攻击,包含存在漏洞的 Flask 服务器以及用于令牌窃取的利用流程。

查看仓库
332个月前尚未审核

CVE-2026-22005 – OAuth 2.0 设备代码钓鱼(短间隔)

程序代码(Python)

# device_code_server.py - Authorization server with too-fast polling
import time, secrets
codes = {}

@app.route('/device/code')
def device_code():
    code = secrets.token_urlsafe(16)
    codes[code] = {'user_code': secrets.token_hex(4), 'status': 'pending'}
    return jsonify(codes[code])

@app.route('/token')
def token():
    code = request.args['device_code']
    # Vulnerability: allows polling every 1 second, and attacker can brute-force user_code
    if codes[code]['status'] == 'pending':
        # Check if user_code was entered (simulated)
        time.sleep(0.5)  # delay to simulate user
        return jsonify({'access_token': 'secret'})

CVE-2026-22005 – 利用短轮询间隔的 OAuth 2.0 设备代码钓鱼

Severity: High

概述

OAuth 2.0 设备授权许可允许客户端每秒轮询令牌端点。攻击者可发起设备授权流程,将用户代码展示给受害者(钓鱼),由于轮询间隔极短,攻击者能在受害者察觉异常之前获得访问令牌。

漏洞详情

  • 类型: 社会工程学 / 钓鱼
  • 影响: 账户接管。
  • 根本原因: 授权服务器未强制执行最小轮询间隔(应为 5 秒以上),也未要求在令牌签发后确认用户验证码。

漏洞利用演示

运行模拟:

pip install flask
python device_code_server.py
# Attacker starts flow, gets device_code and user_code, phishes victim.
下载工具