nerdexam
CompTIA

CAS-002 · Question #665

A network engineer at Company ABC observes the following raw HTTP request: GET /disp_reports.php?SectionEntered=57&GroupEntered=- 1&report_type=alerts&to_date=01-01-0101&Run=…

The correct answer is C. Sensitive data is transmitted in the URL. Embedding sensitive identifiers such as session tokens and usernames in URL query strings exposes them in server logs, browser history, and HTTP Referer headers sent to third parties.

Enterprise Security

Question

A network engineer at Company ABC observes the following raw HTTP request:

GET /disp_reports.php?SectionEntered=57&GroupEntered=- 1&report_type=alerts&to_date=01-01-0101&Run= Run&UserEntered=dsmith&SessionID=5f04189bc&from_date=31-10- 2010&TypesEntered=1 HTTP/1.1 Host: test.example.net Accept: / Accept-Language: en Connection: close Cookie: java14=1; java15=1; java16=1; js=1292192278001; Which of the following should be the engineer's GREATEST concern?

Options

  • AThe HTTPS is not being enforced so the system is vulnerable.
  • BThe numerical encoding on the session ID is limited to hexadecimal characters, making it
  • CSensitive data is transmitted in the URL.
  • DThe dates entered are outside a normal range, which may leave the system vulnerable to a

How the community answered

(37 responses)
  • A
    8% (3)
  • B
    5% (2)
  • C
    73% (27)
  • D
    14% (5)

Why each option

Embedding sensitive identifiers such as session tokens and usernames in URL query strings exposes them in server logs, browser history, and HTTP Referer headers sent to third parties.

AThe HTTPS is not being enforced so the system is vulnerable.

Using HTTP instead of HTTPS is a valid concern, but it is less critical than URL-based data exposure because even adding HTTPS would not prevent session tokens and usernames from appearing in logs and Referer headers.

BThe numerical encoding on the session ID is limited to hexadecimal characters, making it

A short hexadecimal session ID may have insufficient entropy, but the more immediate and broadly impactful vulnerability is the direct exposure of sensitive parameters in the URL itself.

CSensitive data is transmitted in the URL.Correct

Query string parameters are recorded in plain text in server access logs, browser history, bookmarks, and HTTP Referer headers forwarded to any third-party resource the page loads. In this request, UserEntered=dsmith and SessionID=5f04189bc are both present in the URL, meaning they can be harvested from logs or leaked externally via the Referer header. This information disclosure vulnerability persists regardless of whether transport-layer encryption is applied.

DThe dates entered are outside a normal range, which may leave the system vulnerable to a

Unusual date values such as 01-01-0101 could indicate an injection attempt, but the most clearly observable and impactful issue in this request is the disclosure of sensitive session and user data in the query string.

Concept tested: Sensitive data exposure via URL query string parameters

Source: https://owasp.org/www-community/vulnerabilities/Information_exposure_through_query_strings_in_url

Topics

#sensitive data exposure#URL parameters#web application security#HTTP analysis

Community Discussion

No community discussion yet for this question.

Full CAS-002 Practice