Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6072647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:10:59+00:00 2026-05-23T10:10:59+00:00

In object-oriented PHP application, do I need to use authentication check in almost every

  • 0

In object-oriented PHP application, do I need to use authentication check in almost every public method in my application for security?

I’m worried about this vulnerability: CWE-306: Missing Authentication for Critical Function

How anyone could call my public methods, even if I use static keyword?


What are the requirements for this attack to succeed?

Like some another vulnerability – Like allowing PHP file uploads to my system?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:11:00+00:00Added an answer on May 23, 2026 at 10:11 am

    As the article states, this won’t be a problem if you structure you application properly. Whether your class has public or private methods is not the issue here, the problem is that the pathways to your application are not secured.

    Your application should be structured so that it provides only a single point of entry. Any request to any file should be routed through your main file. None of your other PHP files should accessible directly. When you structure it this way, it’s easy for you to apply your authentication as you would be able to examine each request that comes to your application and identify which need to be authenticated and which can be served publicly.

    Have a look at this pattern : http://en.wikipedia.org/wiki/Front_Controller_pattern

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a PHP developer, and I use the MVC pattern and object-oriented code. I
I have a need to create a library of Object Oriented PHP code that
What object oriented design patterns do you use in your application's javascript, and why?
Is PHP an object-oriented language? If not, then what about the framework CakePHP? Is
I'm developing an object-oriented PHP website right now and am trying to determine the
I've been working with sessions, MVC design and object oriented PHP. Where should I
I'm familiar with object-oriented architecture, including use of design patterns and class diagrams for
I've been thinking about this object oriented design question for a while now and
From my basic understanding in Object Oriented coding, PHP in my case, you want
I am trying to understand the core of object oriented programming for php or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.