I found the DocAccess library while reviewing what the public-facing City of Danville, Virginia website loaded in the browser. The municipal site included this unversioned third-party JavaScript directly from DocAccess:
https://docaccess.com/docbox.js
Following that one script led into the DocAccess browser helper, its dynamically loaded document-version checker, platform-specific integrations, and a backend document-intake API. By the end of the review, I had three separate confirmed security issues: a cross-origin PDF hash oracle, a client-side JavaScript execution sink, and an unauthenticated backend URL-fetch surface with SSRF-class behavior.
Also it turns out that they’re likely not the only town using it: LINK
This post covers all three.
No testing was performed against Danville user accounts or protected municipal documents. Controlled local content and researcher-owned OOB endpoints were used for proof. Danville was the place where I found the library in use; the vulnerable code and backend behavior belong to the DocAccess product and service.
With that said, let’s keep this practical.
What DocAccess Does
DocAccess is a CivicPlus service intended to make documents easier to access and consume. A customer website includes docbox.js, which finds document links and can open them through a DocAccess viewer. The helper also loads supporting scripts, including a document-version checker, and submits document URLs to the DocAccess SaaS intake pipeline.
That creates two important trust boundaries:
- Messages moving between the customer page, the DocAccess viewer, and other browser windows.
- URLs moving from an untrusted browser into a DocAccess backend fetch worker.
Both boundaries were weaker than they first appeared.
Following the Include
The public include was enough to begin the review. I downloaded the live helper, recorded its byte count and SHA-256, and followed the script names and network paths it referenced. That led to docbox-check-document-version.js, platform-specific helpers, public support material, the official WordPress plugin, and the document-intake endpoint.
I then separated the work into three lanes:
- static review of the collected production JavaScript;
- local browser reproductions using controlled victim and attacker origins;
- researcher-owned out-of-band infrastructure for backend callback evidence.
That separation mattered. Browser findings could be demonstrated without touching municipal accounts or real restricted documents. Backend behavior could be proved using unique callback markers without asking the service to retrieve secrets. It also made it easier to keep observations from turning into claims: if a behavior appeared interesting in source but could not be completed end to end, it stayed a candidate instead of becoming a finding.
The same rule applies throughout this post. “Accepted by an API,” “resolved in DNS,” “requested over HTTP,” and “returned internal content” are four different levels of proof. The report only claims the level the evidence reached.
Issue 1 — Cross-Origin PDF Hash Oracle — CVE-#-HERE
CWE-346: Origin Validation Error
CVSS 3.1: 4.7 Medium — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
The main helper listens for cross-window messages and accepts origins using raw string checks. The relevant trust logic includes checks equivalent to:
window.addEventListener('message', function (event) { if ( event.origin.endsWith('docaccess.com') || event.origin.includes('localhost') ) { if (event.data.type === 'docaccess-check-file-hash') { queueHashCheckRequest(event.data, event.source, event.origin); } }});
The problem is that an origin is not a suffix string. A hostname such as evil-docaccess.com also ends with docaccess.com.
There was a second problem: the helper did not consistently reject the message when event.source was not the expected DocAccess iframe. The request could still be queued with a null frame reference. The version-check helper would then fetch the supplied URL, hash a PDF-looking response, and send structured results back to the requesting window at the supplied origin.
Those results included:
- MD5
- SHA-256
- file size
- success state
- optional comparison results
I reproduced the complete flow using two controlled origins:
python3 -m http.server 8010 --bind 127.0.0.1 --directory poc/victimpython3 -m http.server 8011 --bind 127.0.0.1 --directory poc/attackercd pocnode run_playwright_test.js
The attacker page requested a controlled PDF from the victim origin. The victim page fetched it and returned this SHA-256 value to the attacker:
90cbc9af3e4e57377a46845d5f7a50183c4f06b4efe0ccad3a85d4d57efb77b8
That exactly matched the hash calculated independently from the test PDF.
A separate synthetic test confirmed that https://evil-docaccess.com passed the reproduced suffix check and reached DocAccess navigation handling.
What does that provide to an attacker? It creates a document-reachability and version oracle. It may also query authenticated same-origin PDF endpoints that the victim can access but the attacker cannot access directly.
What did I not prove? I did not demonstrate arbitrary document-body exfiltration. The confirmed output was document metadata, hashes, size, status, and comparison information.
The fix is straightforward: parse origins, compare them against an exact allowlist, require event.source === iframe.contentWindow, validate the message schema, and restrict hash requests to the document currently associated with the trusted viewer.
Issue 2 — Direct-Mode JavaScript Execution — CVE-#-HERE
CWE-79: Improper Neutralization of Input During Web Page Generation
CVSS 3.1: 6.1 Medium — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
DocAccess has a direct mode for force-enabled document links. In that mode, buildDocviewerUrl() returns the supplied URL unchanged:
function buildDocviewerUrl(pdfUrl, options = {}) { const { direct } = options; if (direct) { return pdfUrl; } // Normal viewer URL construction continues here.}
The returned value is later assigned to the viewer iframe without a protocol allowlist:
const docviewerUrl = buildDocviewerUrl(pdfUrl, options);iframe.src = docviewerUrl;
That makes schemes such as javascript: reachable when an attacker can influence a link that DocAccess treats as .docbox-direct or .docbox-enable-viewer.
The controlled PoC used this target:
javascript:top.__direct_exec='direct-xss';void(0)
The browser assigned the exact value to the iframe and changed window.__direct_exec to direct-xss.
The automated reproduction was:
python3 -m http.server 8010 --bind 127.0.0.1 --directory poc/victimcd pocnode run_additional_pocs.js
Representative proof output:
iframe src: javascript:top.__direct_exec='direct-xss';void(0)executed: direct-xss
There is an important prerequisite here: an attacker needs a separate way to influence a force-enabled link on a DocAccess-enabled page. I am not claiming every DocAccess deployment gives an unauthenticated attacker the ability to create or modify one of those links.
Once that prerequisite is satisfied, however, the unsafe sink is real and the browser execution was reproduced.
The fix is to normalize every URL before either direct or viewer handling and enforce an explicit https: or narrowly justified http: allowlist. javascript:, data:, blob:, file:, mixed-case variants, encoded variants, and unknown schemes should be rejected before anything reaches iframe.src.
Issue 3 — Unauthenticated Backend URL Fetch / SSRF-Class Behavior — CVE-#-HERE
CWE-918: Server-Side Request Forgery
CVSS 3.1: 5.3 Medium — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
The browser helper submits discovered document URLs to this endpoint:
POST https://docaccess.com/api/v2/documents/intake/url
The endpoint accepted unauthenticated JSON containing a caller-controlled doc_url:
{ "doc_url": "https://<researcher-oob-domain>/current-version?case=20260822", "found_on": "https://www.danville-va.gov/", "origin": "organic"}
The API returned 201 queued. A few seconds later, the researcher-controlled endpoint received this request:
GET /current-version?case=20260822 HTTP/1.1Host: da4i6ggjovk5vr3apj1gpumqrrnfk8zpq.oast.liveUser-Agent: DocAccessBot/1.0 (+https://docaccess.com/bot; support@docaccess.com)
That current-version revalidation confirmed three things:
- The unauthenticated intake endpoint still caused a server-side outbound request.
- The attacker-controlled path and query string were preserved.
- The request identified itself as
DocAccessBot/1.0.
Earlier controlled evidence also included HTTP, HTTPS, wildcard-subdomain, and DNS interactions. A researcher-controlled hostname intentionally mapped to 169.254.169.254 generated metadata-directed DNS activity.
Here is the boundary that matters: Successful retrieval of localhost, RFC1918, or cloud-metadata content was not tested or demonstrated. The evidence confirms attacker-directed backend fetching, egress, callbacks, query preservation, and blind target-resolution behavior. It does not prove recovery of an internal response body.
The backend fix needs to happen at every stage of the fetch:
- accept HTTPS only unless HTTP is required for a documented business reason;
- resolve the hostname server-side;
- reject loopback, private, link-local, multicast, reserved, and metadata ranges for IPv4 and IPv6;
- pin the validated address for the connection;
- disable redirects or repeat the complete validation at every redirect hop;
- enforce an egress firewall around the worker;
- limit response size, time, redirects, content types, and decompression;
- never forward ambient credentials or internal headers.
URL validation at submission time alone is not enough. DNS can change, and redirects can move a request after the first check.
What I Would Fix First
The backend fetch worker is the most urgent architectural boundary because it processes unauthenticated attacker-controlled URLs without user interaction. Exact destination validation and network-level egress restrictions should be applied together; either control on its own leaves room for parser differences, redirects, rebinding, or future regressions.
On the browser side, the origin check should be replaced rather than patched with another string condition. Origins should be parsed and matched against a small exact allowlist, and every privileged message should be bound to the expected iframe window. That single trust decision protects more than the hash operation.
Finally, all URL-to-navigation paths should go through one scheme-validation function. Direct mode, viewer mode, overlay links, and integration-specific helpers should not each make their own decision about whether a string is safe to assign to a browser sink. Centralizing the decision also makes regression tests for encoded, mixed-case, whitespace-obfuscated, and control-character schemes much easier to maintain.
Revalidating the Current Live Library
Because the Danville page loads https://docaccess.com/docbox.js without a version pin or Subresource Integrity hash, I fetched the live asset again before finalizing the report.
| Snapshot | Bytes | SHA-256 |
|---|---|---|
Originally tested docbox.js | 142,199 | 4c6ff0a4dabad351345690804d7e15ff781b16222e40df8df21059c79d260f59 |
Live docbox.js, revalidated August 22, 2026 | 142,288 | f2c4aa0dad6089919a7585eefe3ef8947e7c0916dc755663d3f4f58bce97b54f |
The two main bundles differed by one added DiligentOne URL-normalization line unrelated to these findings. The finding-relevant message handler, direct-mode sink, and intake-submission paths were unchanged. The version-check and SharePoint helper files were byte-for-byte identical to the tested snapshots.
I reran the controlled browser proofs against the current relevant code paths. The PDF hash oracle and direct-mode execution still reproduced. I also repeated the safe production intake callback test shown above.
The SharePoint helper produced an additional unsafe-looking forwarding and returned-URL path during controlled testing. I am not listing it as a fourth confirmed vulnerability because no applicable SharePoint environment was available to demonstrate the complete production chain.
Coordinated Disclosure
This article is prepared for publication after the coordinated-disclosure window.
- August 21, 2026 — Initial static review and controlled browser validation completed.
- August 22, 2026 — Live asset comparison, current-version browser validation, backend callback revalidation, and CVE request preparation completed.
[VENDOR-NOTIFICATION-DATE]— Full technical report delivered to DocAccess/CivicPlus.- November 22, 2026 — Scheduled public disclosure date.
Replace the three CVE placeholders and the vendor-notification date immediately before publication. If the vendor releases a fix or advisory during the window, add its version, link, and remediation status here without rewriting what was actually demonstrated.
Full Technical Report
The complete disclosure package includes affected code anchors, proof steps, PoC source, screenshots, raw OOB evidence summaries, limitations, and remediation examples:
- Self-contained HTML technical report
- Vendor PDF report
- Live DocAccess browser helper
- DocAccess product website
Three different bugs, all found by following one unversioned JavaScript include from a public .gov website.
END TRANSMISSION
