Skip to content

Commit fa799fb

Browse files
arthaudfacebook-github-bot
authored andcommitted
Do not propagate taint through object.__class__
Summary: Add a model to stop propagating taint through object.__class__ Reviewed By: tianhan0 Differential Revision: D76519087 fbshipit-source-id: 4c3371a960a2ff0b21a35370f3b7de43dc1f40ef
1 parent bf5e336 commit fa799fb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

stubs/taint/common/builtin_functions.pysa

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ def filter.__new__(cls, function, iterable: TaintInTaintOut[LocalReturn, Paramet
3636
# `next()` with a single argument is hardcoded in the analysis.
3737
@SkipObscure
3838
def next(__i: TaintInTaintOut[Collapse], __default: TaintInTaintOut[LocalReturn, NoCollapse]): ...
39+
40+
# Don't propagate taint through .__class__
41+
@SkipObscure
42+
@Sanitize
43+
@property
44+
def object.__class__(): ...

0 commit comments

Comments
 (0)