Title: [js/client-side-unvalidated-url-redirection] add interpretsValueAsJavaScript predicate by Raz0r · Pull Request #3835 · github/codeql · GitHub
Open Graph Title: [js/client-side-unvalidated-url-redirection] add interpretsValueAsJavaScript predicate by Raz0r · Pull Request #3835 · github/codeql
X Title: [js/client-side-unvalidated-url-redirection] add interpretsValueAsJavaScript predicate by Raz0r · Pull Request #3835 · github/codeql
Description: Hi! The predicate interpretsArgumentsAsHTML catches sinks that use setAttribute(), e.g. var payload = document.location.search.substr(1); var el = document.createElement("input"); el.setAttribute("formaction", payload); document.body.appendChild(el); However it misses direct assignment, e.g. el.formaction = payload. This PR adds a new predicate interpretsValueAsJavaScript and covers the following cases: var payload = document.location.search.substr(1); var el = document.createElement("a"); el.href = payload; document.body.appendChild(el); // XSS var payload = document.location.search.substr(1); var el = document.createElement("button"); el.formaction = payload; document.body.appendChild(el); //
Open Graph Description: Hi! The predicate interpretsArgumentsAsHTML catches sinks that use setAttribute(), e.g. var payload = document.location.search.substr(1); var el = document.createElement("input"); el.setA...
X Description: Hi! The predicate interpretsArgumentsAsHTML catches sinks that use setAttribute(), e.g. var payload = document.location.search.substr(1); var el = document.createElement("input");...
Opengraph URL: https://github.com/github/codeql/pull/3835
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e7f47c1f-ffb5-5fcd-b326-2f599f242115 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9A8C:3F0C56:49846A:6B0329:6A4E0A5E |
| html-safe-nonce | 4a9d434760d91a7251f00be28e3b882b70554b058bdb7ddfaedb916a11d6f828 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QThDOjNGMEM1Njo0OTg0NkE6NkIwMzI5OjZBNEUwQTVFIiwidmlzaXRvcl9pZCI6Ijc2MDAxODg5ODEzMzQ5MDMzOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0018cf28971d0c22ad896980139f7729754c2cf2b4043b39b46febffbb1fb0b9 |
| hovercard-subject-tag | pull_request:441473442 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/github/codeql/pull/3835/files |
| twitter:image | https://avatars.githubusercontent.com/u/150087?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/150087?s=400&v=4 |
| og:image:alt | Hi! The predicate interpretsArgumentsAsHTML catches sinks that use setAttribute(), e.g. var payload = document.location.search.substr(1); var el = document.createElement("input"); el.setA... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/github/codeql git https://github.com/github/codeql.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 143040428 |
| octolytics-dimension-repository_nwo | github/codeql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 143040428 |
| octolytics-dimension-repository_network_root_nwo | github/codeql |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 51470c353b8a1f52a88d3e3cc2014b17ab8cc1ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width