File tree Expand file tree Collapse file tree
query-tests/security/CWE-074
stubs/springframework-5.2.3/org/springframework/web/bind/annotation
stubs/springframework-5.2.3/org/springframework/web/bind/annotation Expand file tree Collapse file tree Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1515import javax .xml .transform .stream .StreamResult ;
1616import javax .xml .transform .stream .StreamSource ;
1717
18+ import org .springframework .web .bind .annotation .RequestMapping ;
1819import org .springframework .web .bind .annotation .RequestParam ;
1920import org .xml .sax .InputSource ;
2021
@@ -33,6 +34,7 @@ public void testStreamSourceReader(Socket socket) throws Exception {
3334 TransformerFactory .newInstance ().newTemplates (source ).newTransformer ().transform (null , null );
3435 }
3536
37+ @ RequestMapping
3638 public void testStreamSourceInjectedParam (@ RequestParam String param ) throws Exception {
3739 String xslt = "<xsl:stylesheet [...]" + param + "</xsl:stylesheet>" ;
3840 StreamSource source = new StreamSource (new StringReader (xslt ));
@@ -95,6 +97,7 @@ public void testSaxon(Socket socket) throws Exception {
9597 compiler .compile (source ).load30 ().callTemplate (null , null );
9698 }
9799
100+ @ RequestMapping
98101 public void testSaxonXsltPackage (@ RequestParam String param , Socket socket ) throws Exception {
99102 URI uri = new URI (param );
100103 StreamSource source = new StreamSource (socket .getInputStream ());
Original file line number Diff line number Diff line change 1- //semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/springframework-5.2.3:${testdir}/../../../stubs/Saxon-HE-9.9.1-7
1+ //semmle-extractor-options: --javac-args -cp ${testdir}/../../../../ stubs/springframework-5.2.3:${testdir}/../../../stubs/Saxon-HE-9.9.1-7
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ package org .springframework .web .bind .annotation ;
2+
3+ import java .lang .annotation .*;
4+
5+ @ Target ({ElementType .ANNOTATION_TYPE })
6+ @ Retention (RetentionPolicy .RUNTIME )
7+ public @interface Mapping { }
Original file line number Diff line number Diff line change 1+ package org .springframework .web .bind .annotation ;
2+
3+ import java .lang .annotation .*;
4+
5+ @ Target ({ElementType .TYPE , ElementType .METHOD })
6+ @ Retention (RetentionPolicy .RUNTIME )
7+ @ Documented
8+ @ Mapping
9+ public @interface RequestMapping { }
You can’t perform that action at this time.
0 commit comments