Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift: Add more path injection sinks #14748

Merged
merged 10 commits into from Nov 13, 2023
Merged

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Nov 10, 2023

Add more path injection sinks, including some 'heuristic' (i.e. imprecise) sink matching. For the latter I started by casting quite a wide net (e.g. any argument containing the string "file" or "path" in its name), but found I had to narrow it considerably to reduce the proportion of incorrect sinks to an acceptable (low) level. I also had to tweak for good performance.

This PR also adds a few additional taint flows through URL, NSURL, StringProtocol and NSString - related to some of the tests.

Path injection sinks found on the MRVA-100 increases from 898 (before this PR) to 1,019 (with the new precise sinks and flow) to 1,135 (with the heuristic as well).

@geoffw0 geoffw0 added the Swift label Nov 10, 2023
@geoffw0 geoffw0 requested a review from a team as a code owner November 10, 2023 15:33
@geoffw0
Copy link
Contributor Author

geoffw0 commented Nov 13, 2023

Thanks for the review, DCA LGTM so merging...

@geoffw0 geoffw0 merged commit c14d404 into github:main Nov 13, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants