Provide new function RestrictedPython.Guards.safer_getattr_raise.
It is similar to safer_getattr but handles its parameter
default like getattr, i.e. it raises AttributeError
if the attribute lookup fails and this parameter is not provided,
fixes [#287](https://github.com/zopefoundation/RestrictedPython/issues/287) <https://github.com/zopefoundation/RestrictedPython/issues/287>_.
7.3 (2024-09-30)
Increase the safety level of safer_getattr allowing applications to use
it as getattr implementation. Such use should now follow the same policy
and give the same level of protection as direct attribute access in an
environment based on RestrictedPython's safe_builtints.
Prevent information leakage via AttributeError.obj
and the string module. (CVE-2024-47532)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps restrictedpython from 7.2 to 7.4.
Changelog
Sourced from restrictedpython's changelog.
Commits
7e52345
- prepare release 7.47b8a6b4
Support Python 3.13 and remove Python 3.7 support. (#289)2f8f153
new functionsafer_getattr_raise
(#288)95f323c
Add CVE number.ea8ede3
Move entry to right release.e8d1ad6
Revert "Prepare release."d2164b2
Back to development: 7.43a8e03f
Make linter happy.dc6c38f
Preparing release 7.31087c68
Prepare release.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show