Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions knowledge/node/adonisjs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,90 @@ role = ["framework"]
function = ["api-development", "templating", "data-mapping", "authentication"]
layer = ["backend", "full-stack"]
domain = ["web-development"]

[[security.sinks]]
symbol = "{{{"
threat = "xss"
cwe = "CWE-79"
note = "Triple-stash unescaped output in Edge templates"

[[security.sinks]]
symbol = "@!section"
threat = "xss"
cwe = "CWE-79"
note = "Raw section output"

[[security.sinks]]
symbol = "safe"
threat = "xss"
cwe = "CWE-79"
note = "Edge safe() helper marks content as pre-escaped"

[[security.sinks]]
symbol = "Database.rawQuery"
threat = "sql_injection"
cwe = "CWE-89"
note = "Raw SQL; use bindings parameter"

[[security.sinks]]
symbol = ".whereRaw"
threat = "sql_injection"
cwe = "CWE-89"

[[security.sinks]]
symbol = ".joinRaw"
threat = "sql_injection"
cwe = "CWE-89"

[[security.sinks]]
symbol = ".orderByRaw"
threat = "sql_injection"
cwe = "CWE-89"

[[security.sinks]]
symbol = ".havingRaw"
threat = "sql_injection"
cwe = "CWE-89"

[[security.sinks]]
symbol = "Database.from"
threat = "sql_injection"
cwe = "CWE-89"
note = "With raw string; use Knex bindings"

[[security.sinks]]
symbol = "response.redirect"
threat = "open_redirect"
cwe = "CWE-601"

[[security.sinks]]
symbol = "response.redirect().toPath"
threat = "open_redirect"
cwe = "CWE-601"

[[security.sinks]]
symbol = "response.download"
threat = "path_traversal"
cwe = "CWE-22"

[[security.sinks]]
symbol = "response.attachment"
threat = "path_traversal"
cwe = "CWE-22"

[[security.sinks]]
symbol = "auth.use().login"
threat = "session_fixation"
cwe = "CWE-384"
note = "Ensure session regeneration on login"

[[security.sinks]]
symbol = "Model.create"
threat = "mass_assignment"
cwe = "CWE-915"
note = "Without $fillable or $guarded on the model"

[[security.sinks]]
symbol = "Model.fill"
threat = "mass_assignment"
cwe = "CWE-915"
30 changes: 30 additions & 0 deletions knowledge/node/astro.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,33 @@ role = ["framework"]
function = ["templating", "site-generation"]
layer = ["frontend", "full-stack"]
domain = ["web-development", "content-management"]

[[security.sinks]]
symbol = "set:html"
threat = "xss"
cwe = "CWE-79"
note = "Directive that renders raw HTML without escaping"

[[security.sinks]]
symbol = "Fragment"
threat = "xss"
cwe = "CWE-79"
note = "set:html on Fragment"

[[security.sinks]]
symbol = "Astro.redirect"
threat = "open_redirect"
cwe = "CWE-601"
note = "In SSR mode with caller-controlled URL"

[[security.sinks]]
symbol = "Response.redirect"
threat = "open_redirect"
cwe = "CWE-601"
note = "In API routes/endpoints"

[[security.sinks]]
symbol = "dangerouslySetInnerHTML"
threat = "xss"
cwe = "CWE-79"
note = "When using React components in Astro"
24 changes: 24 additions & 0 deletions knowledge/node/eleventy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,27 @@ role = ["framework"]
function = ["templating", "site-generation"]
layer = ["frontend"]
domain = ["web-development", "content-management"]

[[security.sinks]]
symbol = "|safe"
threat = "xss"
cwe = "CWE-79"
note = "Nunjucks filter; Eleventy defaults to Nunjucks"

[[security.sinks]]
symbol = "{{{"
threat = "xss"
cwe = "CWE-79"
note = "Handlebars triple-stash if using Handlebars engine"

[[security.sinks]]
symbol = "<%-"
threat = "xss"
cwe = "CWE-79"
note = "EJS unescaped output if using EJS engine"

[[security.sinks]]
symbol = "addShortcode"
threat = "ssti"
cwe = "CWE-1336"
note = "Shortcodes with raw HTML return; developer-controlled not user-controlled usually"
29 changes: 29 additions & 0 deletions knowledge/node/ember.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,32 @@ role = ["framework"]
function = ["templating"]
layer = ["frontend"]
domain = ["web-development"]

[[security.sinks]]
symbol = "{{{"
threat = "xss"
cwe = "CWE-79"
note = "Triple-stash unescaped in Handlebars templates"

[[security.sinks]]
symbol = "htmlSafe"
threat = "xss"
cwe = "CWE-79"
note = "Ember.String.htmlSafe marks string as pre-escaped"

[[security.sinks]]
symbol = "SafeString"
threat = "xss"
cwe = "CWE-79"
note = "Handlebars.SafeString"

[[security.sinks]]
symbol = "transitionTo"
threat = "open_redirect"
cwe = "CWE-601"
note = "When route/URL is caller-controlled"

[[security.sinks]]
symbol = "replaceWith"
threat = "open_redirect"
cwe = "CWE-601"
18 changes: 18 additions & 0 deletions knowledge/node/gatsby.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,21 @@ role = ["framework"]
function = ["templating", "site-generation"]
layer = ["frontend"]
domain = ["web-development", "content-management"]

[[security.sinks]]
symbol = "dangerouslySetInnerHTML"
threat = "xss"
cwe = "CWE-79"
note = "React prop; common in Gatsby for CMS HTML"

[[security.sinks]]
symbol = "createPage"
threat = "path_traversal"
cwe = "CWE-22"
note = "In gatsby-node.js with caller-controlled path"

[[security.sinks]]
symbol = "graphql"
threat = "sql_injection"
cwe = "CWE-89"
note = "When query variables from URL params without validation"
17 changes: 17 additions & 0 deletions knowledge/node/qwik.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,20 @@ role = ["framework"]
function = ["templating"]
layer = ["frontend", "full-stack"]
domain = ["web-development"]

[[security.sinks]]
symbol = "dangerouslySetInnerHTML"
threat = "xss"
cwe = "CWE-79"

[[security.sinks]]
symbol = "Element"
threat = "xss"
cwe = "CWE-79"
note = "innerHTML prop on JSX elements"

[[security.sinks]]
symbol = "useNavigate"
threat = "open_redirect"
cwe = "CWE-601"
note = "When target is caller-controlled"
18 changes: 18 additions & 0 deletions knowledge/node/solidjs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,21 @@ role = ["library"]
function = ["templating"]
layer = ["frontend"]
domain = ["web-development"]

[[security.sinks]]
symbol = "innerHTML"
threat = "xss"
cwe = "CWE-79"
note = "Prop on JSX elements; renders raw HTML"

[[security.sinks]]
symbol = "Dynamic"
threat = "xss"
cwe = "CWE-79"
note = "When component prop is caller-controlled"

[[security.sinks]]
symbol = "createEffect"
threat = "xss"
cwe = "CWE-79"
note = "When setting element.innerHTML in effect"