Skip to content

feat(scan): add login page, auth endpoint, and path detection feature - #98

Open
AbhiPra24 wants to merge 1 commit into
PhonePe:mainfrom
AbhiPra24:feature/login-page-path-detection
Open

feat(scan): add login page, auth endpoint, and path detection feature#98
AbhiPra24 wants to merge 1 commit into
PhonePe:mainfrom
AbhiPra24:feature/login-page-path-detection

Conversation

@AbhiPra24

Copy link
Copy Markdown

Summary of Changes

Addresses and fixes #96 by adding a dedicated scanner utility and scan module to detect login surfaces, authentication forms, and paths across discovered subdomains and active hosts.

Details

  • mantis/utils/login_detector.py: Utility with regex matching and heuristics for password inputs (<input type='password'>), username/email inputs, login action targets, SSO/OAuth indicators, and standard authentication path patterns.
  • mantis/modules/scan/LoginPageScanner.py: APIScanner module scanning active hosts and subdomains across known auth paths to discover exposed login portals and record informational findings into DB.
  • configs/local.yml: Registered LoginPageScanner under the scan stage.
  • tests/test_login_detector.py: Unit tests verifying path matching, password field detection, HTML form scoring, and scanner output parsing.

Fixes #96

- Add LoginDetector utility to detect password input fields, auth endpoints, forms, and SSO indicators
- Add LoginPageScanner module to scan subdomains and active hosts for exposed login surfaces
- Register LoginPageScanner in local.yml workflow configs
- Add unit tests for LoginDetector and LoginPageScanner

Fixes PhonePe#96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Subdomain, Login Page, and Path Detection Feature

1 participant