zaproxy / zaproxy

The ZAP core project
https://www.zaproxy.org
Apache License 2.0
12.21k stars 2.21k forks source link

add content-type support for application/taxii+json #8522

Closed br01805 closed 6 days ago

br01805 commented 1 week ago

Is your feature request related to a problem? Please describe.

Currently when running scans against TAXII servers we are receiving content-type unexpected error. I'm largely assuming this is due to ZAP not supporting content type application/taxii+json

Describe the solution you'd like

If possible could you all add "application/taxii+json" to the content-type expected list

Describe alternatives you've considered

There are no alternatives

Screenshots

No response

Additional context

No response

Would you like to help fix this issue?

kingthorin commented 1 week ago

For my two cents this is as expected. The number of ZAP users scanning a TAXII or STIX service is VERY low (IMO).

The proper way to handle this not being applicable for you is:

thc202 commented 1 week ago

We have talked in the past about making the check more lenient for JSON content-types e.g. https://github.com/zaproxy/zaproxy/pull/7721#pullrequestreview-1284843600

kingthorin commented 1 week ago

Okay; I could look at doing that.