Environment: capcut-cli 0.26.0, CapCut desktop 8.7.0, Windows 11.
capcut fixture <project> --out <dir> reported 36 redactions (windows_user_fwd, windows_user, device_ids, macos_user). The real Windows username nevertheless survived in draft_meta_info.json, in the draft_root_path value. In the raw file it is stored with JSON-escaped backslashes:
"draft_root_path":"C:\\Users\\<real-name>\\AppData\\Local\\CapCut\\User Data\\Projects\\com.lveditor.draft"
Forward-slash paths (C:/Users/<name>/…) were all redacted correctly. Only this escaped-backslash form slipped through.
Expected: the bundle contains no real username.
Suggestion: redact on parsed JSON string values, or match \\\\Users\\\\<name> on the raw text as well. A final check on the bundle for the current USERNAME / os.userInfo().username would also catch it.
We redacted the value by hand before sharing our bundle (see #50, https://gist.github.com/fpisasale/8b344dccd4f4a731a35ef49ca55f0ff0).
— Spirito Digitale
Environment: capcut-cli 0.26.0, CapCut desktop 8.7.0, Windows 11.
capcut fixture <project> --out <dir>reported 36 redactions (windows_user_fwd,windows_user,device_ids,macos_user). The real Windows username nevertheless survived indraft_meta_info.json, in thedraft_root_pathvalue. In the raw file it is stored with JSON-escaped backslashes:Forward-slash paths (
C:/Users/<name>/…) were all redacted correctly. Only this escaped-backslash form slipped through.Expected: the bundle contains no real username.
Suggestion: redact on parsed JSON string values, or match
\\\\Users\\\\<name>on the raw text as well. A final check on the bundle for the currentUSERNAME/os.userInfo().usernamewould also catch it.We redacted the value by hand before sharing our bundle (see #50, https://gist.github.com/fpisasale/8b344dccd4f4a731a35ef49ca55f0ff0).
— Spirito Digitale