Skip to content

Commit cc99e47

Browse files
committed
udpate readme
1 parent 839f532 commit cc99e47

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Sort by letter.
4646
- [JSONP](https://github.com/JoyChou93/java-sec-code/wiki/JSONP)
4747
- [SQLI](https://github.com/JoyChou93/java-sec-code/wiki/SQL-Inject)
4848
- [SSRF](https://github.com/JoyChou93/java-sec-code/wiki/SSRF)
49+
- [SSTI](https://github.com/JoyChou93/java-sec-code/wiki/SSTI)
4950
- [URL whitelist Bypass](https://github.com/JoyChou93/java-sec-code/wiki/URL-whtielist-Bypass)
5051
- [XXE](https://github.com/JoyChou93/java-sec-code/wiki/XXE)
5152
- [Others](https://github.com/JoyChou93/java-sec-code/wiki/others)

README_zh.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
- [JSONP](https://github.com/JoyChou93/java-sec-code/wiki/JSONP)
4444
- [SQLI](https://github.com/JoyChou93/java-sec-code/wiki/SQL-Inject)
4545
- [SSRF](https://github.com/JoyChou93/java-sec-code/wiki/SSRF)
46+
- [SSTI](https://github.com/JoyChou93/java-sec-code/wiki/SSTI)
4647
- [URL whitelist Bypass](https://github.com/JoyChou93/java-sec-code/wiki/URL-whtielist-Bypass)
4748
- [XXE](https://github.com/JoyChou93/java-sec-code/wiki/XXE)
4849
- [Others](https://github.com/JoyChou93/java-sec-code/wiki/others)

src/main/java/org/joychou/controller/SSTI.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
public class SSTI {
1616

1717
/**
18-
* SSTI of Java velocity.
19-
* Open a calculator in MacOS.
18+
* SSTI of Java velocity. The latest Velocity version still has this problem.
19+
* Fix method: Avoid to use Velocity.evaluate method.
20+
*
2021
* http://localhost:8080/ssti/velocity?template=%23set($e=%22e%22);$e.getClass().forName(%22java.lang.Runtime%22).getMethod(%22getRuntime%22,null).invoke(null,null).exec(%22open%20-a%20Calculator%22)
22+
* Open a calculator in MacOS.
2123
*
2224
* @param template exp
2325
*/

0 commit comments

Comments
 (0)