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

[DOC] warn about and de-emphasize send/recv_pyobj #2039

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Oct 15, 2024

recv_pyobj is pickle.loads, which means arbitrary code execution

  • add warnings to docstrings, narrative docs
  • updates some ancient examples to not use pyobj, which gives the impression it's a good idea
  • add example of using shared-keys and HMAC digests to authenticate messages before calling pickle.loads

This stops short of outright deprecating send/recv_pyobj, which I'm still considering.

recv_pyobj is pickle.loads, which means arbitrary code execution

- add warnings to docstrings, narrative docs
- updates some ancient examples to not use pyobj, which gives the impression it's a good idea
- add example of using signatures to authenticate messages before calling pickle
@minrk minrk merged commit 30e3189 into zeromq:main Oct 22, 2024
22 checks passed
@minrk minrk deleted the pyobj branch October 22, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant