chore(deps): update dependency sobelow to ~> 0.19.0 #12
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/sobelow-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
~> 0.18.0→~> 0.19.0Release Notes
sobelow/sobelow (sobelow)
v0.19.0Compare Source
New checks and expanded ZIP callback analysis can produce additional findings and
change confidence-based CI exit results. Existing finding locations and skip
fingerprints are preserved. The minimum supported Elixir remains 1.12.
DOS.Regexfindings for dynamic pattern compilation, omittingdirect escaped inputs. Fixed-pattern complexity and matching calls are
outside the initial scope; absence of a finding does not imply safety.
DOS.CompressedFileto connect local compressed-file opens, includingpiped opens, with full IO reads. Findings point at reads and retain the
originating path label. Captured outer handles stop being tracked across
open callbacks; callback device tracking remains local.
DOS.XMLfindings for explicit entity-expansion and externalloading options. Default-only calls are not treated as unsafe or safe;
option support is runtime-specific. Bounded XML experiments distinguish
entity rejection from unsupported options and verify duplicate precedence.
DOS.Zipto inline:zip.foldl/3callbacks that directly invokethe entry-content accessor before any rebinding. Metadata-only callbacks
are omitted. New findings point at the enclosing fold call; existing
locations and skip fingerprints are unchanged.
Misc.BinToTermhelp.Decoder protections, detection boundaries and fingerprints are unchanged.
DOS.Tarfor dynamic Erlang TAR extraction inputs, including compressedand selected-entry extraction. Runtime-specific limits require review.
DOS.Zipfor potentially unbounded extraction through Erlang ZIP APIs.Dynamic archive inputs and handles are reported conservatively; literal
inputs, metadata-only operations and archive creation are omitted.
Declared-size checks do not suppress findings.
DOS.Decompressionfor dynamic input to unbounded zlib decompressionAPIs. Compression and bounded-output primitives are omitted; input chunking
and post-decompression size checks do not suppress findings.
v0.18.1Compare Source
into finding labels and aborting scans, including interpolated input to
module-name, atom, compilation and file-selection checks. Chained brackets
retain their original input labels, including
conn.paramsconfidence.Existing finding source locations and skip fingerprints are unchanged.
v0.18.0Compare Source
Add the Crypto category with WeakHash and WeakCipher checks for literal
algorithm choices, including Erlang's streaming MD5 initializer.
Add
Config.TLSVerifyto report disabled TLS certificate verificationin scanned source and production configuration, including both Hackney
insecure option forms. Server and unknown SSL roles receive low confidence.
TLS skip fingerprints include the original call AST.
Add
DOS.Consultfor dynamic file selection in:file.consult/1and:file.path_consult/2, which can create atoms from untrusted term files.Misc.BinToTermreports Erlang calls with explicit:safeoptions atmedium confidence instead of high, changing
--exit highbehavior.It also reports Plug's non-executable decoder without proven
:safe.Existing finding IDs, source locations, and skip fingerprints are preserved.
Add RCE.File for dynamic file selection in Erlang eval and script APIs,
including search paths, pipes and captures.
The new file-selection and cryptography checks resolve explicit Erlang
imports, including pipes, captures and import arity restrictions.
Add
DOS.ModuleConcatfor dynamic module-name atom creation throughModule.concat/1,2, including aliases, imports, pipes and captures.Extend
DOS.BinToAtomto interpolated atom word sigils (~w(...)a).Existing atom-interpolation findings, IDs and fingerprints are preserved.
Add
RCE.Compilefor dynamic source, ASTs and file selection inCode.compile_string,compile_quoted,compile_fileandrequire_file.Add
Crypto.WeakSignaturefor explicit MD5 and SHA-1 digest selectionsin Erlang crypto and public-key signature APIs.
Add
Config.WeakTLSfor explicit legacy SSL, TLS and DTLS protocolselections, sharing source discovery, skips and TLS option parsing with
Config.TLSVerifywithout changing existing TLS finding fingerprints.Bug fixes
inside constructed ASTs. Qualified Kernel atom-word sigils are detected.
These patterns can produce new findings; existing locations and skip
fingerprints are unchanged.
retaining low confidence for imported SSL server calls. Literal TLS
options and weak versions in cons lists and concatenations are retained.
v0.17.0Compare Source
DOS.ListToAtomnow also reports:erlang.list_to_atom/1, includingpiped calls, matching how
DOS.BinToAtomcovers:erlang.binary_to_atom.Add
--onlyto run a chosen set of checks or categories, e.g.mix sobelow --only XSS.Raw,SQL. It takes the same names as--ignore,which still applies on top. Unknown names fail the run instead of
scanning nothing.
.sobelow-confacceptsonly:and--save-configrecords it.
Add
DOS.DecodeAtomsfor dynamic input decoded with atom-creating optionsin Jason, Poison, and YamlElixir string readers.
Bug fixes
XSS.SendResprecognizes literal attachment headers on the same responseconnection for PDF and XML downloads. Uncertain or overridden headers,
HTML, and SVG continue to report. Header state no longer leaks between
conditional branches; this can expose previously missed findings.
Existing finding locations and skip fingerprints remain unchanged. (#55)
piped capture arguments such as &1. These patterns can produce new
findings; existing call locations and skip fingerprints are unchanged.
report a secure endpoint as missing HTTPS. Explicit app-level transport
settings and separate endpoint checks remain supported. (#56)
writes. Mix's
"plug": {...}keys parse as atoms, so the lookup nevermatched and every advisory check passed silently whenever
deps/wasabsent. Parsing the lockfile also no longer prints a "found quoted
keyword" warning per dependency.
CI.OS,Misc.BinToTermandDOS.BinToAtomnow detect calls madethrough explicit Erlang imports, such as
import :os, only: [cmd: 1]followed by
cmd(input).v0.16.0Compare Source
XSS.Rawno longer reports calls to a benign localrawhelper with the matchingarity, including defaults, guards, pipes, captures, and inline HEEx. Local
definitions stay within their module; qualified Phoenix calls and
implicitly imported template helpers retain detection. Helpers returning
dynamic
{:safe, value}output or wrapping anotherrawcall retaintheir caller's original findings, locations, and fingerprints. (#44)
XSS.SendRespnow recognizesput_resp_header(conn, "content-type", type)on the response connection, including piped, aliased, nested, and assigned
calls. HTML, SVG, malformed, and unknown types still report; other XML
and PDF document types retain low-confidence findings. Discarded, later,
unrelated, locally shadowed, or ambiguously imported setters cannot
suppress findings. Known unrelated response headers retain the connection's
content type, and MIME parameters do not change its classification. (#45)
XSS.Rawnow respects explicit imports of unrelatedrawhelpers. Unknownraw macros and delegates retain detection. Older inline lexical contexts
without local-signature metadata remain supported.
options, and unwritable output files now fail with actionable errors.
skip state. Malformed sources and templates are skipped with a warning in
non-strict mode, and unreadable files are skipped with a warning.
on a literal keyword list no longer abort scans. Unknown socket options
produce low-confidence findings.
XSS.SendRespnow follows the connection passed to each response and itscontent type before that sink. Later or discarded setters cannot suppress
an earlier finding, and rebindings in branches, patterns, callbacks,
generators, and call arguments cannot borrow another connection's content
type. Unchanged bindings, pins, guards, and explicit setters retain their
existing handling.
and each endpoint, including ordered overrides and nested keyword merges.
One endpoint cannot satisfy another's settings. Dynamic and conditional
settings produce low-confidence findings. Empty CSP policies are reported.
and runtime configuration, including
socket/2andwebsocket: true.Explicit socket overrides retain precedence, and
disabled WebSockets remain excluded. Defaults are isolated to each endpoint
module. Origin allowlists and
:connare recognized; an enabled CSRF checklowers confidence when origin checks are disabled.
scope or introduce findings from literal markup. The
phx-no-curly-interpolationdirective is recognized as an attribute name;the same text inside another attribute's value cannot suppress findings.
Inline columns account for sigil prefixes and heredoc indentation.
useandimportdeclarations now apply only to their ownmodule. Named captures and inline HEEx retain lexical aliases and import
selections, including renamed aliases and imported arity restrictions.
the checked dependency, preventing false advisories for package aliases.
Missing or nonliteral versions no longer abort scans.
--root. SARIF locationsare relative to the scan root, or use file URIs for external files. Reserved
filename characters, including
#,?,%, and:, are percent-encoded.JSON filenames and skip fingerprints are unchanged.
Vuln.CookieRCErule name now matches its existing result type andrule ID. Unknown finding types receive a null rule ID instead of raising.
Config.CSRFRouteis now listed inmix help sobelow.trusted CA store is available, and tolerate malformed responses, cache,
filesystem, and network failures. OTP 24 skips the notification because
it has no built-in CA-store API.
githuboutput format for GitHub Actions workflow annotations,with confidence levels and repository-relative finding locations.
~Hsigils,including body and attribute expressions, legacy EEx, qualified and piped
Phoenix.HTML.rawcalls, nested sigils, and Elixir comments. Controllerrenders are correlated with embedded
*_htmltemplates. Braceinterpolation is disabled in script/style bodies and regions marked with
phx-no-curly-interpolation. Invalid expressions warn and are skipped, orexit 2 under
--strict.inheritance, function-local imports, and
only/exceptarity selections.Confidence grading follows direct local aliases before a sink. Calls
retain their original ASTs, and implicit Phoenix controller imports retain
their historical detection.
Vuln.*dependency advisories can now read literalHex versions from
mix.lockwhendeps/is unavailable, without evaluatingproject code.
--include-mix-tasksand--include-scriptsto opt into additionalsource paths, and
--summaryto print file counts on stderr. SARIF nowincludes invocation warnings and uses the published OASIS schema URL.
.sobelow-confsaves and sorted skip rewrites are now atomic, preserve Unixpermissions, and follow symlinks. Unreadable existing skip files are
preserved and produce an actionable error.
--legacy-skipsretains theexisting append behavior.
confidence analysis; incremental HEEx delimiter parsing; combined
file/module metadata extraction; bounded, ordered file preparation; and
smaller lexical contexts with compatible lookup paths on older OTP.
once per batch. Quiet output and exit status use confidence counts, and
repeated reports reuse sorted results. Scan settings, enabled checks,
paths, skip lookups, and relevant template snapshots are reused, with
per-worker cache counters to avoid contention. Source, AST, lockfile, and
dependency-version caches are released when the scan finishes or fails.
Existing public finding-log results and output formats are preserved.
boundaries, configuration uncertainty, atomic writes, source edge cases,
and scan/lexical context restoration. Added failing regressions and safe
controls for Copilot and adversarial review findings.
and both historical skip formats. Exact fingerprint assertions run on the
captured parser family; output/rule contracts and generated skip round
trips run across the supported matrix. Independent release column captures
qualify older parsers, and highlighting follows each runtime's printer.
arity pairs on
Sobelowand Sobelow.Parse, including traversal callbacksand default arities.
complete finding and output comparisons, reduction counts, and separate
sampled VM memory. Methodology, measurements, and limits are documented in
bench/README.md; the benchmark entry point isbench/scan.exs.runtime. Coverage excludes only the test harness, documentation-only legacy
module, and developer diff helper. Fixtures are ignored by test discovery.
prevent order-dependent failures on older Elixir versions. Version-check
cache, response, and TLS-option tests make no network requests.
combination, including exit codes; strict Credo runs on every entry.
into focused internal modules. Shared AST helpers now live in source,
metadata, calls, variables, and template modules, with the existing
Sobelowand Sobelow.Parse entry points preserved.handling, and shortened stale comments. Updated contributor and usage
guidance to document the new module boundaries and scan options.
Upgrade notes
inline templates, lexical resolution, response rebindings, and configuration
fixes can reveal previously missed sinks. Corrected lockfile package matching
can remove false dependency advisories.
project roots, scan options, and output permissions if an invocation previously
exited successfully without scanning or writing its report.
ASTs, existing finding locations, and current/legacy fingerprint calculations
are preserved. SARIF artifact paths are corrected as described above. The
minimum supported Elixir version remains
~> 1.12.v0.15.0Compare Source
Config.Secretsno longer crashes the scan when a secret is written asanything other than a plain double-quoted string. Heredoc values and values
containing escaped quotes previously raised a
MatchErrorand aborted theentire run. These secrets are now reported, using the line of the enclosing
configcall.Sobelow previously printed "This does not appear to be a Phoenix application"
and exited 0 — a CI gate could pass having scanned nothing.
--strictnow reports syntax errors instead of raising. It has been brokensince Elixir 1.13 changed the error shape returned by
Code.string_to_quoted/2. Errors are now reported asfile:line:column:.--strict) rather than aborting the scan with anEEx.SyntaxError. Theerror now names the offending template instead of
nofile..sobelow-confnow produces an actionable message instead of araw
MatchErrorstacktrace. This mattered more since v0.14.1 began readingthe file automatically.
.sobelow-confis now read asno options rather than aborting the scan. Such a file parses to an empty
block instead of a keyword list, so it originally crashed with a
FunctionClauseErrorand then, once that was fixed, exited 1 with aconfiguration error. Since the file is read automatically, a stray
touch .sobelow-confor a truncated write was enough to break every scanin a project. Contents that cannot be interpreted are still an error.
--save-confignow storesignore_filesrelative to the project root.Absolute paths were previously baked into
.sobelow-conf, breaking thecommitted file on every other machine and in CI.
Config.Secretsnow reports the line of the secret itself when aconfigcall spans multiple lines. The line search compared a tuple against an
integer, so it never worked as intended.
~/.sobelowno longer fails a scan.conn.${atom_to_string(field)}..sobelow-confkeys are now genuinely sorted alphabetically..sobelow-confcan no longer stop Sobelow from scanning.--save-configwrote
versioninto every file it generated, somix sobelow --version --save-configproduced a committed file that madeevery later run print the version and exit 0 — a CI gate reading that
as a clean scan.
version,details,all-details,save-config, anddiffchoose what Sobelow does rather than configure a scan, and are nowaccepted on the command line only. One in the file is ignored, with a
warning when it would have changed anything.
versionis no longerwritten to the file in the first place.
# sobelow_skipcomments are no longer thrown away over whitespace. Thepattern demanded exactly one space after the
#and exactly one beforethe list, so
# sobelow_skip["XSS.Raw"],# sobelow_skip ["XSS.Raw"],and
# sobelow_skip [ "XSS.Raw" ]were all ignored — silently, andindistinguishably from a skip that had simply not applied. Spacing around
the marker, inside the list, and around commas is now irrelevant.
SQL.Queryno longer reports a project's ownquery/1as SQL injection.An unqualified
query/query!call was matched regardless of what itreferred to, so every call to a local function that happened to carry one
of those very ordinary names produced a finding. The unqualified form is
now only considered in a file that has
import Ecto.Adapters.SQLoruse Ecto.Repo— the two ways the bare name can actually reach Ecto.Qualified calls, such as
Repo.query/1andEcto.Adapters.SQL.query/3,are unaffected.
--no-router, for scanning a project that has no Phoenix router.Sobelow warned that it could not find one and offered no way to silence it,
which was noise for plain Elixir libraries. It is shorthand for
--router :none, which can also be set in.sobelow-confasrouter: :none. The router-dependent checks are skipped either way..sobelow-skipsis now written in sorted order, so regenerating it afterfixing or adding a finding produces a small diff instead of reshuffling the
file. Entries sort by type, file, and line number — numerically, so line 10
follows line 9 rather than line 1. The whole file is sorted, not just the
newly added entries, so the ordering holds however many times it is
regenerated. Comments and pre-v0.14 bare-fingerprint lines are preserved.
Pass
--legacy-skipsfor the previous append-only behaviour, which neverrewrites lines it did not add.
# sobelow_skipcomments now work on Phoenix router pipelines, not justfunctions. This makes
Config.CSRF,Config.Headers, andConfig.CSPsuppressible per pipeline instead of only via
--mark-skip-all, so an APIpipeline that legitimately has no
:protect_from_forgerycan be annotatedin place. Listing the parent
Configmodule skips every Config check onthat pipeline. As with function-level skips, this only takes effect under
--skip.# sobelow_skipcomment that cannot be read now warns on stderr, namingthe file and line, instead of being dropped without a word. Single quotes
and a list broken across several comment lines are still not accepted, but
they now say so rather than leaving you to wonder why the finding came
back.
--privatenow skips the version check entirely rather than still writingthe cache file. It makes no network requests and touches no files outside
the scanned project.
SOBELOW_HOMEis now documented, and is treated as the directory holdingthe version-check cache.
usage-rules.md, following theusage_rulesconvention, so projectsusing AI coding assistants can pull Sobelow's guidance into their agent's
context with
mix usage_rules.sync. It is shipped in the Hex package.AGENTS.mddocumenting the checker-module contract for contributors.Sobelow.ScanCase) that runs full scansagainst fixture applications under
test/fixtures/apps, plus regressioncoverage for every bug above. Line coverage went from 29% to 67%.
.sobelow-confprecedence,--exitand
--thresholdmapping, and thejson/sarif/quiet/txtrenderers.# sobelow_skipcomments, andunit coverage for how skips associate with pipelines in the AST.
Sobelow.ScanCase.temp_fixture_file/3now restores a committed fixture'soriginal contents instead of deleting the file, so a test can vary a
checked-in fixture without destroying it.
:preferred_cli_envproject key withdef cli.credoto~> 1.7.19; 1.7.12 crashed on Elixir 1.20.in the SARIF renderer.
Upgrade notes
Config.Secretsline numbers may change forconfigcalls that spanmultiple lines, and for files where the same secret value appears more than
once. Finding fingerprints include the line number, so any affected
.sobelow-skipsentries will stop matching and those findings will resurface.Re-run
mix sobelow --mark-skip-allif you rely on a committed skip file.escaped-quote secret exists in your config, you will see new findings where the
scan previously failed outright.
SOBELOW_HOMEsemantics changed from "path to the cache file" to "directoryholding the cache file". The previous behaviour raised a
MatchErrorfor thenatural usage, so this is unlikely to affect anyone.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: mix.lock