Skip to content
Access control Write-up Beginner

openSIS <= 7.4 Incorrect Access Control Vulnerabilities

The application's access-control check only redirects unauthenticated users when the request path does not contain index.php. An attacker could append index.php to a URL to skip the redirect and reach functionality that should require authentication.

karmainsecurity.com

Published on karmainsecurity.com

The application prevents unauthenticated access to its functionalities by including the RedirectIncludes.php, RedirectModules.php, and RedirectRootInc.php scripts, which implement the access control logic by using the following code:

The author, on karmainsecurity.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the access-control guard decides whether to redirect based on a substring match against the request path rather than on the actual authentication state of the requested resource.

Impact

An unauthenticated attacker could potentially reach any application functionality that should require a logged-in user.

What the attacker needed

No account needed; target reachable over the network

The fix

The guard should be replaced with a proper authentication check on each protected resource rather than a path-substring test, and the vendor should be contacted for a patched release.

How it was found

  1. Request a protected application page while not logged in.
  2. Observe that the guard redirects you to the login page.
  3. Append index.php to the end of the URL and request it again.
  4. Observe that the redirect no longer happens and the page is served.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The site tries to keep logged-out visitors out by checking whether they are logged in and, if not, sending them to the login page. The check is skipped whenever the address contains the text index.php, so adding that text to the end of a link lets a visitor slip past the check. The result is that pages meant only for logged-in staff or students may open for anyone.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.