Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d5c47c9a
Commit
d5c47c9a
authored
Apr 15, 2015
by
Byron Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1031035: xmlrpc can be DoS'd with billion laughs attack
r=LpSolit,a=glob
parent
b09ffb65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
XMLRPC.pm
Bugzilla/WebService/Server/XMLRPC.pm
+2
-1
No files found.
Bugzilla/WebService/Server/XMLRPC.pm
View file @
d5c47c9a
...
@@ -135,7 +135,8 @@ sub new {
...
@@ -135,7 +135,8 @@ sub new {
my
$self
=
shift
->
SUPER::
new
(
@_
);
my
$self
=
shift
->
SUPER::
new
(
@_
);
# Initialise XML::Parser to not expand references to entities, to prevent DoS
# Initialise XML::Parser to not expand references to entities, to prevent DoS
require
XML::
Parser
;
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
;
return
$self
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment