Skip to content

Commit

Permalink
Merge pull request Neo23x0#58 from JohnLaTwC/patch-9
Browse files Browse the repository at this point in the history
Create gen_libre_office_CVE_2018_16858.yar
  • Loading branch information
Neo23x0 authored Feb 5, 2019
2 parents 97d70bf + 312f78b commit ca3960b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions yara/gen_libre_office_CVE_2018_16858.yar
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
rule EXP_Libre_Office_CVE_2018_16858 {
meta:
description = "RCE in Libre Office with crafted ODT file (CVE-2018-16858)"
author = "John Lambert @JohnLaTwC / modified by Florian Roth"
date = "2019-02-01"
reference = "https://insert-script.blogspot.com/2019/02/libreoffice-cve-2018-16858-remote-code.html"
hash = "95a02b70c117947ff989e3e00868c2185142df9be751a3fefe21f18fa16a1a6f"
strings:
$s1 = "xlink:href=\"vnd.sun.star.script:" ascii nocase
$s2 = ".py$tempfilepager" ascii nocase
$s3 = "language=Python" ascii nocase
$tag = {3c 6f 66 66 69 63 65 3a 64 6f 63 }
condition:
uint32be(0) == 0x3c3f786d // <?xm
and $tag in (0..0100) // <office:doc
and all of ($s*)
}

0 comments on commit ca3960b

Please sign in to comment.