Skip to content

Binary Request Body Gets Corrupted #29

@Matir

Description

@Matir

I'm sorry for such a vague bug, but I've been trying to narrow it down better for a while with little success.

Steps to reproduce:

  1. Go to a file upload page and upload a non-ascii file (i.e., an image is a good choice)
  2. Note that the file received on the server is changed (seems to always be larger) -- some servers will reject due to checking length

I traced things through the websocket protocol to the implant and things appear fine at the point it's inserted into the fetch request. My working theory is that the fetch api does not like the body being invalid unicode, but I don't know nearly enough about fetch to say that for sure.

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