Commit Graph

2138 Commits

Author SHA1 Message Date
Dominik
d1b4c8c407
chore(helm): add pod annotations (#7222) 2024-06-26 00:51:45 -04:00
Nicolas Giard
2e35ebf1dc
docs: Update README.md 2024-06-14 04:42:48 -04:00
Nicolas Giard
904260fd44
fix: set no-store cache control on jwt renew response 2024-05-23 23:01:38 -04:00
Ethan
1238d614e1
Merge pull request from GHSA-xjcj-p2qv-q3rf
* Update render.js

# Improved handling of mustache expressions and v-pre attribute assignment

## Changes Made:
- Ensured that the parent tag of such text nodes is explicitly set to a `<p>` tag with the `v-pre` attribute.
- Added debug messages for better understanding of the script execution flow [THIS SHOULD REMOVED WHEN PUSHING TO PRODUCTION].

## Why it Works:
- When a mustache expression is found, the script either wraps it in a new `<p>` tag with the `v-pre` attribute or adds the `v-pre` attribute to the existing parent `<p>` tag.
- This approach ensures that the template code is not removed but encapsulated within `<p>` tags with the `v-pre` attribute, as required.

## Test Cases Passed:
1. `<xyz>{{ constructor.constructor('alert(1)')() }}</xyz>`
2. `<xyz>{{ constructor.constructor('alert(1)')() }}</xyz>`
3. `<p><xyz>{{ constructor.constructor('alert(1)')() }}</p>`
4. `<p><xyz>{{ constructor.constructor('alert(1)')() }}</xyz></p>`
5. `<p>&lt;xyz&gt;{{constructor.constructor('alert("Test Case 8")')()}}&lt;xyz&gt;{{constructor.constructor('alert("Test Case 9")')()}}&lt;/xyz&gt;</p>`

This commit enhances the robustness and reliability of handling mustache expressions and ensures proper assignment of the `v-pre` attribute, to ensure that there is no room for the weaponization of the template code later in the rendering process.

* fix: move template expressions after dom-purify + handle text nodes without parent

---------

Co-authored-by: NGPixel <github@ngpixel.com>
2024-05-13 14:57:17 -04:00
Nicolas Giard
98c04fe18e
docs: Update README.md 2024-04-29 17:12:17 -04:00
Nicolas Giard
854ec230dd
ci: Update build.yml 2024-04-29 15:12:22 -04:00
Nicolas Giard
a28b525894
docs: Update SECURITY.md 2024-04-29 14:24:28 -04:00
CDN
f1161aed59
fix: make comment module "Artalk" work with newer versions (#6901)
* feat: update comment module "Artalk"
* fix: update code.yml

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
2024-04-24 20:58:53 -04:00
Sukka
3a7ce75a1e
refactor(templates): replace polyfill.io (#7032) 2024-04-24 20:53:45 -04:00
Karol Rudnikowski (dxdroni)
f54551ee69
fix: page pagination in tags component (#7061) 2024-04-24 20:50:53 -04:00
Nicolas Giard
abdd2f0d17
fix: remove upper range node.js version check 2024-04-24 20:46:11 -04:00
Nicolas Giard
66ca18c499
docs: Update README.md 2024-03-16 01:15:24 -04:00
craph
d5af4cb068
chore: fix python issue for node18 in dev Dockerfile (#7029)
* Fix: email toLowerCase

* Fix python issue for node18 in Dockerfile
2024-02-28 16:07:19 -05:00
Nicolas Giard
ece5753ebb
docs: Update README.md 2024-02-07 15:31:49 -05:00
Nicolas Giard
b1e1759f25
fix: set securityTrustProxy to false by default 2024-01-28 20:03:06 -05:00
Jasmine Tai
99e74e8eb2
feat: upgrade markdown-it-emoji to 3.0.0 (#6945) 2024-01-22 20:20:01 -05:00
Nicolas Giard
34c037c68b
docs: Update README.md 2024-01-21 00:32:01 -05:00
aelgasser
38a46e68ea
feat: sync groups with SAML provider (#6299)
* feat: added implementation for group mapping in SAML strategies

---------

Co-authored-by: Abderraouf El Gasser <abderraouf.elgasser@iktos.com>
Co-authored-by: Nicolas Giard <github@ngpixel.com>
2023-11-20 16:59:33 -05:00
Nicolas Giard
fd91caff1d
docs: Update README.md 2023-10-27 17:15:21 -04:00
Nicolas Giard
16245caeff
docs: Update README.md 2023-10-18 21:35:12 -04:00
Pablo
8932d15c0c
fix: typo in kroki name (#6745) 2023-09-24 23:30:28 -04:00
Nicolas Giard
b19c4e4f23
docs: Update README.md 2023-09-20 16:42:49 -04:00
Nicolas Giard
4ce301d37c
docs: Update README.md 2023-09-19 20:48:55 -04:00
Jaeseo Park
c4c41be81a
chore: upgrade markdown-it-pivot-table version (#6707) 2023-09-07 19:30:34 -04:00
Nicolas Giard
ef174143ae
docs: Update README.md 2023-09-04 00:14:56 -04:00
Nicolas Giard
2180592ade
ci: fix build.yml 2023-09-01 19:09:16 -04:00
Nicolas Giard
7312de7332
ci: fix build.yml 2023-09-01 18:43:10 -04:00
Nicolas Giard
c66bc1c7c1
ci: fix build.yml 2023-09-01 18:26:28 -04:00
Nicolas Giard
c18a832a3a
docs: Update README.md 2023-08-23 19:18:22 -04:00
Nicolas Giard
cd390ec544
docs: update README.md 2023-08-22 15:53:27 -04:00
Nicolas Giard
8259f0dee6
ci: manually patch extract-files package for windows build 2023-08-18 00:04:23 -04:00
Nicolas Giard
095f8cec7a
ci: fix missing patch-package in windows build 2023-08-17 19:47:07 -04:00
Nicolas Giard
eb91563a0b
ci: fix missing patches folder in docker images 2023-08-10 19:08:25 -04:00
Nicolas Giard
cae50a70d9
ci: add patch-package to docker build 2023-08-10 18:56:38 -04:00
Jason Minard
491d63ceee
fix(auth): keycloak authentication post logout redirect for Keycloak 18+ (#5878) 2023-08-10 17:45:06 -04:00
NGPixel
3855d2c853
fix: add node 18 + 20 compatibility 2023-08-10 17:15:02 -04:00
Jaeseo Park
d75fc76c0c
feat: add markdown-it-pivot-table rendering module (#6574)
* feat: markdown-it-pivot-table

* chore: upgrade dependency version

* style: remove semicolon in renderer.js

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
2023-07-28 14:34:42 -04:00
Andrew McFadden
db8a09fe8c
feat: add ACR Value option to OIDC Module (#6553)
---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
2023-07-05 18:18:21 -04:00
matt1097
f02b7ba94e
fix(git): Reduce git concurrency to avoid lock file conflicts. (#6511) 2023-06-16 17:07:31 -04:00
CDN
4e5e8309a6
feat: add v2 of analytics module umami (#6442)
* feat: create analytics module umami2

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
2023-06-03 23:21:27 -04:00
Kyle Gehmlich
545ba4ec95
fix: remove duplicate query parameters on HTTPS redirect (#6460)
HTTPS redirection rebuilds the full URL using req.originalUrl, which
includes query parameters (see
https://expressjs.com/en/api.html#req.originalUrl). Prior to this patch,
appending the stringified query params to req.originalUrl resulted in
duplicate parameters, e.g.
wiki.js/callback?session=123&code=abc?session=123&code=abc
which caused errors when being redirected from an insecure (http://)
callback URL to a secure version when using OIDC (e.g. with keycloak).

This issue is probably rare, but in cases where HTTPS redirection is
enabled and a user tries to hit an insecure URL with query parameters,
it could cause problems.
2023-06-03 23:19:01 -04:00
Nicolas Giard
3bf1d9cf28
fix: disable template compilation in source view 2023-06-03 23:15:22 -04:00
Nicolas Giard
55bd9944f5
docs: update BACKERS 2023-05-22 18:36:02 -04:00
Nicolas Giard
56547f716a
docs: update README.md 2023-05-19 14:05:00 -04:00
Nicolas Giard
e059fbb47d
docs: update BACKERS 2023-05-15 12:17:17 -04:00
Nicolas Giard
6fac7a3749
docs: update BACEKRS 2023-05-13 16:22:19 -04:00
Nicolas Giard
e1d282ad11
feat: warn and exit on unsupported node version 2023-05-11 21:10:15 -04:00
DerekJarvis
fd00272314
feat(auth): allow custom GitLab endpoints for self-managed instances (#6399)
* Allow custom GitLab endpoints for self-hosting

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
2023-05-11 20:42:17 -04:00
Nicolas Giard
5b80b5e850
docs: update BACKERS 2023-04-28 18:07:35 -04:00
Nicolas Giard
f4cf60bbe3
docs: update BACKERS 2023-04-18 17:45:26 -04:00