akto icon indicating copy to clipboard operation
akto copied to clipboard

⛏️ Write a test to check whether we can create/update an object with File Upload

Open arjun-akto opened this issue 2 years ago • 3 comments

💭 Introduction:

We want a test to check whether an attacker can create/update entity with File upload.

🎯 Requirements:

  1. Filters - API with atleast one parameter as an input in GET query parameter or JSON body parameter accepting Files, having header for Files like “Content-Type” : “multipart/form-data” or “Content-type” : “application/octet-stream” or other types of headers used for File upload

  2. Execute - It should replace the value with

  • Changing the content-type header and sending the same file as identified in the original request
  • Keeping the header and uploading some other file in Body
  • Not sending any file and keeping the header same
  • removing the header and then sending any file, or the same original file
  1. Validation - If the application responds with a exception trace, it is a vulnerability.

✅ Task summary:

  • [ ] Ask to be assigned to the issue.
  • [ ] Wait to be assigned. We will try to assign in less than 2 hours.
  • [ ] Signup for [Akto]
  • [ ] Fork the [tests-library] repository, create a new branch and commit the yaml file which will be called in your test.
  • [ ] Submit both the PR here.

📚 Reading

Find 100+ examples of YAML tests [here]

🙋🏼‍♂️ Questions: If you have questions, need any help, or just want to hang out, make sure to join us on our [Discord server].

arjun-akto avatar Oct 13 '23 04:10 arjun-akto

Hey @arjun-akto, I have gone through the test-library repo and example YAML test and I feel I can contribute to this issue by writing the above mentioned test. Can you please assign this issue to me?

falconcode16 avatar Oct 13 '23 15:10 falconcode16

Hey @arjun-akto I want to work on this, could you please assign me ?

heysagnik avatar Oct 14 '23 06:10 heysagnik

Hi @falconcode16 , @heysagnik . I have assigned the issue to you. Please feel free to connect us on our Discord server for any doubts.

arjun-akto avatar Oct 14 '23 14:10 arjun-akto