Skip to content

Commit 992c8c3

Browse files
Minor tweaks of lab deserialization
Signed-off-by: David A. Wheeler <[email protected]>
1 parent c44a771 commit 992c8c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/labs/deserialization.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
128128
<p>
129129
Change the code below, adding the mitigation steps to prevent Insecure Deserialization:
130130
<ol>
131-
<li>Use a deserialization approach that prevents code execution.</li>
132-
<li>Validate the username making sure a reply is only sent if it's a <b>string</b> and no longer than <b>20 characters</b>.</li>
131+
<li>Use a deserialization approach that prevents code execution of untrusted code.</li>
132+
<li>Validate the username making sure a reply is only sent if it's a <b>string</b> and less than <b>20 characters</b>.</li>
133133
</ol>
134134
<form id="lab">
135135

136-
<pre><code>
137-
const express = require('express');
136+
<pre><code
137+
>const express = require('express');
138138
const cookieParser = require('cookie-parser');
139139

140140
const app = express();

0 commit comments

Comments
 (0)