Skip to content
Info disclosure Disclosed report Beginner

Forbidden access to https://apps-staging.pingone.com but "/packages.json" visible and full path disclosure

A staging application that normally returns Forbidden to unauthorised visitors still served its package manifest file. An attacker could read that file to learn about the application's dependencies and use it for further exploitation.

mjigar821 Follow

Originally disclosed on HackerOne

Bounty$100 Low View original
  • Triaged in 8 hours
  • Fixed in 4 months
  • Paid in 38 hours
  • Disclosed after 10 months

Summary by the program

Summary:

If you visit the application https://apps-staging.pingone.com/. The application is protected from unauthorized users (displays Forbidden). In spite of having this protection, an attacker would be able to see the packages information of the application.

Steps To Reproduce:

Go to https://apps-staging.pingone.com/package.json

Impact

This application is only for authorized users. But an attacker can see the package.json of the application, which can be used for further exploitation.

The original report as published on HackerOne, by mjigar821. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is the staging application at https://apps-staging.pingone.com/, part of the Ping Identity program on HackerOne. The researcher, mjigar821, reported it as an improper access control issue of low severity, and the program paid a bounty of 100.00 USD. The report was disclosed on 16 November 2020.

The observation is simple. When you visit the root of the application, it is protected from unauthorised users and returns a Forbidden response. Despite that protection, the researcher found that the package information of the application could still be read.

The reproduction is a single step:

Text
Go to https://apps-staging.pingone.com/package.json

So the root path is gated, yet the researcher reports that the package information could still be seen. The report describes this as a full path disclosure in its title, and the summary frames it as an attacker being able to see the packages information of the application even though the application is meant only for authorised users.

The report does not include the actual response body, the HTTP status code returned for package.json, or any headers. It also does not describe a fix, and it gives no CVSS score. The impact section states that the exposed package.json can be used for further exploitation, without naming a specific follow-on attack.

Root cause

The root document is denied, but the static file handler answers requests for files in the deployed directory without consulting the same authorisation logic.

Impact

In the report's own terms, the application is intended only for authorised users, yet an attacker can read its package.json. The report says the package information of the application could be seen and used for further exploitation. The report does not go further than that: it does not show which packages were listed, whether any of them had known vulnerabilities, or what an attacker could achieve with the information.

The severity assigned was low, which fits an information disclosure with no demonstrated chain to a stronger primitive.

How this kind of bug works

Web applications commonly ship build and dependency manifests into the directory that the web server exposes. package.json is the Node.js example, but the same pattern covers lock files, source maps, .git directories, backup archives and configuration files. Frameworks and reverse proxies often have a default behaviour of serving any file that exists under the document root, and teams add authentication at the application layer without realising that static assets bypass it.

The bug class is therefore an access control gap combined with an information exposure. The control exists and works for the paths the developers tested, but the static file handler is a second entry point that was never covered. Because the file is not secret in the cryptographic sense, it is easy to overlook,

Defences work at two levels. First, do not deploy manifests, lock files, source maps or repository metadata to the production or staging web root at all; build pipelines should exclude them. Second, enforce authorisation at the edge, in the reverse proxy or web server, so that every path, including static files, passes through the same check. Denying directory listings and returning a generic 404 for unknown paths reduces the signal an attacker gets from probing.

How to test for it

A practical method for this bug class:

  1. Identify the application and confirm the protected behaviour. Request the root and a known application route and note the response, for example a Forbidden page or a login redirect.
  2. Probe for common build and metadata files at the same host and at paths suggested by the application's structure. Typical names include package.json, package-lock.json, yarn.lock, composer.json, composer.lock, Gemfile.lock, web.config, .git/config, .env, and JavaScript source maps referenced by loaded scripts.
  3. Compare the response for those files with the protected route. A positive result is a successful response containing the file's real content, where the application route is denied. The status code, content type and body all matter: a 200 with JSON dependency data is conclusive.
  4. If a manifest is returned, check whether it references lock files or other paths, and whether the listed dependency versions correspond to known vulnerable releases. Only report the exposure itself unless you can demonstrate a concrete consequence.
  5. Try the same file under subdirectories and alternate hosts or ports that serve the same application, since static handlers are sometimes mounted separately.

Common false positives: a custom 404 page that returns status 200 with HTML, which looks like a hit but contains no file content; a generic error page echoing the requested path; a WAF block page; and a package.json that is intentionally public, for example for a published library or a front end that ships it by design. Always confirm the body actually contains the manifest before reporting.

How it is fixed

The standard fixes are:

  • Remove build manifests, lock files, source maps and repository metadata from anything deployed to a web-accessible directory, and add them to the build pipeline's exclusion list.
  • Enforce authentication and authorisation at the web server or reverse proxy for all paths, so static files cannot bypass the application-level check.
  • Configure the server to deny access to dotfiles and known sensitive filenames, and to return a generic 404 rather than a directory listing or a descriptive error.
  • Review the deployment for other artefacts of the same kind, since one exposed manifest usually means the exclusion step is missing entirely.

Hunting notes

This bug class hides wherever a team has bolted authentication onto an application but left the static file layer open. Signals worth following during recon include a Forbidden or login wall on the root combined with a server that still answers for asset paths, JavaScript bundles that reference source maps, and responses that reveal framework or build tooling in headers or error pages.

To get a report accepted, show the contrast clearly: the protected route and its denial, then the same host returning the file content. If you can tie a listed dependency version to a known vulnerability, say so, but keep the claim proportionate to what you have demonstrated. A clean, minimal reproduction of the access control gap is usually enough for a low-severity information disclosure.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

This report is about a website called https://apps-staging.pingone.com/, which belongs to Ping Identity and was reported through the HackerOne bug bounty platform. The researcher, mjigar821, found that although the site is meant to be closed to outsiders, one file inside it could still be read by anyone. The issue was classed as an improper access control problem of low severity, and the program paid a bounty of 100.00 USD. The report was made public on 16 November 2020.

To understand the finding, you need two ideas. First, a web application is a program that runs on a server and is used through your browser. Second, access control is the set of rules that decides who is allowed to see or do what. Think of a members-only club: the doorman checks your name at the main entrance and turns you away if you are not on the list. That is access control.

Here, the main entrance was guarded. When the researcher visited the root of the application, the site refused to show anything to an unauthorised visitor and returned a Forbidden response. A Forbidden response is the server's way of saying "I know what you asked for, but you are not allowed to have it". So far, so good.

The problem was a side door. The application also serves a file called package.json. This is a small text file used by Node.js projects (Node.js is a popular way of building web applications with JavaScript). It lists the project's name, its settings and, most importantly, the other software packages the project depends on. The researcher found that the package information of the application could still be seen, even though the front page was blocked.

The reproduction is a single step, copied exactly from the report:

Text
Go to https://apps-staging.pingone.com/package.json

Line by line, this means: open your browser, type the address https://apps-staging.pingone.com/package.json into the address bar, and press Enter. The https:// part means the connection is encrypted. The host name apps-staging.pingone.com points at a staging server, which is a copy of the application used for testing before changes go live. The /package.json part asks the server for that specific file rather than the front page.

Why does this step matter? Because it tests whether the protection on the front page also covers files sitting next to it. If the doorman guards the main entrance but leaves a side door unlocked, the club is not really closed. The researcher's title describes the finding as a full path disclosure.

The report does not include the actual contents of the file, the status code the server returned for it, or any response headers. It also does not describe a fix or give a CVSS score (CVSS is a standard way of scoring how serious a vulnerability is).

Impact, in the report's terms

The report explains that the application is only for authorised users, yet an attacker can see its package.json, and that this information can be used for further exploitation. The report does not name a specific follow-on attack, does not say which packages were listed, and does not show whether any of them had known vulnerabilities.

In general, a dependency list is useful to an attacker because it reveals which software and which versions the site runs. If one of those versions has a publicly known weakness, the attacker knows exactly what to try next. The severity was rated low, which fits an information leak with no demonstrated chain to anything more serious.

In general, how this kind of bug works

Many web projects are built with tools that produce extra files alongside the application: dependency manifests like package.json, lock files that pin exact versions, source maps that help developers debug, and sometimes whole folders such as .git that hold the project's history. These files are useful during development, but they are not meant for visitors.

In general, the defences are:

  1. Do not copy build manifests, lock files, source maps or repository folders into the folder the web server publishes. Build pipelines can exclude them automatically.
  2. Put the authorisation check at the web server or reverse proxy (the piece of software that sits in front of the application), so every path, including static files, passes through it.
  3. Deny access to dotfiles and known sensitive file names, and return a plain 404 (not found) for anything unknown, rather than a directory listing or a detailed error.

In general, how to test for it

A simple method anyone can follow with a browser:

  1. Visit the front page and a known page of the application, and note what you get: a Forbidden page, a login redirect, or normal content. This is your baseline.
  2. Try common build and metadata file names on the same host, such as package.json, package-lock.json, yarn.lock, composer.json, composer.lock, Gemfile.lock, web.config, .git/config, .env, and source maps referenced by the scripts the page loads.
  3. Compare what comes back with the baseline. A real hit is a successful response whose body contains the actual file content, not an error page. The status code, the content type and the body all matter.
  4. If a manifest is returned, look at whether it points to lock files or other paths, and whether the listed versions match known vulnerable releases. Report the exposure itself unless you can show a concrete consequence.
  5. Repeat the same file names under subfolders and on other hosts or ports that serve the same application, because static file handling is sometimes set up separately.

Watch out for false positives: a custom "not found" page that still returns a success status and HTML, an error page that simply repeats the path you asked for, a firewall block page, or a package.json that is public on purpose, for example for a published library. Always confirm the body really contains the manifest before reporting.

Glossary

  • Web application: a program running on a server that you use through a browser.
  • Access control: the rules that decide who may see or do what.
  • Forbidden response: the server's reply that you are recognised but not allowed to access the requested resource.
  • Staging: a test copy of an application, used before changes reach the live site.
  • Node.js: a runtime that lets developers build applications with JavaScript outside the browser.
  • Package: a reusable piece of software that a project depends on.
  • package.json: a Node.js project file listing its name, settings and dependencies.
  • Lock file: a file that records the exact versions of dependencies so installs are repeatable.
  • Full path disclosure: revealing the exact location of a file on the server.
  • Status code: the three-digit number a server returns with every response, such as 200 for success or 404 for not found.
  • Header: extra information sent alongside a request or response.
  • Reverse proxy: software that sits in front of the application and forwards requests to it.
  • Static file: a file served as-is, without the application processing it.
  • Information disclosure: leaking information that should not be visible.
  • CVSS: a standard scoring system for the severity of a vulnerability.
  • Bug bounty: a program that pays researchers for reporting security problems responsibly.
  • False positive: a result that looks like a finding but is not one.

More from Ping Identity

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.