Comments (4)
Thanks for the thorough report. The quickest fix is to first check the code
format when initiating fundinfo
? i.e., it has to be six digits instead of a url str. If this protection is implemented, do you see any potential risk left?
Besides, can you see any scenario that the current issue can have realistic security issues? Because to me, the fundinfo code is written by the users themselves.
from xalpha.
Ah, i think i see your point now. The scenario could be someone who host a website using xalpha as backend, then when the use input some weird fund code, the backend server can run something very bad if the server has no check on the user's input more than bare xalpha. In this case, the loophole can be used to weaken the server (say a fund summary website backend by xalpha, if any)
from xalpha.
Actually you could just check the code format when initiating fundinfo, you can simply avoid this vulnerability in this way. But I suggest you replace eval() with safer functions to prevent vulnerabilities that may occur in the future.
yeah, if someone host a website using xalpha as backend, The attackers could use the above methods to directly obtain server permissions (attackers could use functions such as os.system() to execute cmd and directly obtain the cmd shell.)
from xalpha.
shall be fixed in 0.11.9
from xalpha.
Related Issues (20)
- 期待解锁宏观数据 from ycharts HOT 1
- ycharts 数据拉取错误 HOT 3
- 可以回测基于策略的基金买入卖出收益吗 HOT 1
- 增量更新分拆信息解析出错 HOT 1
- 测试”技术指标交叉类“时报错 HOT 1
- 使用多进程时报错 HOT 1
- xa.indexinfo接口无法使用 HOT 3
- indicator_cross中start日期问题 HOT 1
- 计算基金收益报错
- pandas更新之后dataframe没有append了 HOT 2
- the pinning pyecharts version doesn't support python3.10+
- sqlalchemy >= 2 报错 HOT 2
- 请问作者怎么通过基金交易单申赎基金呀 HOT 1
- VInfo失效。
- 添加米筐数据源支持。
- 数据错误。 HOT 1
- indexinfo报错 HOT 1
- 这个问题是2023年年末提出的,请问当前数据源是否是正常运行的,包含最近三年的及时数据 HOT 2
- 总是报错TradeBehaviorError: You cannot sell first when you never buy,是什么问题? HOT 3
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 xalpha.