Skip to content

undocumented failure mode, possible security issue on mac #185

@simonmichael

Description

@simonmichael

Ccing here as requested: I just started using req in hledger, and noticed that on mac it runs the security program in PATH (noticed because I was testing with a restricted PATH). Eg this code runs it:

  result <- try $ runReq defaultHttpConfig $ req GET url NoReqBody bsResponse (R.responseTimeout httptimeout)

This is probably the same as kazu-yamamoto/crypton-certificate#9 , reported last year. I figure you and req users should probably be made aware of this for two reasons: it's described as a security problem (because it searches PATH), and it can terminate your program unexpectedly when security isn't found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions