Skip to content

Store body_raw as well as a fix for bb report#649

Draft
bitterpanda63 wants to merge 1 commit into
mainfrom
fix-context-bug-with-unicode-chars-from-bb
Draft

Store body_raw as well as a fix for bb report#649
bitterpanda63 wants to merge 1 commit into
mainfrom
fix-context-bug-with-unicode-chars-from-bb

Conversation

@bitterpanda63

Copy link
Copy Markdown
Member

No description provided.



def test_body_raw_set_when_bytes_json_parsed():
# Regression: AIKIDO-FVRDOX5M — json.loads decodes unicode escapes (e.g. # -> #)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't need to mention the report id

if parsed_body:
# Save the raw decoded string so injection detection still works
# against code that reads the body as raw bytes/string. json.loads
# decodes unicode escapes (e.g. # -> #), creating a mismatch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# decodes unicode escapes (e.g. # -> #), creating a mismatch
# decodes unicode escapes (e.g. \u0023 -> #), creating a mismatch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants