Build 8 success
gitbay-security on main · ebe431af73 · queued 2026-11-08 04:00 UTC · finished 2026-11-08 04:55 UTC · ran 1m34s
setup
$ git clone ssh://git@127.0.0.1/krz/moonrise.git (ebe431af73)
step 1/2 mkdir -p "$GITBAY_RESULTS"
step 2/2 opengrep scan --quiet --disable-version-check --config /opt/opengrep-rules --sarif-output="$GITBAY_RESULTS/opengrep.sarif" .
┌──────────────────┐
│ 15 Code Findings │
└──────────────────┘
Packages/MoonriseKit/Sources/CAstronomy/astronomy.c
❯❱ opt.opengrep-rules.c.lang.security.insecure-use-memset
When handling sensitive information in a buffer, it's important to ensure that the data is securely
erased before the buffer is deleted or reused. While `memset()` is commonly used for this purpose,
it can leave sensitive information behind due to compiler optimizations or other factors. To avoid
this potential vulnerability, it's recommended to use the `memset_s()` function instead.
`memset_s()` is a standardized function that securely overwrites the memory with a specified value,
making it more difficult for an attacker to recover any sensitive data that was stored in the
buffer. By using `memset_s()` instead of `memset()`, you can help to ensure that your application
is more secure and less vulnerable to exploits that rely on residual data in memory.
▶▶┆ Autofix ▶ memset_s(bstate, 0, sizeof(body_state_t)
4655┆ memset(bstate, 0, sizeof(body_state_t));
⋮┆----------------------------------------
▶▶┆ Autofix ▶ memset_s(&shadow, 0, sizeof(shadow)
11403┆ memset(&shadow, 0, sizeof(shadow));
scripts/check-library.py
❯❱ opt.opengrep-rules.python.lang.security.audit.dynamic-urllib-use-detected
Detected a dynamic value being used with urllib. urllib supports 'file://' schemes, so a dynamic
value controlled by a malicious actor may allow them to read arbitrary files. Audit uses of urllib
calls to ensure user data cannot control the URLs, or consider using the 'requests' library instead.
23┆ with urllib.request.urlopen(req, timeout=20) as r:
scripts/make-clouds.py
❯❯❱ opt.opengrep-rules.python.lang.security.use-defused-xml
The Python documentation recommends using `defusedxml` instead of `xml` because the native Python
`xml` library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak
confidential data and "XML bombs" can cause denial of service.
16┆ import xml.etree.ElementTree as ET
❯❱ opt.opengrep-rules.python.lang.security.audit.dynamic-urllib-use-detected
Detected a dynamic value being used with urllib. urllib supports 'file://' schemes, so a dynamic
value controlled by a malicious actor may allow them to read arbitrary files. Audit uses of urllib
calls to ensure user data cannot control the URLs, or consider using the 'requests' library instead.
30┆ with urllib.request.urlopen(urllib.request.Request(url, headers={"User-Agent": UA}),
timeout=60) as r:
❯❯❱ opt.opengrep-rules.python.lang.best-practice.arbitrary-sleep
time.sleep() call; did you mean to leave this in?
104┆ time.sleep(1)
scripts/make-messier.py
❯❱ opt.opengrep-rules.python.lang.security.audit.dynamic-urllib-use-detected
Detected a dynamic value being used with urllib. urllib supports 'file://' schemes, so a dynamic
value controlled by a malicious actor may allow them to read arbitrary files. Audit uses of urllib
calls to ensure user data cannot control the URLs, or consider using the 'requests' library instead.
27┆ with urllib.request.urlopen(url, timeout=60) as r:
scripts/make-skycultures.py
❯❱ opt.opengrep-rules.python.lang.security.audit.dynamic-urllib-use-detected
Detected a dynamic value being used with urllib. urllib supports 'file://' schemes, so a dynamic
value controlled by a malicious actor may allow them to read arbitrary files. Audit uses of urllib
calls to ensure user data cannot control the URLs, or consider using the 'requests' library instead.
39┆ with urllib.request.urlopen(url, timeout=60) as r:
scripts/make-spacecraft.py
❯❱ opt.opengrep-rules.python.lang.security.audit.dynamic-urllib-use-detected
Detected a dynamic value being used with urllib. urllib supports 'file://' schemes, so a dynamic
value controlled by a malicious actor may allow them to read arbitrary files. Audit uses of urllib
calls to ensure user data cannot control the URLs, or consider using the 'requests' library instead.
37┆ with
urllib.request.urlopen(urllib.request.Request(f"https://ssd.jpl.nasa.gov/api/horizons.api?{
q}", headers={"User-Agent": UA}), timeout=120) as r:
❯❯❱ opt.opengrep-rules.python.lang.best-practice.arbitrary-sleep
time.sleep() call; did you mean to leave this in?
53┆ time.sleep(2)
scripts/make-tycho.py
❯❱ opt.opengrep-rules.python.lang.maintainability.return-not-in-function
`return` only makes sense inside a function
56┆ clamp = lambda x, lo, hi: max(lo, min(hi, x))
server/src/live.ts
❯❱ opt.opengrep-rules.javascript.lang.security.audit.detect-non-literal-regexp
RegExp() called with a `which` function argument, this might allow an attacker to cause a Regular
Expression Denial-of-Service (ReDoS) within your application as RegExP blocks the main thread. For
this reason, it is recommended to use hardcoded regexes instead. If your regex is run on user-
controlled input, consider performing input validation or use a regex checking/sanitization library
such as https://www.npmjs.com/package/recheck to verify that the regex does not appear vulnerable to
ReDoS.
68┆ const m = result.match(new RegExp(`${which} A\\.D\\. (\\d{4})-([A-Z]{3})-(\\d{2})
(\\d{2}):(\\d{2})`));
❱ opt.opengrep-rules.javascript.lang.correctness.missing-template-string-indicator
This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'?
68┆ const m = result.match(new RegExp(`${which} A\\.D\\. (\\d{4})-([A-Z]{3})-(\\d{2})
(\\d{2}):(\\d{2})`));
⋮┆----------------------------------------
68┆ const m = result.match(new RegExp(`${which} A\\.D\\. (\\d{4})-([A-Z]{3})-(\\d{2})
(\\d{2}):(\\d{2})`));
spikes/apns-worker/src/index.ts
❱ opt.opengrep-rules.generic.secrets.gitleaks.private-key
A gitleaks private-key was detected which attempts to identify hard-coded credentials. It is not
recommended to store credentials in source-code, as this risks secrets being leaked and used by
either an internal or external malicious adversary. It is recommended to use environment variables
to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware
Security Module).
46┆ const pem = `-----BEGIN PRIVATE KEY-----\n${btoa(String.fromCharCode(...der))}\n-----END
PRIVATE KEY-----`;
results uploaded