Title: False Positive in Python Path Traversal Benchmark – BenchmarkTest00008 · Issue #1 · OWASP-Benchmark/BenchmarkPython · GitHub
Open Graph Title: False Positive in Python Path Traversal Benchmark – BenchmarkTest00008 · Issue #1 · OWASP-Benchmark/BenchmarkPython
X Title: False Positive in Python Path Traversal Benchmark – BenchmarkTest00008 · Issue #1 · OWASP-Benchmark/BenchmarkPython
Description: Hi @davewichers , We identified a false positive in the OWASP Benchmark (Python) test case classified as a true positive under the Path Traversal category. Test case: /benchmark/pathtraver-00/BenchmarkTest00008 Rule: Path Traversal Case:...
Open Graph Description: Hi @davewichers , We identified a false positive in the OWASP Benchmark (Python) test case classified as a true positive under the Path Traversal category. Test case: /benchmark/pathtraver-00/Bench...
X Description: Hi @davewichers , We identified a false positive in the OWASP Benchmark (Python) test case classified as a true positive under the Path Traversal category. Test case: /benchmark/pathtraver-00/Bench...
Opengraph URL: https://github.com/OWASP-Benchmark/BenchmarkPython/issues/1
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"False Positive in Python Path Traversal Benchmark – BenchmarkTest00008","articleBody":"Hi @davewichers ,\n \nWe identified a **false positive** in the OWASP Benchmark (Python) test case classified as a true positive under the Path Traversal category.\n**Test case: /benchmark/pathtraver-00/BenchmarkTest00008**\n\n**Rule: Path Traversal**\n\n_Case:_\n```\nparam = urllib.parse.unquote_plus(\n request.cookies.get(\"BenchmarkTest00008\", \"noCookieValueSupplied\")\n)\n\nbar = \"This should never happen\"\nif 'should' not in bar:\n bar = \"Ifnot case passed\"\n\ntestfiles = pathlib.Path(helpers.utils.TESTFILES_DIR)\np = testfiles / bar\n```\n\nThe variable bar, which is used to construct the filesystem path, is a **hardcoded constant** and is not derived from any user-controlled input. The conditional check is also deterministic and does not modify bar based on external input. Therefore, there is no feasible data flow from user input to the path construction.\n\nAs a result, the filesystem access does not expose a path traversal vulnerability, and the test case appears to be incorrectly marked as a true positive.\n\n_**Additional observations:**_\n\nWe have found multiple similar cases in the Python benchmark where user input is read but does not propagate to the sink, yet the test is still classified as a true positive. These cases may be worth re-evaluating to reduce false positives and improve benchmark accuracy.\n\nPlease let us know if you would like references to additional examples.","author":{"url":"https://github.com/KarthickRaja2002","@type":"Person","name":"KarthickRaja2002"},"datePublished":"2026-01-29T10:27:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1/BenchmarkPython/issues/1"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:46f286db-b074-a586-554f-55294f253e73 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD5E:3A13F7:368A28A:4CDA843:6A5F8F0A |
| html-safe-nonce | dd828b987502d926397d7eaeef6a87f43b4a6f0a6810a1f9bc902d535117782a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDVFOjNBMTNGNzozNjhBMjhBOjRDREE4NDM6NkE1RjhGMEEiLCJ2aXNpdG9yX2lkIjoiMjQ3MjY3MjgzMzY5ODc2MjUwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 638149542ac27fc583f52da20c8eb1f37d0661423328ab22af1d099da52838bc |
| hovercard-subject-tag | issue:3869924870 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/OWASP-Benchmark/BenchmarkPython/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/445161b0f6ee27ca46ad430510e04c73eaf4879b69fff6fc1549bd33e234d5df/OWASP-Benchmark/BenchmarkPython/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/445161b0f6ee27ca46ad430510e04c73eaf4879b69fff6fc1549bd33e234d5df/OWASP-Benchmark/BenchmarkPython/issues/1 |
| og:image:alt | Hi @davewichers , We identified a false positive in the OWASP Benchmark (Python) test case classified as a true positive under the Path Traversal category. Test case: /benchmark/pathtraver-00/Bench... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KarthickRaja2002 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 05a5a04783bf869edc9d6ffbeac22f1152a11abce708ff1bf649457a9b96836a |
| turbo-cache-control | no-preview |
| go-import | github.com/OWASP-Benchmark/BenchmarkPython git https://github.com/OWASP-Benchmark/BenchmarkPython.git |
| octolytics-dimension-user_id | 80600360 |
| octolytics-dimension-user_login | OWASP-Benchmark |
| octolytics-dimension-repository_id | 1090439709 |
| octolytics-dimension-repository_nwo | OWASP-Benchmark/BenchmarkPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1090439709 |
| octolytics-dimension-repository_network_root_nwo | OWASP-Benchmark/BenchmarkPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ebe18dcab12b14d87b778dc32f6b70e7a6910911 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width