Repository navigation
AutoPWN Suite v2.11.0
Functional changes
-
Offline keyword searches scan a new
descriptionstable 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 thecvestable. 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-dbbuilds 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/PKGBUILDand updated by CI (publish-aur.yml) after each stable PyPI release. The
PKGBUILD now builds the poetry-core sdist withpython-buildandpython-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
autovulnerability 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
autoscan 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,autoscans 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-statusandGET /api/vulnerability-databasereport
freshandrefresh_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, asnmapfollowed 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-sSand-O, which the scanner drops without root; it put-sSin 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/settingsrefuses a key the settings do not have (400unknown_setting) and a value of the
wrong type fornist_api_keyor anemailorwebhookfield (400invalid_setting_type), and stores
nothing from that request.smtp_portmust be a JSON integer from 1 to 65535, not a boolean or numeric
text. A valid partial update is still merged. -
install.shinstalls the dependencies fromrequirements-locked.txtby default, so an installation gets the
lockfile's exact versions instead of the newest onespyproject.tomlallows. 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. AREQUIREMENTS_FILEmust 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-typednist_api_key,languageoremailorwebhookfield takes its default,
and a copy of the file is kept beside it. A non-booleanoffline_modeorupdate_auto_check, or an
emailorwebhookvalue 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'sdescriptionstable now decides which records
a keyword search returns, as itscvesdescriptions did before, and a description that is not text still
makes the search fail as an unusable database. - The dashboard and
autoCLI 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 onlineoroffline, 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, soautotreats 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 theaurenvironment. Only the AURpushjob
reads it; that job checks out no code, pins the AUR SSH host key and runs onlygit. The package is built
and smoke-tested beforehand in a separate job that holds no secret, andmakepkgchecks 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.shdownloads only packages whose hashes are pinned in the checkout: the dependencies with
--require-hashesfromREQUIREMENTS_FILE, and thepoetry-corebuild 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 pinnedpoetry-corewithout one, and, unlessREQUIREMENTS_FILE=requirements-locked.txtwas set,
the newest dependency releasespyproject.tomlallows 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
jqinstead of piping the
response topython, 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
- @mvanhorn made their first contribution in #151
- @leo7martins made their first contribution in #153
- @orshih6 made their first contribution in #155
- @VamikaSinghal made their first contribution in #156
Full Changelog: v2.10.0...v2.11.0