retitle 707014 buggy magic: #!/bin/sh with embedded binary data reported as 
'data'
tags 707014 confirmed
forwarded 707014 http://mx.gw.com/pipermail/file/2014/001380.html
found 707014 1:5.17-0.1
thanks

Stephen Dowdy wrote...

> In some cases, 'file' misreports an explicitly declared '#!/bin/sh'
> POSIX shell script as 'data'.  My best guess is that these large
> files contain self-extracting binary payload which is being found by
> 'file', (...)

Jepp. The payload makes file believe this is binary data, but the
shell executable check is applied on text data only. See the URL above
for details, reproducer and a proposed fix.

    Christoph

Attachment: signature.asc
Description: Digital signature

Reply via email to