Giter Site home page Giter Site logo

edoardottt / csprecon Goto Github PK

View Code? Open in Web Editor NEW
313.0 6.0 36.0 6.32 MB

Discover new target domains using Content Security Policy

Home Page: https://edoardoottavianelli.it

License: MIT License

Go 98.16% Makefile 1.84%
hacking bugbounty bugbounty-tool recon reconnaissance bounty-hunting information-retrieval recon-tool security security-tools

csprecon's People

Contributors

dependabot[bot] avatar edoardottt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

csprecon's Issues

Support for JSON output

Having JSON output as an option would be nice, especially when doing -l targets.txt, for example

{"x.subdomain.com" : ["new.subdomain.com",  "second.subdomain.com", "etc.."]}

Just mapping the specific taarget to the domains found from CSP.

Fix "Path Traversal in MHolt Archiver" Security Alert

Fix Path Traversal in MHolt Archiver dependabot security alert. It isn't sure if csprecon is affected (not likely because the import is indirect).

Dependabot can't find a published or compatible non-vulnerable version for https://github.com/mholt/archiver

All versions of archiver allow attacker to perform a Zip Slip attack via the "unarchive" functions. It is exploited using a specially crafted zip archive, that holds path traversal filenames. When exploited, a filename in a malicious archive is concatenated to the target extraction directory, which results in the final path ending up outside of the target folder. For instance, a zip may hold a file with a "../../file.exe" location and thus break out of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

Affected versions: >= 3.0.0, < 3.3.2
Patched version: 3.3.2

Add Goreleaser

In resource-constrained environments we sometimes cannot afford to install full-blown Go + build packages with it: good practice is to have pre-packaged binary releases for each platform.

You can include this in a GitHub action workflow, by leveraging something like the https://github.com/marketplace/actions/go-release-binaries action which automates the process.

For reference:

Add Scope Constraint Optional Argument

Is your feature request related to a problem? Please describe.
It would be a nice feature to optionally include a scope constraint by domain so that results are constrained to only subdomains of the specified constraint domain or a list of constraint domains in a file.

Describe the solution you'd like
When --scope example.com is specified, only return subdomains of *.example.com. Ex:
api.example.com
foobarbaz.example.com
etc...

Describe alternatives you've considered
I'd like to use this tool but currently too many third-party hosts are returned and it would be very useful to only get hosts that are in-scope for a penetration test that you're authorized to test.

Additional context
I could manually parse the output results to filter out-of-scope items but this would be a great feature to have built-in to the project.

install bug

Describe the bug
A clear and concise description of what the bug is.

go install github.com/edoardottt/csprecon/cmd/csprecon@latest
# github.com/projectdiscovery/utils/maps
/root/go/pkg/mod/github.com/projectdiscovery/[email protected]/maps/synclock_map.go:15:18: undefined: atomic.Bool
note: module requires Go 1.19
go version 
go version go1.18.1 linux/amd64

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.