diff options
| author | David Lönnhager <david.l@mullvad.net> | 2025-09-14 16:46:40 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2025-09-18 14:03:47 +0200 |
| commit | d9aadd756173fcb2d613419050733d07fbecdc1e (patch) | |
| tree | ad26122bc54e64ebdfb7a2cccfda3809fee2e169 /ci | |
| parent | 5b7d13731b4e7d38ae060dc3948b979237974ff7 (diff) | |
| download | mullvadvpn-d9aadd756173fcb2d613419050733d07fbecdc1e.tar.xz mullvadvpn-d9aadd756173fcb2d613419050733d07fbecdc1e.zip | |
Create custom action for Mullvad build env
Diffstat (limited to 'ci')
| -rwxr-xr-x | ci/check-trojan-source.sh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/ci/check-trojan-source.sh b/ci/check-trojan-source.sh deleted file mode 100755 index 1e35a05338..0000000000 --- a/ci/check-trojan-source.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -# This script scans text and source code for bidirectional Unicode characters. -# See CVE-2021-42574. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42574 -# UTF-8 encoding is assumed. - -# Pass the path to the directory to check as the first argument - -set -eu - -export LC_ALL=en_US.UTF-8 - -if [ $# -ne 1 ]; then - echo "Usage: $0 <path>" - exit 1 -fi -cd "$1" - -FILES=() -while IFS='' read -r line; do FILES+=("$line"); done < <( find . -type f -exec grep -Il . {} + ) - -CODEPOINT_REGEX=$( printf "\u202a\|\u202b\|\u202c\|\u202d\|\u202e\|\u2066\|\u2067\|\u2068\|\u2069" ) - -matched=0 -for file in "${FILES[@]}"; do - if grep -q "${CODEPOINT_REGEX}" "$file"; then - echo "Found potentially malicious unicode code points in $file" - matched=1 - fi -done - -if [[ "$matched" == 0 ]]; then - echo "No potentially malicious unicode found" -fi - -exit $matched |
