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

aws lambda func url not in use #1970

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

muzzamilinovaqo
Copy link
Contributor

No description provided.

helpers/aws/api.js Outdated Show resolved Hide resolved
helpers/aws/api_multipart.js Outdated Show resolved Hide resolved
plugins/aws/lambda/lambdaFuncUrlNotInUse.js Outdated Show resolved Hide resolved
plugins/aws/lambda/lambdaFuncUrlNotInUse.js Outdated Show resolved Hide resolved
plugins/aws/lambda/lambdaFuncUrlNotInUse.js Outdated Show resolved Hide resolved
muzzamilinovaqo and others added 4 commits March 28, 2024 14:57
Co-authored-by: Fatima <66124862+fatima99s@users.noreply.github.com>
Co-authored-by: Fatima <66124862+fatima99s@users.noreply.github.com>
Co-authored-by: Fatima <66124862+fatima99s@users.noreply.github.com>
plugins/aws/lambda/lambdaFuncUrlNotInUse.js Outdated Show resolved Hide resolved
plugins/aws/lambda/lambdaFuncUrlNotInUse.js Outdated Show resolved Hide resolved
plugins/aws/lambda/lambdaFuncUrlNotInUse.js Outdated Show resolved Hide resolved
plugins/aws/lambda/lambdaFuncUrlNotInUse.js Outdated Show resolved Hide resolved
plugins/aws/lambda/lambdaFuncUrlNotInUse.js Outdated Show resolved Hide resolved
muzzamilinovaqo and others added 6 commits April 18, 2024 12:55
Co-authored-by: Fatima <66124862+fatima99s@users.noreply.github.com>
Co-authored-by: Fatima <66124862+fatima99s@users.noreply.github.com>
Co-authored-by: Fatima <66124862+fatima99s@users.noreply.github.com>
Co-authored-by: Fatima <66124862+fatima99s@users.noreply.github.com>
Co-authored-by: Fatima <66124862+fatima99s@users.noreply.github.com>

if (!urlConfigs || urlConfigs.err || !urlConfigs.data) {
helpers.addResult(results, 3,
`Unable to query for Lambda function URL configs: ${helpers.addError(urlConfigs)}`, region, resource);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`Unable to query for Lambda function URL configs: ${helpers.addError(urlConfigs)}`, region, resource);
`Unable to query for Lambda function url configs: ${helpers.addError(urlConfigs)}`, region, resource);

title: 'Lambda Function URL Not In Use',
category: 'Lambda',
domain: 'Serverless',
severity: 'Medium',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
severity: 'Medium',
severity: 'Low',

domain: 'Serverless',
severity: 'Medium',
description: 'Ensure that AWS Lambda functions are not configured with function URLs for HTTP(S) endpoints.',
more_info: 'A function URL is a dedicated HTTP(S) endpoint created for your Amazon Lambda function. You can use a function URL to invoke your Lambda function. But it can lead to some security risks depending on the security configuration and intention of the function.',
Copy link
Collaborator

@alphadev4 alphadev4 Apr 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
more_info: 'A function URL is a dedicated HTTP(S) endpoint created for your Amazon Lambda function. You can use a function URL to invoke your Lambda function. But it can lead to some security risks depending on the security configuration and intention of the function.',
more_info: 'Using function URL creates a direct HTTP(S) endpoint to function allowing public, and unauthenticated access to your function URL posing a security threat and public exposure to application.


if (urlConfigs.data.FunctionUrlConfigs &&
urlConfigs.data.FunctionUrlConfigs.length){
helpers.addResult(results, 2, 'Lambda function Url is configured', region, resource);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
helpers.addResult(results, 2, 'Lambda function Url is configured', region, resource);
helpers.addResult(results, 2, 'Lambda function url is configured', region, resource);

urlConfigs.data.FunctionUrlConfigs.length){
helpers.addResult(results, 2, 'Lambda function Url is configured', region, resource);
} else {
helpers.addResult(results, 0, 'Lambda function Url is not configured', region, resource);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
helpers.addResult(results, 0, 'Lambda function Url is not configured', region, resource);
helpers.addResult(results, 0, 'Lambda function url is not configured', region, resource);

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

Successfully merging this pull request may close these issues.

3 participants