You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tales/tale3.html
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -7,22 +7,22 @@ <h2>The Tale of the Poisoned update</h2>
7
7
</section>
8
8
9
9
<section>
10
-
<h2>One Day…</h2>
10
+
<h2>One Day…</h2>
11
11
12
-
<h2> The site got compromised, and a PHP shell script was uploaded</h2>
12
+
<h2> The site got compromised, and a PHP shell script was uploaded.</h2>
13
13
<pclass="fragment">All modules were up to date.</p>
14
14
<pclass="fragment"> There were no known vulnerabilities in any of the modules that would have allowed for a PHP shell to be uploaded. </p>
15
15
16
16
</section>
17
17
<section>
18
-
<h2>What Was Found…</h2>
18
+
<h2>What Was Found…</h2>
19
19
<pclass="fragment"> Jack Merridew, the head of their webteam was able to see the php script was used to copy down the users table. </p>
20
20
<pclass="fragment"> While the script may have been able to download more parts of the database, the attacker left behind only a copy of the users table. </p>
21
21
<pclass="fragment"> The PHP script that was uploaded allowed the attacker to have file system access — the attacker could download any file, including files from Drupal's private file system. </p>
22
22
<pclass="fragment"> It also allowed the attacker to run and display the results of SQL queries.</p>
<p>A library from a module update was removed from the module. However, Jack only downloaded the new module, and did not remove the old module before updating. </p>
45
+
<p>A library from a module update was removed from the module. However, Jack only downloaded the new module, and did not remove the old module before updating. </p>
46
46
</section>
47
47
<section>
48
48
<imgsrc="tales/images/hacked.png">
49
49
</section>
50
50
51
51
<section>
52
-
<h2>Lessons learned</h2>
53
-
<p>Remove the library/module/theme before updating. This ensures that all old files are removed</p>
54
-
<p>Configure PHP so it will not execute code from directories it should not (sites/*/files) </p>
55
-
<p>Prevent the webserver from writing to directories that are not (sites/*/files) </p>
52
+
<h2>Lessons Learned</h2>
53
+
<p>Remove the library/module/theme before updating. This ensures that all old files are removed.</p>
54
+
<p>Configure PHP so it will not execute code from directories it should not (sites/*/files).</p>
55
+
<p>Prevent the webserver from writing to directories that are not (sites/*/files).</p>
56
56
<p> The security_review module can help with this.</p>
0 commit comments