File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
javascript/ql/src/Security/CWE-730 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 43
43
<p >
44
44
45
45
The following server code checks if a client-provided file path is valid
46
- before saving data to it . It would be reasonable to expect that the
47
- server responds with an error response to client requests with invalid
48
- file paths . However, the server instead throws an exception, which is
46
+ before saving data to that path . It would be reasonable to expect that the
47
+ server responds with an error in case the request contains an invalid
48
+ file path . However, the server instead throws an exception, which is
49
49
uncaught in the context of the asynchronous callback invocation
50
50
(<code >fs.access(...)</code >). This causes the entire server to
51
51
terminate abruptly.
You can’t perform that action at this time.
0 commit comments