Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⛏️ Write test for parameter pollution #629

Open
6 tasks
ankush-jain-akto opened this issue Oct 9, 2023 · 7 comments
Open
6 tasks

⛏️ Write test for parameter pollution #629

ankush-jain-akto opened this issue Oct 9, 2023 · 7 comments
Assignees
Labels
hacktoberfest yaml requires yaml knowledge

Comments

@ankush-jain-akto
Copy link
Contributor

💭 Introduction
Create a YAML test to check for parameter pollution in a POST request.

📚 Reading

You can find a detailed documentation of test editor rules here

Find 100+ examples of YAML tests here

🎯 Requirements

  1. Filters - The test should run only on POST APIs that have at least 2 input arguments in the JSON

  2. Execute - It should remove 1 entry and add the removed key-value pair at the end of a different value.
    For example, eg, if original payload looks like

{
    "name": "John",
    "age" : "36"
}

the attempt should look like

{
    "name": "John&age=36"
}
  1. Validation - If the application responds with a positive response code and response body is 80% similar to the original mirrored Response body, the API endpoint is vulnerable to this kind of input validation flaw.

✅ Task summary:

  • Ask to be assigned to the issue.
  • Wait to be assigned. We will try to assign in less than 2 hours.
  • Fork the tests-library repository, create a new branch and commit the yaml file which will be called in your test.
  • Signup for Akto
  • Check in the Attempt tab, if the payload changes, then task is done.
  • Submit the PR here.

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

@Ankita28g Ankita28g added yaml requires yaml knowledge hacktoberfest labels Oct 10, 2023
@nandini584
Copy link

Could you please assign me this issue?

@Atharva1723
Copy link

Can I work on this issue?

@nandini584
Copy link

@avneesh-akto
Copy link
Contributor

Hi @nandini584 . Your yaml is invalid. Also you have missed some fields in the test template. Please run the templates and only on successful run submit a PR.

@nandini584
Copy link

Yeah, sure I will redo it.

@MacroAndMicro
Copy link

Hello @ankush-jain-akto and @Ankita28g
Can I please work on this issue?

@avneesh-akto
Copy link
Contributor

I've assigned it to you, @MacroAndMicro . Happy hacking! Feel free to join our Discord if you need assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest yaml requires yaml knowledge
Projects
None yet
Development

No branches or pull requests

6 participants