Closed draftyfrog closed 11 months ago
Update: it's the same for exercise2 - pysa doesn't find the three issues and just returns an empty array (I added the necessary definitions to the sources_sinks.pysa
file).
Thanks for the report and sorry for the delay. I know what the problem is, I will have a fix soon.
If you don't want to wait: you will need to install django-stubs
with pip, then add the line "site_package_search_strategy": "pep561",
in the .pyre_configuration
file.
This should be fixed, please re-open this if you still have the issue.
Thanks, I can confirm that it works now!
For anybody else coming here with the same issue: Installing django-stubs
and running pysa with --no-verify
is all I needed to do to make the tutorial work.
Pysa Bug
Pre-submission checklist [x] I've checked the list of common issues and mine does not appear
Bug description The pysa tutorial does not work as pysa doesn't find the issue it should find on Ubuntu 20.04 LTS on WSL1.
Reproduction steps
pip install pyre-check fb-sapp
pyre analyze
ƛ Found 1 model verification error! sources_sinks.pysa:1:0 django.http.request.HttpRequest.GET is not part of the environment, no module django in search path.
pyre analyze --no-verify
[ ]
instead of yielding thePossible RCE
issue inviews.operate_on_twos
Expected behavior Exactly what is described in the readme of exercise1 as I precisely followed the steps.
Logs Please run your reproduction steps with
--noninteractive
(eg.pyre --noninteractive analyze
) and paste the output here: (I ranpyre --noninteractive analyze --no-verify
)