Skip to content

VCC-compiler: Syntax error for breach #9

@DaiYamatta

Description

@DaiYamatta

enable include "/etc/varnish/security/breach.vcl";

this code is syntax error.

varnishd -d -f default.vcl
Message from VCC-compiler:
Syntax error at
('/etc/varnish/security/breach/40_generic_attacks.vcl' Line 5 Pos 78)
if(req.http.Cookie ~ "(?:(?:[;|]\W*?\bcc|\b(wget|curl))\b|\/cc(?:[\'\"|\;-\s]|$))"){
-----------------------------------------------------------------------------#-----------------

Running VCC-compiler failed, exit 1

VCL compilation failed

varnishd -d -f /etc/varnish/default.vcl
Message from VCC-compiler:
Expected ')' got 'validateUtf8Encoding'
(program line 73), at
('/etc/varnish/security/breach/20_protocol_violations.vcl' Line 256 Pos 15)
if(req.url validateUtf8Encoding ""){
--------------####################-----

Running VCC-compiler failed, exit 1

VCL compilation failed

varnishd -d -f /etc/varnish/default.vcl
Message from VCC-compiler:
Unknown token '%' when looking for BOOL

('/etc/varnish/security/breach/30_http_policy.vcl' Line 5 Pos 8)
if((%{tx.allowed_methods}) ~ "req.request"){
-------#---------------------------------------

Running VCC-compiler failed, exit 1

VCL compilation failed

as is code comment out is running !!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions