litemall icon indicating copy to clipboard operation
litemall copied to clipboard

vulnerability

Open slasher-B opened this issue 3 years ago • 0 comments

1.

sql注入

Don't rely too much on mybatis generator,It brings SQL injection.

In addition,receiving parameters with "${}" will prevent mybatis from executing SQL in precompiled form,this leads to SQL injection risk.

2.

ssrf

In org.linlinjava.litemall.core.qcode.QCodeService#drawPicture, push an unchecked URL into ImageIO.read will cause SSRF.There are two sources can flow to this sink.

3.

Jackson反序列化

The version of Jackson used in the project is vulnerable,and multiple sources can flow to the sink which in org.linlinjava.litemall.core.util.JacksonUtil#toMap.

Through unsafe deserialization, you can call org.linlinjava.litemall.db.util.DbUtil#backup by reflection and inject custom commands into String db, finally case RCE.

slasher-B avatar May 26 '22 09:05 slasher-B