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

Fix/template issues new #41

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

arjun-akto
Copy link
Contributor

No description provided.

@@ -44,3 +44,6 @@ validate:
response_code:
gte: 200
lt: 300
response_payload:
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't 200 resp code enough for noauth test?

Copy link
Contributor

Choose a reason for hiding this comment

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

No harm adding response length check @ayushaga14

Copy link
Contributor

Choose a reason for hiding this comment

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

discussed with ankush, we should also consider the case where initial response length was 0

Comment on lines +59 to +68
- "Django tried these url patterns"
- "Django version"
- "Exception Type"
- "Template rendering"
- "Request Method"
- "Request URL"
- "Django Settings"
- "Python Executable"
- "Python Path"
- "Server time"
Copy link
Contributor

Choose a reason for hiding this comment

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

  • "Request Method"
  • "Request URL"
  • "Exception Type"
    Just confirm once if these can give false positives

Comment on lines +34 to +35
not_contains_either:
- root
Copy link
Contributor

Choose a reason for hiding this comment

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

why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we dont want the original request / response to have possibilities of LFI, without even modifying the request

@@ -52,3 +52,5 @@ validate:
response_payload:
contains_either:
- "hello world"
not_contains_either:
- "| echo 'hello world'"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just check for "echo 'hello world'"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you have a point, but we dont want our own modified request to reflect in the response payload, we can use either to validate that.

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.

None yet

3 participants