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

umputun / remark42 / 44148873698
87%

Build:
DEFAULT BRANCH: master
Ran 17 Nov 2026 06:36PM UTC
Jobs 1
Files 54
Run time 1min
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

17 Nov 2026 06:31PM UTC coverage: 86.183% (+0.04%) from 86.145%
44148873698

push

github

web-flow
Reject cross-site API requests that carry Basic auth (#2302)

* Reject cross-site API requests that carry Basic auth

Basic auth with ADMIN_PASSWD skips the XSRF check that guards cookie sessions,
and the API reflects any Origin with credentials. A browser that has cached the
admin credentials, which takes something in front of remark42 issuing a Basic
challenge, can replay them for a cross-site page, giving that page admin read
and write access over the API.

Requests with a Basic header are refused on /api/v1 when the browser marks them
cross-site with Sec-Fetch-Site or sends an Origin other than REMARK_URL's. CLI
tools and curl send neither header and keep working.

* Drop the default port from REMARK_URL in the cross-site Basic auth check

Browsers leave the default port out of the Origin header, so with
REMARK_URL=https://host:443 a same-origin Basic auth request from the admin's
browser was refused as cross-site.

20 of 20 new or added lines in 2 files covered. (100.0%)

6044 of 7013 relevant lines covered (86.18%)

42.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44148873698.1 17 Nov 2026 06:36PM UTC 54
86.18
GitHub Action Run
Source Files on build 44148873698
  • Tree
  • List 54
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 59d4ac3e on github
  • Prev Build on master (#42760018167)
  • Next Build on master (#44435303802)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc