Skip to content

How can one view the sink points that are matched by the rules when there is no source point available? #1008

@RATOR-codes

Description

@RATOR-codes

Without a source point, Pyre cannot print out the sink point when analyzing the project. For example, in the following code file, how can one view the risk warning about the sink point caused by the 4th line in the log?

import os
def get_image(url):
      command = "wget -q https:{}".format(url)
      return os.system(command)
def convert():
      image_link = ""
      image = get_image(image_link)

Furthermore, when we use pyre to detect the sink points of third-party libraries, the following error will occur. And it has been confirmed that the library has been installed in the environment, but the error still occurred.

(pysa-env) root@8e8b830b1ad3:/data/vanna/stubs/taint/core_privacy_security# pyre analyze
ƛ Found 1 model verification error!
general.pysa:83:0 `django.template.Template.__init__` is not part of the environment, no module `django` in search path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions