TrueLayer.Client SSRF when fetching payment or payment provider
        
  High severity
        
          GitHub Reviewed
      
        Published
          Jan 30, 2024 
          in
          
            TrueLayer/truelayer-dotnet
          
          •
          Updated Jan 30, 2024 
      
  
Description
        Published by the National Vulnerability Database
      Jan 30, 2024 
    
  
        Published to the GitHub Advisory Database
      Jan 30, 2024 
    
  
        Reviewed
      Jan 30, 2024 
    
  
        Last updated
      Jan 30, 2024 
    
  
Impact
The vulnerability could potentially allow a malicious actor to gain control over the destination URL of the HttpClient used in the API classes. For applications using the SDK, requests to unexpected resources on local networks or to the internet could be made which could lead to information disclosure.
Patches
Versions of TrueLayer.Client
v1.6.0and later are not affected.Workarounds
The issue can be mitigated by having strict egress rules limiting the destinations to which requests can be made, and applying strict validation to any user input passed to the TrueLayer.Client library.
References