Skip to content
Info disclosure Write-up Intermediate

SecurePwn Part 2: Leaking Remote Memory Contents (CVE-2023-22897)

An authenticated user could send a request after authentication that returned uninitialized memory contents in the sessionid field, leaking memory addresses and environment variables. This could aid in bypassing ASLR or disclosing sensitive information.

Julien Ahrens Follow

Published on rcesecurity.com

While my last finding affecting SecurePoint’s UTM was quite interesting already, I was hit by a really hard OpenSSL Heartbleed flashback with this one.

Julien Ahrens (@MrTuxracer), on rcesecurity.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an uninitialized variable was used in the JSON response, causing memory contents to be leaked.

Impact

An attacker with a low-privileged account could leak memory contents, potentially bypassing ASLR or disclosing environment variables.

What the attacker needed

Valid credentials for user portal; sessionId must be unused

The fix

The vulnerability was fixed by initializing the session ID variable before use.

How it was found

  1. Authenticate to the user portal to obtain a sessionId that has never been used.
  2. Send any subsequent request (even an empty one) using that sessionId.
  3. Observe the sessionid attribute in the response containing unreadable content.
  4. Inspect the hex view to see a memory address.
  5. Use BurpSuite's intruder to leak further memory contents such as environment variables.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When a program uses a variable without setting it first, it may contain leftover data from memory. Here, the server sent back that leftover data in a response, letting an attacker see things like memory addresses and environment variables.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Julien Ahrens

View all

17 more disclosed reports, best first.

More from SecurePoint

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.