| タイトル | JFinalOA has sql injection |
|---|
| 説明 | The product from https://gitee.com/glorylion/JFinalOA.
The vulnerability is in src/main/java/com/pointlion/mvc/common/model/SysOrg.java.
Code:
String sql = "select * from sys_org m where m.parent_id='"+id+"' ";
if(StrKit.notBlank(type)){
sql = sql + " and m.type='"+type+"' ";
}
sql = sql + " order by m.sort";
return SysOrg.dao.find(sql);
The attacker can use the SQL injection vulnerability to obtain database information.
url:/admin/sys/org/getOrgTree?orgid=xxx
|
|---|
| ソース | ⚠️ https://github.com/skisw/Vul/blob/main/vuloa |
|---|
| ユーザー | amazingday (UID 40512) |
|---|
| 送信 | 2023年02月09日 07:43 (4 年 ago) |
|---|
| モデレーション | 2023年02月09日 11:59 (4 hours later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 220469 [glorylion JFinalOA 1.0.2 SysOrg.java 識別子 SQLインジェクション] |
|---|
| ポイント | 20 |
|---|