Closed dav3r closed 3 years ago
gophish-export is being too lenient when matching assessment IDs; it does not check that the assessment ID exactly matches the campaign IDs.
gophish-export
All of the following invocations result in the same assessment (TEST1234) being exported:
TEST1234
gophish-export T ... gophish-export TE ... gophish-export TES ... gophish-export TEST ... gophish-export TEST1 ... gophish-export TEST12 ... gophish-export TEST123 ... gophish-export TEST1234 ...
gophish-export should only export an assessment if the campaign IDs match exactly.
Good catch, thank you! I am going to look at fixing this with regex and add tests where possible.
🐛 Bug Report
gophish-export
is being too lenient when matching assessment IDs; it does not check that the assessment ID exactly matches the campaign IDs.To Reproduce
All of the following invocations result in the same assessment (
TEST1234
) being exported:Expected behavior
gophish-export
should only export an assessment if the campaign IDs match exactly.