# Bug OP-18908 - Mime Type detection can be tricked into sending params to the file tool

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-18908

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 17.0.4 |
| Observed in versions | 13.0.0 |
| Sprint | 17.0.4 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.0.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Klaus Zanders |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Create a file named `--help`
    
2.  Upload it as an attachment
    

### What is the buggy behavior?

*   The file command is executed as `file -b --mime --help` causing the help output to be rendered
    

### What is the expected behavior?

1.  The filename is handled as the filename. This can be ensured by providing `--` after the end of options. Telling the tool that now no more options are passed.
    

###   

This was reported over YWH, but because a security bypass is not presented, we treat this as a bug.
