Skip to content

Commit

Permalink
Bug 1031035: xmlrpc can be DoS'd with billion laughs attack
Browse files Browse the repository at this point in the history
r=LpSolit,a=glob
  • Loading branch information
globau committed Apr 14, 2015
1 parent 802a5cc commit bdd9c47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Bugzilla/WebService/Server/XMLRPC.pm
Expand Up @@ -138,7 +138,8 @@ sub new {
my $self = shift->SUPER::new(@_);
# Initialise XML::Parser to not expand references to entities, to prevent DoS
require XML::Parser;
$self->{_parser}->parser(parser => XML::Parser->new( NoExpand => 1, Handlers => { Default => sub {} } ));
my $parser = XML::Parser->new( NoExpand => 1, Handlers => { Default => sub {} } );
$self->{_parser}->parser($parser, $parser);
return $self;
}

Expand Down

0 comments on commit bdd9c47

Please sign in to comment.