T09 · Insecure Skill Coding Practices
- Location
job_applier.py:437- Finding
Resume PII Can Be Submitted to Unvalidated Arbitrary Destinations
- Content
View full analysis
str: url_lower = url.lower() if "linkedin.com/jobs" in url_lower: return "linkedin" if "indeed.com" in url_lower: return "indeed" if "greenhouse.io" in url_lower: return "greenhouse" if "lever.co" in url_lower: return "lever" if "myworkdayjobs.com" in url_lower or "workday.com" in url_lower: return "workday" if "glassdoor.com" in url_lower: return "glassdoor" if "naukri.com" in url_lower: return "naukri" if "smartrecruiters.com" in url_lower: return "smartrecruiters" if "jobs.ashbyhq.com" in url_lower: return "ashby" return "generic" ``` ```python def _apply_generic(page, args: argparse.Namespace, url: str): """Generic heuristic applier for unknown portals.""" time.sleep(2) if _has_file_upload(page): _fill_common_fields(page, args) _output("manual_required", "Application requires file upload. Fields pre-filled where possible.", page.url) return filled = _fill_common_fields(page, args) for sel in [ "button[type='submit']", "input[type='submit']", "button:has-text('Submit')", "button:has-text('Apply')", "button:has-text('Send Application')", "*[data-testid*='submit' i]", ]: try: btn = page.locator(sel) if btn.count() > 0 and btn.first.is_visible(): btn.first.click() time.sleep(2) _output("applied", f"Generic form submitted. Fields filled: {', '.join(sorted(filled)) or 'none detected'}", page.ur ...[truncated 3723 chars]- Remediation
View remediation
