Skip to content

Commit a0ea9ed

Browse files
EvenLjjliujianjun.ljj
and
liujianjun.ljj
authored
update security (#1354)
* update security * update security --------- Co-authored-by: liujianjun.ljj <[email protected]>
1 parent 742fa90 commit a0ea9ed

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

SECURITY.md

+10
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,13 @@ If you have apprehensions regarding SOFAStack's security or you discover vulnera
77
In the mail, specify the description of the issue or potential threat. You are also urged to recommend the way to reproduce and replicate the issue. The SOFAStack community will get back to you after assessing and analysing the findings.
88

99
PLEASE PAY ATTENTION to report the security issue on the security email before disclosing it on public domain.
10+
11+
## Solution
12+
13+
SOFARPC uses Hessian serialization by default. Hessian is a binary serialization protocol. For more information, please refer to Hessian's [documentation](https://github.com/sofastack/sofa-hessian).
14+
15+
Because of the implement of Hessian, by constructing a specific serialization stream, it may cause arbitrary code execution when doing deserialization. It is recommended that users configure blacklist to solve the problem.
16+
17+
SOFARPC also provides a way to configure blacklists in `BlackListFileLoader`, you can override the blacklist configuration based on the code.
18+
19+
The blacklist built into the project comes from internal practices and external contributions, and is for reference only and is not actively updated, we do not assume any legal responsibility for this.

codec/codec-sofa-hessian/src/main/resources/sofa-rpc/serialize_blacklist.txt

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ javax.naming.InitialContext
2424
javax.naming.spi.ObjectFactory
2525
javax.script.ScriptEngineManager
2626
javax.sound.sampled.AudioFormat$Encoding
27+
javax.sound.sampled.AudioFileFormat
2728
org.apache.carbondata.core.scan.expression.ExpressionResult
2829
org.apache.commons.dbcp.datasources.SharedPoolDataSource
2930
org.apache.ibatis.executor.loader.AbstractSerialStateHolder

0 commit comments

Comments
 (0)