Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positives on COM.FLOW.FilePath erros #177

Open
labeyrb opened this issue Jan 7, 2020 · 1 comment
Open

False positives on COM.FLOW.FilePath erros #177

labeyrb opened this issue Jan 7, 2020 · 1 comment

Comments

@labeyrb
Copy link

labeyrb commented Jan 7, 2020

Expected behavior

We don't expect a COM.FLOW.FilePath error when :

  • using basename to get the name of a script/file
  • setting the variable PATH
  • redirecting the stderr of a command in /dev/null
  • using the result of a command (id or echo) to set a variable
  • using a sql request
  • using a loop on a file (done < $filein)

Actual behavior

For the following parts of script, a COM.FLOW.FilePath error is raised :
image
image
image
image
image
image
image

Below the iCode results :
image
image
image

Steps to reproduce behavior

Detection version

3.0

@leleur
Copy link

leleur commented Apr 29, 2021

Hello everyone,

In the version 4.0, some previous behavior are still present. For example of th following lines of script :

  1. current_users= " $( id -u -n ) " --> It is forbidden to use a file name such as id directly.

  2. done < Date_produit.txt --> It is forbidden to use a file name such as done directly.

  3. dateYmAvant= $( date -d "-1 month" +%Y -%m ) --> It is forbidden to use a file name such as date directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants