Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

192
Visualizações
how to filter verb tunneling http headres?

We have a REST API implemented with an AWS Lambda Function in JavaScript, and we need to address the Often Misused: HTTP Method Override vulnerability, this is, verb tunneling is possible through the headers X-Http-Method X-Http-Method-Override X-Method-Override and we want to avoid this by filtering/removing/blocking these headers.

We don't have the possibility to filter these headers in AWS API Gateway, so we should do that from the Lambda function when we get the request.

I share some code for context. This is how we get the request:

index.js

module.exports.handler = async event => {
...
    if (event.httpMethod === 'OPTIONS') {
        return {
            statusCode: 200,
            headers: corsHeaders
        };
    }
...
}
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda