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

Quoted Teststrings are read without context #245

Open
lumaier opened this issue May 28, 2024 · 0 comments
Open

Quoted Teststrings are read without context #245

lumaier opened this issue May 28, 2024 · 0 comments

Comments

@lumaier
Copy link

lumaier commented May 28, 2024

In the context of web application firewalls it makes a difference whether a string comes within a quoted context or not.

Assuming a Unix shell injection of the form
ls "dir/<INJECTION>"
it makes a difference whether the injected string is "; cat secret.txt" (quoted) or ; cat secret.txt(unquoted).

In some testcases (e.g., testcases/owasp/sql-injection.yml) there are teststrings in a quoted context. However, the scanner strips the quotation marks from the teststrings and submits an altered form.

This is because in internal/db/load.go the yaml configuration is unmarshalled (line 56). There, the quotations around teststrings are deleted.

Thanks for looking into this

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

No branches or pull requests

1 participant