Skip to content
Discussion options

You must be logged in to vote

That looks completely correct to me. If flow reaches a static variable then surely that same static variable can be read from other unrelated calls to toUpperEnglish - storing into and reading from a static variable effectively throws away the call context. So even though this may be considered a false positive, it's working as intended. Data flow cannot distinguish between individual array indices here, so as soon as one entry in the cache is tainted, then they're all considered tainted.

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@Hug0Vincent
Comment options

Comment options

You must be logged in to vote
10 replies
@aschackmull
Comment options

Answer selected by Hug0Vincent
@Hug0Vincent
Comment options

@aschackmull
Comment options

@Hug0Vincent
Comment options

@aschackmull
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants