Skip to content

include 202 in ok_status_codes? #136

@a11ya11y

Description

@a11ya11y

crawler.py currently sets ok_status_codes = [200, 301, 302, 307, 308].

Some sites, notably sites hosted by shinyapps.io are inconsistently scanned by CWAC. In some cases, they let CWAC through, and in others they return a 202 status code, and we've been unable to determine the cause of the inconsistency. We thought that setting perform_header_check: false (by including these sites in /base_urls/nohead/) was the solution, but even then, sometimes the shinyapps.io sites still block CWAC and return a 202 status code.

In our latest tests, including 202 in ok_status_codes seems to allow consistent scanning of those shinyapp.io sites and no 202 codes returned.

@G-Rath Do you foresee any issues including 202 in ok_status_codes?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions