An issue was discovered in pfSense through 2.4.4-p3. widgets/widgets/picture.widget.php uses the widgetkey parameter directly without sanitization (e.g., a basename call) for a pathname to filegetcontents or fileputcontents.
{
"versions": [
{
"introduced": "0"
},
{
"fixed": "2.4.4"
},
{
"introduced": "0"
},
{
"last_affected": "2.4.4-NA"
},
{
"introduced": "0"
},
{
"last_affected": "2.4.4-p1"
},
{
"introduced": "0"
},
{
"last_affected": "2.4.4-p2"
},
{
"introduced": "0"
},
{
"last_affected": "2.4.4-p3"
}
]
}