Skip to content

Commit f1e3fbc

Browse files
sophiebitskassens
authored andcommitted
Warn about low entropy in taintUniqueValue.md (#6379)
* Warn about low entropy in taintUniqueValue.md * Update src/content/reference/react/experimental_taintUniqueValue.md Co-authored-by: Jan Kassens <[email protected]> --------- Co-authored-by: Jan Kassens <[email protected]>
1 parent 1aad20b commit f1e3fbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/reference/react/experimental_taintUniqueValue.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ experimental_taintUniqueValue(
6767

6868
#### Caveats {/*caveats*/}
6969

70-
- Deriving new values from tainted values can compromise tainting protection. New values created by uppercasing tainted values, concatenating tainted string values into a larger string, converting tainted values to base64, substringing tainted values, and other similar transformations are not tainted unless you explicity call `taintUniqueValue` on these newly created values.
70+
* Deriving new values from tainted values can compromise tainting protection. New values created by uppercasing tainted values, concatenating tainted string values into a larger string, converting tainted values to base64, substringing tainted values, and other similar transformations are not tainted unless you explicity call `taintUniqueValue` on these newly created values.
71+
* Do not use `taintUniqueValue` to protect low-entropy values such as PIN codes or phone numbers. If any value in a request is controlled by an attacker, they could infer which value is tainted by enumerating all possible values of the secret.
7172

7273
---
7374

0 commit comments

Comments
 (0)