python: 3.13.18 RUN 1: vulnerable application open ports in the lab range: [8080] Findings against http://127.0.0.1:8080: 12 9.1 Critical Default administrator password accepted | admin/admin signed in, read the user list (HTTP 200) and changed a price (HTTP 200) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N 7.5 High Admin user list readable without signing in | 4 user records returned, with stored passwords | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 7.5 High Database backup downloadable, including user records | 10 rows of data in /backup.sql | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 7.5 High SQL injection reads the users table | search returned 4 user records | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 6.5 Medium Other users' invoices readable | alice's session read invoices [2, 3] | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N 6.1 Medium Reflected cross-site scripting | script element returned unescaped in an HTML page (not executed in a browser) | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 5.4 Medium Protective security headers missing | Content-Security-Policy, X-Content-Type-Options, X-Frame-Options | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N 4.8 Medium No limit on repeated failed logins | 12 wrong passwords, never refused | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N 4.2 Medium Session cookie lacks protective flags | missing HttpOnly, Secure, SameSite | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N 0.0 Info Database error message leaked | Database error: unrecognized token: "'" | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N 0.0 Info Repository metadata exposed | /.git/HEAD returned: ref: refs/heads/main | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N 0.0 Info Server banner states a version | LabServer/2.3.1 Python/3.13.18 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N Checks that found nothing: 1 ok: alice was refused the price change (HTTP 403) RUN 2: first round of fixes, default password still in place open ports in the lab range: [8081] Findings against http://127.0.0.1:8081: 2 9.1 Critical Default administrator password accepted | admin/admin signed in, read the user list (HTTP 200) and changed a price (HTTP 200) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N 0.0 Info Server banner states a version | LabServer Python/3.13.18 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N Checks that found nothing: 7 ok: admin user list refused without a session (HTTP 403) ok: search did not return user records for the injection string ok: script element was escaped in the HTML response ok: session cookie carries HttpOnly, Secure and SameSite ok: alice's session was refused invoices 2 and 3, also with a spoofed X-User header ok: alice was refused the price change (HTTP 403) ok: login refused after 5 wrong passwords RUN 3: default password replaced open ports in the lab range: [8081] Findings against http://127.0.0.1:8081: 1 0.0 Info Server banner states a version | LabServer Python/3.13.18 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N Checks that found nothing: 8 ok: admin user list refused without a session (HTTP 403) ok: search did not return user records for the injection string ok: script element was escaped in the HTML response ok: session cookie carries HttpOnly, Secure and SameSite ok: alice's session was refused invoices 2 and 3, also with a spoofed X-User header ok: alice was refused the price change (HTTP 403) ok: default administrator password was refused ok: login refused after 4 wrong passwords Planning and reporting: 2 x 1 = 2 days Web application: 4 x 2 = 8 days API: 3 x 1 = 3 days Network range: 2 x 1 = 2 days Cloud account: 3 x 1 = 3 days scoping model: tester days 18 black box 18.0 days grey box 15.3 days white box 14.4 days at an assumed day rate of 1200 the grey box test costs 18360 All three scans and the scoping model completed.