Skip to content

Tech detection fails on root path, but works on .aspx endpoint (ASP.NET version missing) #2167

@onorridg

Description

@onorridg

httpx version:

v1.7.0

Current Behavior:

When using httpx with the -tech-detect flag, the ASP.NET technology (specifically version Microsoft ASP.NET:2.0.50727) is not detected when scanning the root path of the site (http://testaspnet.vulnweb.com/), even though the server response contains the following headers:

X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET

However, when making a request to a non-existent .aspx file (e.g., /nonexistent.aspx), httpx correctly detects and displays the ASP.NET version in the tech field.

Expected Behavior:

httpx -tech-detect should detect ASP.NET version regardless of the URL path suffix if the relevant headers are present in the response.

Steps To Reproduce:

  1. Run:
httpx -u http://testaspnet.vulnweb.com/ -tech-detect -json

❌ The "tech" field does not include ASP.NET version.

  1. Run:
httpx -u http://testaspnet.vulnweb.com/nonexistent.aspx -tech-detect -json

✅ The "tech" field includes: "Microsoft ASP.NET:2.0.50727"

Anything else:

  • Manual check with curl confirms the headers are also present on the root path:
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
  • It appears httpx uses the .aspx suffix as a heuristic for enabling ASP.NET detection, which leads to missing detections for other paths.
  • Would be useful if -tech-detect considered headers independently from the path.

Thanks for the great tool!


Reported on: 2025-05-07 10:22

Metadata

Metadata

Assignees

Labels

Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions