Comments (4)
The $markdown->text()
is safe, it will remove any HTML tags.
The second place is also safe, because it has been filtered by regular expressions:
// https://github.com/ZeroDream-CN/SakuraPanel/blob/master/core/PostHandler.php#L12
if(isset($params['action']) && preg_match("/^[A-Za-z0-9\_\-]{1,20}$/", $params['action'])) {
switch($params['action']) {
...
default:
exit("Undefined action {$params['action']}");
}
}
from sakurapanel.
CVE-2021-43681 is assigned to this vulnerability.
SakuraPanel v1.0.1.1 is affected by is affected by a Cross Site Scripting (XSS) vulnerability in /master/core/PostHandler.php. The exit function will terminate the script and print the message $data['proxy_name'].
from sakurapanel.
Thanks for the report, this vulnerability is fixed in 5272615
from sakurapanel.
Thank you for the confirmation.
Two similar possible vulnerabilities in the same file
// *** Vulnerability 1
// line 357
exit($markdown->text($_POST['data']));
// *** Vulnerability 2
// line 368
exit("Undefined action {$params['action']}");
// when the source is coming from core/Router.php
// line 10
$phdle->switcher($_GET);
from sakurapanel.
Related Issues (20)
- 后端节点和用户流量,带宽速率等问题 HOT 1
- STCP映射隧道 start error: SakuraFrp API Error (Status: 404, Text: 404 Proxy not found) HOT 6
- 关于面板Api请求Invalid Node ID的问题 HOT 1
- 什么都设置好了 客户端和服务端都是28.2版本 但是连接时提示Invalid Node ID HOT 1
- 请问此程序支不支持STARTTLS 587
- 不继续更新了吗? HOT 2
- 为什么我只需要Token就能连接?而不是user+token一起使用? HOT 2
- 希望能加入用户到期管理机制 HOT 2
- 关于本项目 HOT 7
- 主控被控都装好,但被控端无法根据面板设置开启穿透 HOT 7
- 403 Invalid API Token HOT 3
- authorization failed 是怎么了?
- api疑问
- 邮箱发送不了 HOT 5
- 邮箱和验证码问题
- ok
- 无法连接服务器 HOT 1
- 反馈关于节点服务器导致配置文件出现“Array” HOT 2
- 服务端启动报错“ invalid character '<' looking for beginning of value” HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sakurapanel.