mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge 5574e48963 into merged_master (Bitcoin PR #20741)
This commit is contained in:
commit
e402b0fb5c
1 changed files with 8 additions and 7 deletions
|
|
@ -88,13 +88,14 @@ RPC interface will be abused.
|
|||
- **Secure string handling:** The RPC interface does not guarantee any
|
||||
escaping of data beyond what's necessary to encode it as JSON,
|
||||
although it does usually provide serialized data using a hex
|
||||
representation of the bytes. If you use RPC data in your programs or
|
||||
provide its data to other programs, you must ensure any problem
|
||||
strings are properly escaped. For example, multiple websites have
|
||||
been manipulated because they displayed decoded hex strings that
|
||||
included HTML `<script>` tags. For this reason, and other
|
||||
non-security reasons, it is recommended to display all serialized data
|
||||
in hex form only.
|
||||
representation of the bytes. If you use RPC data in your programs or
|
||||
provide its data to other programs, you must ensure any problem strings
|
||||
are properly escaped. For example, the `createwallet` RPC accepts
|
||||
arguments such as `wallet_name` which is a string and could be used
|
||||
for a path traversal attack without application level checks. Multiple
|
||||
websites have been manipulated because they displayed decoded hex strings
|
||||
that included HTML `<script>` tags. For this reason, and others, it is
|
||||
recommended to display all serialized data in hex form only.
|
||||
|
||||
## RPC consistency guarantees
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue