Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Python3 Flask bug: ImportError: cannot import name 'escape' from … #1680

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

DroidKali
Copy link
Contributor

…'jinja2' (/usr/local/lib/python3.9/dist-packages/jinja2/init.py)

Signed-off-by: DroidKali DroidKali@users.noreply.github.com


本 poc 是检测什么漏洞的

修复webhook中app.py中一个Flask的依赖bug

webhook git:(master) python3 app.py                      Traceback (most recent call last):
  File "/root/XRAY/webhook/app.py", line 3, in <module>
    from flask import Flask, request, redirect
  File "/usr/local/lib/python3.9/dist-packages/flask/__init__.py", line 14, in <module>
    from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.9/dist-packages/jinja2/__init__.py)

测试环境

Kali Linux 2022.1
Python3.9.7

备注

…'jinja2' (/usr/local/lib/python3.9/dist-packages/jinja2/__init__.py)

Signed-off-by: DroidKali <DroidKali@users.noreply.github.com>
@Jarcis-cy Jarcis-cy merged commit 4f47fb1 into chaitin:master Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants