GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — SignatureVerifier.is_valid raises instead of returning False for a malformed timestamp, signature or body · Issue #2067 · slackapi/python-slack-sdk Open Labels bugM-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documentedsecuritysemver:patch Milestone Description
from slack_sdk.signature import SignatureVerifier v = SignatureVerifier("secret") v.is_valid("body", "abc", "v0=aa") # ValueError: invalid literal for int() with base 10: 'abc' v.is_valid("body", "1531420618", "v0=é") # TypeError: comparing strings with non-ASCII characters is not supported v.is_valid(b"\xff\xfe", "1531420618", "v0=aa") # UnicodeDecodeError (body is decoded before the signature is compared) (For the last two, use a timestamp inside the 5 minute window.) The timestamp and signature come straight from the X-Slack-Request-Timestamp and X-Slack-Signature headers, so anyone can send them. In bolt-python, It is not a way around the check, the request is still rejected. But the method is documented as "Verifies if the given signature is valid" and I have a small fix with tests (catch the three cases in Checked on main at b935494. Activity
MetadataMetadataAssigneesLabelsbugM-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documentedsecuritysemver:patch TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |