File tree 6 files changed +5
-108
lines changed
6 files changed +5
-108
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ Forge ChangeLog
4
4
## 0.11.0 - 2021-xx-xx
5
5
6
6
### Removed
7
+ - ** SECURITY** , ** BREAKING** : Remove ` forge.debug ` API. The API has the
8
+ potential for prototype pollution. This API was only briefly used by the
9
+ maintainers for internal project debug purposes and was never inteneded to be
10
+ used with untrusted user intputs. This API was not documented or advertised
11
+ and is being removed rather than fixed.
7
12
- ** BREAKING** : Remove ` forge.task ` API. This API was never used, documented,
8
13
or advertised by the maintainers. If anyone was using this API and wishes to
9
14
continue development it in other project, please let the maintainers know.
Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ Documentation
80
80
* [ Tasks] ( #task )
81
81
* [ Utilities] ( #util )
82
82
* [ Logging] ( #log )
83
- * [ Debugging] ( #debug )
84
83
* [ Flash Networking Support] ( #flash )
85
84
86
85
### Other
@@ -1988,19 +1987,6 @@ __Examples__
1988
1987
// TODO
1989
1988
```
1990
1989
1991
- <a name =" debug " />
1992
-
1993
- ### Debugging
1994
-
1995
- Provides storage of debugging information normally inaccessible in
1996
- closures for viewing/investigation.
1997
-
1998
- __ Examples__
1999
-
2000
- ``` js
2001
- // TODO
2002
- ```
2003
-
2004
1990
<a name =" flash " />
2005
1991
2006
1992
### Flash Networking Support
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
* Copyright (c) 2010-2014 Digital Bazaar, Inc. All rights reserved.
7
7
*/
8
8
var forge = require ( './forge' ) ;
9
- require ( './debug' ) ;
10
9
require ( './tls' ) ;
11
10
require ( './util' ) ;
12
11
@@ -16,11 +15,6 @@ var http = module.exports = forge.http = forge.http || {};
16
15
// logging category
17
16
var cat = 'forge.http' ;
18
17
19
- // add array of clients to debug storage
20
- if ( forge . debug ) {
21
- forge . debug . set ( 'forge.http' , 'clients' , [ ] ) ;
22
- }
23
-
24
18
// normalizes an http header field name
25
19
var _normalize = function ( name ) {
26
20
return name . toLowerCase ( ) . replace ( / ( ^ .) | ( - .) / g,
@@ -484,11 +478,6 @@ http.createClient = function(options) {
484
478
true : options . persistCookies
485
479
} ;
486
480
487
- // add client to debug storage
488
- if ( forge . debug ) {
489
- forge . debug . get ( 'forge.http' , 'clients' ) . push ( client ) ;
490
- }
491
-
492
481
// load cookies from disk
493
482
_loadCookies ( client ) ;
494
483
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ require('./aes');
10
10
require ( './aesCipherSuites' ) ;
11
11
require ( './asn1' ) ;
12
12
require ( './cipher' ) ;
13
- require ( './debug' ) ;
14
13
require ( './des' ) ;
15
14
require ( './ed25519' ) ;
16
15
require ( './hmac' ) ;
Original file line number Diff line number Diff line change @@ -24,13 +24,9 @@ var sVL = 0;
24
24
// track tasks for debugging
25
25
var sTasks = { } ;
26
26
var sNextTaskId = 0 ;
27
- // debug access
28
- forge . debug . set ( cat , 'tasks' , sTasks ) ;
29
27
30
28
// a map of task type to task queue
31
29
var sTaskQueues = { } ;
32
- // debug access
33
- forge . debug . set ( cat , 'queues' , sTaskQueues ) ;
34
30
35
31
// name for unnamed tasks
36
32
var sNoTaskName = '?' ;
You can’t perform that action at this time.
0 commit comments