Skip to content

v2.11.0

Latest

Choose a tag to compare

@GamehunterKaan GamehunterKaan released this 01 Dec 10:13
· 6 commits to main since this release
af75755

AutoPWN Suite v2.11.0

Functional changes

  • Offline keyword searches scan a new descriptions table of the local vulnerability database, which
    holds only each CVE's ID and searched description, and read the stored record only for the matches,
    instead of reading every record of the cves table. On the full NVD mirror (about 417,000 CVEs) a
    search for a specific product took 0.3 to 0.35 s instead of 1.0 to 1.9 s on one Windows machine; searches
    that match thousands of CVEs gain less, since decoding the matches dominates. Results are unchanged. The
    table makes the database about 210 MB larger. The next --update-vuln-db builds it from the descriptions
    the database already holds, without downloading the feeds again; until then a database without it is
    searched as before. A database last updated by an earlier release, which would leave the table stale, is
    also searched as before and gets the table rebuilt at its next update.

  • The Arch Linux AUR package python-autopwn-suite, last updated for 2.1.5, is maintained from
    packaging/aur/PKGBUILD and updated by CI (publish-aur.yml) after each stable PyPI release. The
    PKGBUILD now builds the poetry-core sdist with python-build and python-installer, checks its sha256,
    and lists the current dependencies, the Apache-2.0 license and the GitHub upstream URL.

  • Scans that use the local vulnerability database search it for up to four services at once, in the CLI,
    the dashboard and the Python API. Each search scans every CVE description in SQLite, so a host with several services is looked up about twice as fast. Results, their order and
    the output are unchanged. Online NVD lookups still run one at a time because of NVD's rate limit. Ctrl+C
    during a local lookup on the command line still skips that service, and the services after it are
    still looked up.

  • The default auto vulnerability source searches a local database updated within the last 7 days
    instead of NVD, so it is faster and needs no API key; with an older or no local database it tries NVD
    first and falls back to the local one as before. The scan is not offline either way: exploit downloads,
    web checks and notifications still run. The local database now stays up to date on its own: before an
    auto scan the CLI updates one that is a day old, and the dashboard does the same in the background
    while the new Settings switch "Keep the local database up to date automatically"
    (vulnerability_db_auto_update, on by default) is on. Only the yearly feeds that changed download.
    Without a local database, auto scans recommend downloading it (in the CLI output and in the dashboard's
    scan log), as do the dashboard's Settings; nothing downloads a first database on its own. --vuln-db-status and GET /api/vulnerability-database report
    fresh and refresh_due, and the dashboard's Settings badge also marks a database older than 7 days.

  • The Turkish command-line catalog was regenerated: it now translates the local database messages above
    and the release-manifest, update-method and update-command messages that were missing from it. The new
    entries are machine-translated and marked fuzzy for review, like the rest of the catalog.

  • After a temporary failure loading the dashboard session, the next dashboard request retries
    automatically. Recovery preserves account edits and validation messages without a page reload.

  • The reflected XSS check and the dashboard's PoC re-verification report a script element or HTML event
    handler only when its code is the payload's own (alert('…') for the four built-in payloads), or an inline
    script whose text holds the payload's raw markup up to its trailing </script>, where the payload breaks
    out of an existing script. A page that echoed the payload raw where it runs nothing, such as a quoted
    attribute value, and also carried an escaped copy in a script, such as a JSON state object, was reported
    as "Unescaped reflection in script element" and confirmed on re-verification (#125).

  • Web request pacing counts the delay from the end of the previous request (its response read, or its
    failure), not from its start. The pause shrank by the time the target took to answer, and a target
    slower than the delay got none: with a 2-second delay and 3-second answers, each request went out as
    soon as the previous answer arrived. TLS handshakes are paced the same way. The README described the
    old behaviour ("between request starts") (#127).

  • The dashboard's notification e-mail shows the targets and options Nmap recorded for each port scan the
    job ran, as nmap followed by them, one "Command:" line per scan, instead of a command rebuilt from the
    scan mode, speed and host timeout. It leaves out the Nmap executable path and the options the scanner adds
    for its own output and progress (-oX -, -v, --stats-every 1s).
    The rebuilt line always held -sS and -O, which the scanner drops without root; it put -sS in front
    of a scan technique chosen in the form, which replaces it; and a web-only scan, which runs no Nmap, still
    got an Nmap command. An e-mail of a scan that ran no port scan has no "Command:" line (#128).

  • PUT /api/settings refuses a key the settings do not have (400 unknown_setting) and a value of the
    wrong type for nist_api_key or an email or webhook field (400 invalid_setting_type), and stores
    nothing from that request. smtp_port must be a JSON integer from 1 to 65535, not a boolean or numeric
    text. A valid partial update is still merged.

  • install.sh installs the dependencies from requirements-locked.txt by default, so an installation gets the
    lockfile's exact versions instead of the newest ones pyproject.toml allows. It no longer upgrades pip,
    setuptools and wheel in the new virtual environment, and builds the package from the checkout into a wheel
    that it then installs. A REQUIREMENTS_FILE must now exist and carry a hash for every package; a missing
    one stops the script before it changes anything. Every package comes from a prebuilt wheel
    (--only-binary=:all:), so a platform without wheels for a dependency fails instead of compiling it.

  • When the dashboard starts, unknown keys in the settings file (such as ones an earlier release stored)
    are dropped, a wrong-typed nist_api_key, language or email or webhook field takes its default,
    and a copy of the file is kept beside it. A non-boolean offline_mode or update_auto_check, or an
    email or webhook value that is not an object, still starts the dashboard with offline mode on.

Security changes

  • Each parallel local lookup opens its own read-only connection to the vulnerability database. A lookup
    whose connection finds a database other than the scan's snapshot (on POSIX, one an update put in place
    since the scan opened it) runs again on the scan's own connection, so a scan never mixes records from two
    databases. The memory bound on the
    records a search reads (256 MiB) now applies to each of up to four searches at once.
  • No security impact. Keyword searches read the same local database through the same read-only snapshot,
    parameterized queries and size limits; a copied database's descriptions table now decides which records
    a keyword search returns, as its cves descriptions did before, and a description that is not text still
    makes the search fail as an unusable database.
  • The dashboard and auto CLI scans now download NVD feed updates without an explicit request, from the
    same official HTTPS feeds with the same size and SHA-256 checks as --update-vuln-db. They never do in
    offline mode, with --vuln-source online or offline, or while a dashboard scan runs; the dashboard
    tries at most once an hour, and a failed update keeps the previous database. A copied database sets
    its own update time, so auto treats one without a time zone, or ahead of now, as not fresh: it cannot
    keep scans off NVD by claiming a future date.
  • A third stored secret, AUR_SSH_PRIVATE_KEY, lives only in the aur environment. Only the AUR push job
    reads it; that job checks out no code, pins the AUR SSH host key and runs only git. The package is built
    and smoke-tested beforehand in a separate job that holds no secret, and makepkg checks the sdist
    downloaded from PyPI against the digest PyPI reports. That build job installs Arch packages from the
    signed Arch repositories, which cannot be hash-pinned.
  • Session recovery keeps the existing sign-in and CSRF requirements.
  • No security impact. The change removes a false XSS candidate from scan results and keeps reporting a
    payload reflected raw inside an existing inline script; the target's response is parsed as before and no
    new request is sent.
  • No security impact. The configured delay is now kept against slow targets, so a scan sends requests
    less often than before, never more often.
  • No security impact. The e-mail goes to the same recipients and the command lines come from the scan's own
    Nmap XML; they name the hosts that were scanned, which the e-mail's host sections already list, and not
    the path of the Nmap executable.
  • Settings input is validated with an allowlist of keys and types. No security impact: only a signed-in
    operator could store the extra keys and values.
  • install.sh downloads only packages whose hashes are pinned in the checkout: the dependencies with
    --require-hashes from REQUIREMENTS_FILE, and the poetry-core build backend from the new
    packaging/requirements-install.txt; the package's wheel is built without build isolation, so pip fetches
    no unpinned build tools. Before, it took the newest pip, setuptools and wheel without a hash check, fetched
    the pinned poetry-core without one, and, unless REQUIREMENTS_FILE=requirements-locked.txt was set,
    the newest dependency releases pyproject.toml allows without one. This clears OpenSSF Scorecard's Pinned-Dependencies warnings for
    install.sh.
  • No security impact. The ZAP baseline job reads the dashboard's CSRF token with jq instead of piping the
    response to python, which Scorecard counted as running downloaded code.

Contributors

Thank you to everyone who contributed to this release:

  • @mvanhorn: Retry auth session bootstrap after non-401 failure (#151)
  • @leo7martins: Pace web requests from the end of the previous request (#153), Report an XSS context only for the script or handler the payload created (#152), Validate dashboard settings keys and types (#154)
  • @orshih6: fix(web): run the header and cookie advisories before the request budget can run out (#155)
  • @GamehunterKaan: Update the AUR package automatically after each stable release (#159), Faster offline CVE lookups, and prefer an up-to-date local database (#160), Release 2.11.0, and hash-pin every package install.sh installs (#161)
  • @VamikaSinghal: Show the Nmap command that ran in the notification e-mail (#156)

New contributors

Full Changelog: v2.10.0...v2.11.0