File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,14 @@ RPC interface will be abused.
88
88
- ** Secure string handling:** The RPC interface does not guarantee any
89
89
escaping of data beyond what's necessary to encode it as JSON,
90
90
although it does usually provide serialized data using a hex
91
- representation of the bytes. If you use RPC data in your programs or
92
- provide its data to other programs, you must ensure any problem
93
- strings are properly escaped. For example, multiple websites have
94
- been manipulated because they displayed decoded hex strings that
95
- included HTML ` <script> ` tags. For this reason, and other
96
- non-security reasons, it is recommended to display all serialized data
97
- in hex form only.
91
+ representation of the bytes. If you use RPC data in your programs or
92
+ provide its data to other programs, you must ensure any problem strings
93
+ are properly escaped. For example, the ` createwallet ` RPC accepts
94
+ arguments such as ` wallet_name ` which is a string and could be used
95
+ for a path traversal attack without application level checks. Multiple
96
+ websites have been manipulated because they displayed decoded hex strings
97
+ that included HTML ` <script> ` tags. For this reason, and others, it is
98
+ recommended to display all serialized data in hex form only.
98
99
99
100
## RPC consistency guarantees
100
101
You can’t perform that action at this time.
0 commit comments