• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Logflare / logflare / 6658d9486152f4614e9074597d5a573911d2d819
81%

Build:
DEFAULT BRANCH: main
Ran 25 May 2026 03:39PM UTC
Jobs 1
Files 477
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 May 2026 03:26PM UTC coverage: 80.489% (+0.09%) from 80.399%
6658d9486152f4614e9074597d5a573911d2d819

push

github

web-flow
fix: SSRF vulnerability in WebhookAdaptor URL validation (#3420)

* Fix SSRF vulnerability in WebhookAdaptor URL validation

* Extract IP-blocking helpers to Logflare.Utils.SSRF, condense tests

* Explicitly block AWS EC2 IMDS IPv6 endpoint (fd00:ec2::254)

* Remove redundant explicit AWS IMDS IPv6 clause, keep coverage in test

* Refactor check_hostname_ssrf into composed private functions

* Fix DNS TOCTOU / rebinding: enforce SSRF check at request time

Adds SSRF.safe_resolve/1 which returns the resolved IP address (not just
:ok), and a new SSRFProtection Tesla middleware that re-checks on every
outbound webhook request. For HTTP URLs the middleware rewrites the URL
to the resolved IP so Finch connects directly without re-resolving DNS,
closing the TOCTOU window entirely. For HTTPS, DNS re-resolution is
checked at request time and TLS certificate validation provides a
secondary defence.

Also simplifies validate_no_ssrf/1 in WebhookAdaptor to delegate to
SSRF.safe_resolve, removing the now-redundant private resolution
functions.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Brian <brianshan@gmail.com>

33 of 34 new or added lines in 4 files covered. (97.06%)

12685 of 15760 relevant lines covered (80.49%)

3802.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
86.05
-2.05% lib/logflare_web/utils.ex
Jobs
ID Job ID Ran Files Coverage
1 6658d9486152f4614e9074597d5a573911d2d819.1 25 May 2026 03:39PM UTC 477
80.49
GitHub Action Run
Source Files on build 6658d9486152f4614e9074597d5a573911d2d819
  • Tree
  • List 477
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6658d948 on github
  • Prev Build on main (#0BE38C1A...)
  • Next Build on main (#187D5021...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc