Skip to content

v1.0.1 — code scanning fixes

Latest

Choose a tag to compare

@akly akly released this 27 Nov 04:00
Immutable release. Only release title and notes can be modified.
277fedc

Fixes for GitHub code scanning (CodeQL) alerts. No changes to the guide's text, rules or skills' behaviour.

  • Ask Trevor example: plainText removed HTML tags and comments in a single pass, so input such as <<b>script> left a tag behind once the inner one was removed. Tags and comments are now replaced with a space, repeatedly, so the pieces can't join up again, and any < still left becomes ‹, so nothing can open markup (an unclosed <!-- or <script, say). If you copied this sanitiser into your own server, update it. Tests now cover each case (57, up from 50).
  • Audit sandbox: the logging network sink listened on every interface of its container. It now listens only on its own address on the sandbox's closed network.
  • Not changed: the alert on sandbox/canaries.py was about the deliberately fake credentials the sandbox plants to detect theft, and was dismissed as a false positive.

Full details in CHANGELOG.md.