File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed
csharp/ql/test/library-tests/frameworks/Aws Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ using System . Net ;
2+ using System . Collections . Generic ;
3+
4+ using Amazon . Lambda . Core ;
5+ using Amazon . Lambda . APIGatewayEvents ;
6+
7+
8+ namespace LambdaTests {
9+ public class Functions {
10+ public APIGatewayProxyResponse Get ( APIGatewayHttpApiV2ProxyRequest request , ILambdaContext context ) {
11+ string body = request . Body ; // source
12+ string cookie = request . Cookies [ 0 ] ; // source
13+
14+ string rawpath = request . RawPath ; // source
15+ string rawquery = request . RawQueryString ; // source
16+ request . PathParameters . TryGetValue ( "x" , out var pathparameter ) ; // source
17+
18+ string header = request . Headers [ "test" ] ; // source
19+ request . Headers . TryGetValue ( "test" , out var header2 ) ; // source
20+
21+
22+ return new APIGatewayProxyResponse {
23+ StatusCode = 200
24+ } ;
25+ }
26+ }
27+ }
Original file line number Diff line number Diff line change 1+ import csharp
2+ import semmle.code.csharp.dataflow.ExternalFlow
3+
4+ query predicate awsRemoteSources ( DataFlow:: ExprNode node ) { sourceNode ( node , "remote" ) }
Original file line number Diff line number Diff line change 1+ semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Amazon.Lambda/2.1.0/Amazon.Lambda.csproj
You can’t perform that action at this time.
0 commit comments