Skip to content

Commit

Permalink
add controller-params fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
v1ll4n committed Jul 30, 2024
1 parent 53b0434 commit 78c3cab
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions java-realworld/java-controller-params.sf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
desc(
title: 'checking [spring controller source parameter]',
type: audit,
lib: 'spring-param'
)

*Mapping.__ref__?{opcode: function} as $start;

// annotation method' formal params.
$start(*?{opcode: param && !have: this} as $formalParams);

// fetching getParameter
.getParameter()?{<getFunc>.annotation.*Mapping} as $dynamicParams;






// input output
$formalParams + $dynamicParams as $output;
alert $output;

0 comments on commit 78c3cab

Please sign in to comment.