Title: Preventing path traversal by plugins? · Issue #3194 · sqlc-dev/sqlc · GitHub
Open Graph Title: Preventing path traversal by plugins? · Issue #3194 · sqlc-dev/sqlc
X Title: Preventing path traversal by plugins? · Issue #3194 · sqlc-dev/sqlc
Description: Hi! sqlc looks neat and I'm playing around with it. The docs make this statement: WASM plugins are fully sandboxed; they do not have access to the network, filesystem, or environment variables. This caused me to look into how filesystem ...
Open Graph Description: Hi! sqlc looks neat and I'm playing around with it. The docs make this statement: WASM plugins are fully sandboxed; they do not have access to the network, filesystem, or environment variables. Thi...
X Description: Hi! sqlc looks neat and I'm playing around with it. The docs make this statement: WASM plugins are fully sandboxed; they do not have access to the network, filesystem, or environment variables....
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/3194
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Preventing path traversal by plugins?","articleBody":"Hi! sqlc looks neat and I'm playing around with it.\r\n\r\nThe docs make this statement:\r\n\r\n\u003e WASM plugins are fully sandboxed; they do not have access to the network, filesystem, or environment variables.\r\n\r\nThis caused me to look into how filesystem writes are performed. Am I misinterpreting the code, or does the use of path.Join allow for path traversal attacks? e.g. if a plugin emits a path beginning with `../../../`. I don't speak any Go, but my read of the Clean function (which appears to be applied automatically to the result of Join) is that it only normalizes `..` _inside_ a path and preserves it at the front.\r\n\r\nApologies in advance if I've missed the defense against this.","author":{"url":"https://github.com/cbiffle","@type":"Person","name":"cbiffle"},"datePublished":"2024-02-12T20:25:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/3194/sqlc/issues/3194"}
| 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:5fefd0ad-caf1-147e-c5b8-cb3f0fbe1a86 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5D4:14F3B3:A79C2E:E43C81:6A5204BC |
| html-safe-nonce | 73193c2f055182ceae9bae378a4b46ed71b9a35e326b4515419dd9bd5cf21cd9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUQ0OjE0RjNCMzpBNzlDMkU6RTQzQzgxOjZBNTIwNEJDIiwidmlzaXRvcl9pZCI6IjY3MTUxNDk5ODU3NTM3MjgxODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4955f9c0d6141e9e095891a256ce10f1b8484106ee2cce242296caaa77e07fcb |
| hovercard-subject-tag | issue:2130926850 |
| 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/sqlc-dev/sqlc/3194/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b818239d7b2b7b6ef1638a72ccc7cf15b1f7552a9d61015ab2f2eae2028b265/sqlc-dev/sqlc/issues/3194 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b818239d7b2b7b6ef1638a72ccc7cf15b1f7552a9d61015ab2f2eae2028b265/sqlc-dev/sqlc/issues/3194 |
| og:image:alt | Hi! sqlc looks neat and I'm playing around with it. The docs make this statement: WASM plugins are fully sandboxed; they do not have access to the network, filesystem, or environment variables. Thi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cbiffle |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width