-
Notifications
You must be signed in to change notification settings - Fork 307
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(query): false positive detections in "api_key_exposed" function #6757
fix(query): false positive detections in "api_key_exposed" function #6757
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Tohar-orca,
how are you?
Can you give me more context about this false positive?
Can you tell which query was returning the result and a small code sample?
Thank you :)
Hi @JoaoCxMartins :) openapi: "3.0.1"
info:
title: "test"
version: "1.0"
servers:
- url: "https://@API-GW-ID.execute-api.us-east-1.amazonaws.com/{basePath}"
variables:
basePath:
default: "/api"
paths:
/address:
get:
summary: test
description: test
security:
- authorizer: [ ]
components:
securitySchemes:
authorizer:
type: "apiKey"
name: "authorization"
in: "header" |
Hi @Tohar-orca :) To close this pr, can you implement a test for each one of the queries? Thank you :) |
…a/kics into fix-exposed-api-key-in-openapi
Sure, done :) |
TY for your help @Tohar-orca |
Closes #
Proposed Changes
api_key_exposed
function to verify the server is not using httpsI submit this contribution under the Apache-2.0 license.