René's URL Explorer Experiment


Title: Potential DoS attack when reading large containers · Issue #332 · CommunitySolidServer/CommunitySolidServer · GitHub

Open Graph Title: Potential DoS attack when reading large containers · Issue #332 · CommunitySolidServer/CommunitySolidServer

X Title: Potential DoS attack when reading large containers · Issue #332 · CommunitySolidServer/CommunitySolidServer

Description: I've setup the server over a directory with 309.978 very small N-Quads files (~10 triples per file). The server seems to be unable to reply to requests to this container (files within it work fine). The server also doesn't appear to give...

Open Graph Description: I've setup the server over a directory with 309.978 very small N-Quads files (~10 triples per file). The server seems to be unable to reply to requests to this container (files within it work fine)...

X Description: I've setup the server over a directory with 309.978 very small N-Quads files (~10 triples per file). The server seems to be unable to reply to requests to this container (files within it work f...

Opengraph URL: https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Potential DoS attack when reading large containers","articleBody":"I've setup the server over a directory with 309.978 very small N-Quads files (~10 triples per file).\r\nThe server seems to be unable to reply to requests to this container (files within it work fine).\r\nThe server also doesn't appear to give an error, or result in a timeout.\r\n\r\nI've done some profiling in [`FileDataAccessor`](https://github.com/solid/community-server/blob/master/src/storage/accessors/FileDataAccessor.ts#L285-L319), and these are my findings:\r\n\r\n* `fsPromises.readdir` takes 541 ms. Given the number of files, this is a reasonable duration.\r\n* The for loop for generating metadata takes 28.045 s. This can probably be optimized. Maybe some parallelization can be done even using `Promise.all`.\r\n* Quad generation takes 1.187 s. Relatively fast, but maybe also optimizable if done in a streaming manner.\r\n* **After this, I see `warn: This writer can only write errors` appearing in the console, and nothing happens anymore after that. Possibly something crashes silently, as I'm unable to see any further output (and my request is still hanging).**\r\n\r\n-----\r\n\r\nOne could argue that this container is simply too large, so perhaps the server should have a default max limit when listing containers. Alternatively, container listing can be done in a streaming manner, which would probably require refactoring a bunch of components.\r\n","author":{"url":"https://github.com/rubensworks","@type":"Person","name":"rubensworks"},"datePublished":"2020-11-18T13:04:12Z","url":"https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2785ac4b-9918-d7e5-cf38-9b225cde350e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8F0A:3AAB66:9B5CDD:D39088:6B03F244
html-safe-nonce4ea330a20ad148ece5c2719dfa168417511c82e234f160af09dc0320ae45c511
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjBBOjNBQUI2Njo5QjVDREQ6RDM5MDg4OjZCMDNGMjQ0IiwidmlzaXRvcl9pZCI6IjQwOTE4NDU3NDQ0NzMxNDE4MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0783d051bed104aaa2ef36f3d0ac3a3c4f307be4c7ff9e32fd671257e761042d
hovercard-subject-tagissue:745641749
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/CommunitySolidServer/CommunitySolidServer/332/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bee5c6a0b5f635733017c58c5d634008eed3b28b6751c3c8e92ff52ff92c0ee8/CommunitySolidServer/CommunitySolidServer/issues/332
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bee5c6a0b5f635733017c58c5d634008eed3b28b6751c3c8e92ff52ff92c0ee8/CommunitySolidServer/CommunitySolidServer/issues/332
og:image:altI've setup the server over a directory with 309.978 very small N-Quads files (~10 triples per file). The server seems to be unable to reply to requests to this container (files within it work fine)...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerubensworks
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/CommunitySolidServer/CommunitySolidServer git https://github.com/CommunitySolidServer/CommunitySolidServer.git
octolytics-dimension-user_id101397807
octolytics-dimension-user_loginCommunitySolidServer
octolytics-dimension-repository_id265197208
octolytics-dimension-repository_nwoCommunitySolidServer/CommunitySolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id265197208
octolytics-dimension-repository_network_root_nwoCommunitySolidServer/CommunitySolidServer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCommunitySolidServer%2FCommunitySolidServer%2Fissues%2F332
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FCommunitySolidServer%2FCommunitySolidServer%2Fissues%2F332
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=CommunitySolidServer%2FCommunitySolidServer
Reloadhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues/332
Reloadhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues/332
Reloadhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues/332
CommunitySolidServerhttps://github.com/CommunitySolidServer
CommunitySolidServerhttps://github.com/CommunitySolidServer/CommunitySolidServer
Codehttps://github.com/CommunitySolidServer/CommunitySolidServer
Issues126 (126)https://github.com/CommunitySolidServer/CommunitySolidServer/issues
Pull requests29 (29)https://github.com/CommunitySolidServer/CommunitySolidServer/pulls
Discussionshttps://github.com/CommunitySolidServer/CommunitySolidServer/discussions
Actionshttps://github.com/CommunitySolidServer/CommunitySolidServer/actions
Projectshttps://github.com/CommunitySolidServer/CommunitySolidServer/projects
Security and quality1 (1)https://github.com/CommunitySolidServer/CommunitySolidServer/security
Insightshttps://github.com/CommunitySolidServer/CommunitySolidServer/insights
https://github.com/CommunitySolidServer/CommunitySolidServer
New issuehttps://github.com/login?return_to=https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332
New issuehttps://github.com/login?return_to=https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332
Potential DoS attack when reading large containershttps://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#top
difficulty:highhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22difficulty%3Ahigh%22
effort:highhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22effort%3Ahigh%22
ldp:containershttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22ldp%3Acontainers%22
🐌 performancehttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22%F0%9F%90%8C%20performance%22
https://github.com/rubensworks
rubensworkshttps://github.com/rubensworks
on Nov 18, 2020https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#issue-745641749
FileDataAccessorhttps://github.com/solid/community-server/blob/master/src/storage/accessors/FileDataAccessor.ts#L285-L319
rubensworkshttps://github.com/rubensworks
🐌 performancehttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22%F0%9F%90%8C%20performance%22
on Nov 18, 2020https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#event-4010559203
https://github.com/jvherweg
jvherweghttps://github.com/jvherweg
on Nov 18, 2020https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#issuecomment-729664800
https://github.com/RubenVerborgh
RubenVerborghhttps://github.com/RubenVerborgh
on Nov 18, 2020https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#issuecomment-729687349
#6https://github.com/CommunitySolidServer/CommunitySolidServer/issues/6
https://github.com/jvherweg
jvherweghttps://github.com/jvherweg
on Nov 18, 2020https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#issuecomment-729691169
https://github.com/solid/community-server/blob/82f3aa0cd849417b25d56dc288999a4acc914036/src/ldp/http/BasicResponseWriter.ts#L37-L40https://github.com/solid/community-server/blob/82f3aa0cd849417b25d56dc288999a4acc914036/src/ldp/http/BasicResponseWriter.ts#L37-L40
https://github.com/RubenVerborgh
RubenVerborghhttps://github.com/RubenVerborgh
on Nov 18, 2020https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#issuecomment-729691514
https://nodejs.org/api/stream.html#stream_event_drainhttps://nodejs.org/api/stream.html#stream_event_drain
https://github.com/rubensworks
rubensworkshttps://github.com/rubensworks
on Nov 18, 2020https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#issuecomment-729692606
https://github.com/RubenVerborgh
RubenVerborghhttps://github.com/RubenVerborgh
on Nov 18, 2020https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#issuecomment-729692903
https://github.com/jvherweg
jvherweghttps://github.com/jvherweg
on Nov 18, 2020https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#issuecomment-729694395
https://github.com/RubenVerborgh
RubenVerborghhttps://github.com/RubenVerborgh
on Nov 18, 2020https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#issuecomment-729695057
https://github.com/RubenVerborgh
RubenVerborghhttps://github.com/RubenVerborgh
on Nov 18, 2020https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#issuecomment-729700218
https://nodejs.org/api/fs.html#fs_dir_symbol_asynciteratorhttps://nodejs.org/api/fs.html#fs_dir_symbol_asynciterator
RubenVerborghhttps://github.com/RubenVerborgh
ldp:containershttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22ldp%3Acontainers%22
difficulty:lowhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22difficulty%3Alow%22
effort:mediumhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22effort%3Amedium%22
good first issueGood for newcomershttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
on Dec 2, 2020https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#event-4064678100
https://github.com/rubensworks
rubensworkshttps://github.com/rubensworks
on Jan 19, 2021https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#issuecomment-762703555
jvherweghttps://github.com/jvherweg
difficulty:highhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22difficulty%3Ahigh%22
effort:highhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22effort%3Ahigh%22
good first issueGood for newcomershttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
difficulty:lowhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22difficulty%3Alow%22
effort:mediumhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22effort%3Amedium%22
on Jun 10, 2022https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332#event-6783904157
Sign up for freehttps://github.com/signup?return_to=https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332
Sign in to commenthttps://github.com/login?return_to=https://github.com/CommunitySolidServer/CommunitySolidServer/issues/332
difficulty:highhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22difficulty%3Ahigh%22
effort:highhttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22effort%3Ahigh%22
ldp:containershttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22ldp%3Acontainers%22
🐌 performancehttps://github.com/CommunitySolidServer/CommunitySolidServer/issues?q=state%3Aopen%20label%3A%22%F0%9F%90%8C%20performance%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.