-
Notifications
You must be signed in to change notification settings - Fork 1
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
194580 - productversions integration with scs stub #418
base: develop-s100
Are you sure you want to change the base?
194580 - productversions integration with scs stub #418
Conversation
…#194580 AB#196244
…rsions-integration-with-scs-stub
…rsions-integration-with-scs-stub
…rsions-integration-with-scs-stub
…s' into dev/194580-productversions-integration-with-scs-stub
⛔ Snyk checks have failed. 2 issues have been found so far.
⛔ code/snyk check is complete. 2 issues have been found. (View Details) |
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.API/Controllers/V2/ExchangeSetController.cs
Outdated
Show resolved
Hide resolved
...SetService.API/UKHO.ExchangeSetService.Common.UnitTests/Helpers/SalesCatalogueClientTests.cs
Outdated
Show resolved
Hide resolved
...ervice.API/UKHO.ExchangeSetService.Common.UnitTests/Helpers/V2/SalesCatalogueServiceTests.cs
Outdated
Show resolved
Hide resolved
...ervice.API/UKHO.ExchangeSetService.Common.UnitTests/Helpers/V2/SalesCatalogueServiceTests.cs
Outdated
Show resolved
Hide resolved
...ervice.API/UKHO.ExchangeSetService.Common.UnitTests/Helpers/V2/SalesCatalogueServiceTests.cs
Outdated
Show resolved
Hide resolved
...ervice.API/UKHO.ExchangeSetService.Common.UnitTests/Helpers/V2/SalesCatalogueServiceTests.cs
Outdated
Show resolved
Hide resolved
async () => | ||
{ | ||
var result = await _exchangeSetStandardService.ProcessProductVersionsRequest(productVersionRequest, exchangeSetStandard, callbackUri, _correlationId, GetRequestCancellationToken()); | ||
var result = await _exchangeSetStandardService.ProcessProductVersionsRequestAsync(productVersionRequest, ApiVersion.V2, exchangeSetStandard, callbackUri, _correlationId, GetRequestCancellationToken()); |
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.
Log Forging
Unsanitized input from an HTTP parameter
flows into global::Microsoft.Extensions.Logging.ILogger.LogError
, where it is used as log input. This may result in a Logs Forging vulnerability.
Line 67 | CWE-117 | Priority score 407 | Learn more about this vulnerability
Data flow: 28 steps
Step 1 - 2
Line 59 in 99d3246
public Task<IActionResult> PostProductVersions(string exchangeSetStandard, [FromBody] IEnumerable<ProductVersionRequest> productVersionRequest, [FromQuery] string callbackUri) |
Step 3
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.API/Controllers/V2/ExchangeSetController.cs#L67
Step 11
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L73
Step 12 - 14
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L85
Step 15 - 17
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L87
Step 18
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L89
Step 19
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L94
Step 20
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L96
Step 21
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L99
Step 22
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L100
Step 23
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L103
Step 24 - 26
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L122
Step 27 - 28
Line 120 in 99d3246
_logger.LogError(EventIds.SalesCatalogueServiceNonOkResponse.ToEventId(), |
async () => | ||
{ | ||
var result = await _exchangeSetStandardService.ProcessProductVersionsRequest(productVersionRequest, exchangeSetStandard, callbackUri, _correlationId, GetRequestCancellationToken()); | ||
var result = await _exchangeSetStandardService.ProcessProductVersionsRequestAsync(productVersionRequest, ApiVersion.V2, exchangeSetStandard, callbackUri, _correlationId, GetRequestCancellationToken()); |
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.
Server-Side Request Forgery (SSRF)
Unsanitized input from an HTTP parameter
flows into global::System.Net.Http.HttpRequestMessage
, where it is used as an URL to perform a request. This may result in a Server-Side Request Forgery vulnerability.
Line 67 | CWE-918 | Priority score 603 | Learn more about this vulnerability
Data flow: 14 steps
Step 1 - 2
Line 59 in 99d3246
public Task<IActionResult> PostProductVersions(string exchangeSetStandard, [FromBody] IEnumerable<ProductVersionRequest> productVersionRequest, [FromQuery] string callbackUri) |
Step 3
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.API/Controllers/V2/ExchangeSetController.cs#L67
Step 6
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L73
Step 7 - 9
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L81
Step 10 - 11
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/V2/SalesCatalogueService.cs#L87
Step 12
UKHO.ExchangeSetService.API/UKHO.ExchangeSetService.Common/Helpers/SalesCatalogueClient.cs#L25
Step 13 - 14
Line 29 in 99d3246
using var httpRequestMessage = new HttpRequestMessage(method, uri) |
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.
LGTM.
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.
Looks Good.
This PR includes code changes and UTs for
PBI 194580