[TRB-43095] PRISMA-2022-0227 issue in go-restful/v3 #895
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Intent
Issue PRISMA-2022-0227 reported by TwistLock scan
Background
github.com/emicklei/go-restful/v3 module prior to v3.10.0 is vulnerable to Authentication Bypass by Primary Weakness. There is an inconsistency in how go-restful parses URL paths. This inconsistency could lead to several security check bypass in a complex system. \ \ Fix: fixed in v3.10.0 \ \ Image: icr.io/cpopen/turbonomic/kubeturbo:8.9.4-SNAPSHOT \ \ Details: emicklei/go-restful#497
Testing
Check updated whitesource scanner report.
TwistLock scan report twistlock-scan-results-20230705-162317-565579000-UTC-06160807.results.csv
Manual testing
docker buildx build --platform=linux/amd64 --tag docker-na.artifactory.swg-devops.com/hyc-turbo-internal-team-docker-local/turbonomic/tamer/badkubeturbo:8.9.5-TM -f build/Dockerfile.multi-archs --build-arg VERSION=8.9.5-TM --push .
Checklist
These are the items that must be done by the developer and by reviewers before the change is ready to merge. Please
strikeoutany items that are not applicable, but don't delete themUnit tests added / updatedIntegration tests added / updatedDeveloper wiki updated (and linked to this description)Audience
@ading1977 @irfanurrehman