Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 62 guests and 1 member online
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Web Applications
Some questions on php configuration leaks & future of web security/hacking
EH-Net
May 22, 2013, 10:16:25 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Web Applications
(Moderator:
don
) >
Some questions on php configuration leaks & future of web security/hacking
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Some questions on php configuration leaks & future of web security/hacking (Read 3685 times)
0 Members and 1 Guest are viewing this topic.
manoj9372
Jr. Member
Offline
Posts: 72
Some questions on php configuration leaks & future of web security/hacking
«
on:
September 03, 2011, 05:50:31 AM »
First let me post my question on php configuration leaks
I am learner in web-application hacking ,
I have seen some sites leaking their php configurations,i had seen like this
Code:
http://www.target1.com/phpinfo.php
http://www.target1.com/php.ini
http://www.target1.com//htacess.txt
I just find these sites via google dorks,also the web-server is a shared web-server,the configuration leaks via one web-site poses danger to all the sites(almost 170 web-sites in them)
It made me think like this,
1.1)By leaking these sensitive php configurations what kind of dangers will be faced the web-server ?
1.2)do you rate this as a major bug or minor bug ?
1.3)Also by having these sensitive configurations it it possible for a attacker to gain a shell on the web-server?
1.4)I have read that most of the security configurations has been placed in this .htacess file,is it possible for the attacker to attack/modify the .htacess configuration?
1.5)what are the possible attacks can be done on a .htacess file?
____________________________________________________________________
2)
I have been started to thinking about the future of the web-application hacking,because after seeing some things it made me think like this,
I am just a beginner in these web-Application security/hacking,i had started to read many many types of web-application attacks and all especially from the owasp site and some other sites,
And i checked the sites like 1337day and exploit-db and some other exploit sites for those vulnerabilities,
say http response splitting last exploit has been published before 1 year,
say RFI/LFI bugs last exploit has been published before 3-4 months,
seems RFI/LFI is dying fast,i think it would disappear soon,
what types of exploits we are actively seeing is xss,sqli,file upload bugs,RCE,command injection,CSRF and few others.
Also i started to hear that the same will happen to sqli and xss in a very few years,
Nowadays it seems the standard of making web-application/web-development is becoming higher and they are making hackers job tougher,
2.1)what you guys feel about this?
2.2)do you think xss and sqli will die or will become an uncommon type(i.e like xst attack of today) of exploit in the few years ?
2.3)do you think any new breed of attacks will born in the coming future?
2.4)And as a beginner in web-app hacking/security this really started to worrying me,how can i prepare my-self so that i can over come these challenges in my future in order to have a good and successfull carrier web-Application security/hacking ?
Logged
MaXe
Hero Member
Offline
Posts: 669
I've just upgraded myself to a cyborg muahahaa!!1
Re: Some questions on php configuration leaks & future of web security/hacking
«
Reply #1 on:
September 03, 2011, 11:32:25 AM »
o/ manoj
1.1) Exposing the PHP configuration will enable hackers to gain information, that may aid them in but not limited to: Privilege escalation, uploading files (by using the exposed information), get detailed information about vulnerable plugins (rare), see disabled functions and classes (useful when many functions are disabled), etc.
1.2) Minor bug when it's phpinfo(); and php.ini - It should be fixed though!
1.3) Not alone, the attacker(s) need an entry-point. If there's no user-input available at all, and the server is "secure", the information leaked / exposed, will do little good at the current time. (Later on, it could prove useful but it may also change.)
1.4) Incorrect. HTAccess files are mostly used for SEO nowadays, and custom 404 pages, along with of course, directories that requires a user and password. HTAccess can also control which files, are executed as what. I saw a backdoor not long ago, that made .lol (a file extension), become executed as .php .This requires code execution on the server already of course. .htaccess files are and shouldn't be readable directly via the website either. (The webserver should return a 403 forbidden error.)
1.5) Please refer to 1.4, as there's no "direct" attacks on .htaccess files. All you can do if you have access to the server, as in code execution, is to alter it if you have user privileges to do this.
--------------------------------------------------------
2.1) Good and bad.
Good: They're secure from the bad guys.
Bad: If they become too good, we loose our jobs
(What a dilemma? Even though, isn't it our goal to create a perfect Internet with no security holes, if it was possible? But then again, some infosec people, are only in for the money. If everything was 100% secure though it is not possible, as we're humans and we make errors, I would probably find another hobby such as engineering.)
2.2) It might, it depends on if the developers of the applications are getting smarter, but also receive the education to write proper code.
2.3) Yes, we've already seen Clickjacking, and many other types of jacking the recent years. Along with CSRF attacks too, and so forth. The breed for new attacks, also relies on how web applications evolve, along with their programming languages and developers behind. (And of course, the hackers researching the security.)
2.4) Read the Web Application Hacker's Handbook vol. II (2), it should be out soon
Besides that, I'd recommend all the other things I've recommended you already, though not visible in this post.
Logged
I'm an InterN0T'er
MaXe
Hero Member
Offline
Posts: 669
I've just upgraded myself to a cyborg muahahaa!!1
Re: Some questions on php configuration leaks & future of web security/hacking
«
Reply #2 on:
September 03, 2011, 11:46:02 AM »
I forgot to say.. That everyone should take a look at this too:
https://www.owasp.org/index.php/PHP_Top_5
In case they're into PHP Web Application Security
It's well written, and contains many good facts.
Update:
It looks like this very well written article, does not describe remote code execution (RCE) vulnerabilities within regular expressions though. Some types of regex, with the 'e' (evaluate as PHP code) flag set, can also result in remote code execution.
«
Last Edit: September 03, 2011, 11:50:02 AM by MaXe
»
Logged
I'm an InterN0T'er
manoj9372
Jr. Member
Offline
Posts: 72
Re: Some questions on php configuration leaks & future of web security/hacking
«
Reply #3 on:
September 03, 2011, 11:57:46 AM »
Code:
1.1) Exposing the PHP configuration will enable hackers to gain information, that may aid them in but not limited to: Privilege escalation, uploading files (by using the exposed information), get detailed information about vulnerable plugins (rare), see disabled functions and classes (useful when many functions are disabled), etc.
1.2) Minor bug when it's phpinfo(); and php.ini - It should be fixed though! Grin
1.3) Not alone, the attacker(s) need an entry-point. If there's no user-input available at all, and the server is "secure", the information leaked / exposed, will do little good at the current time. (Later on, it could prove useful but it may also change.)
1.4) Incorrect. HTAccess files are mostly used for SEO nowadays, and custom 404 pages, along with of course, directories that requires a user and password. HTAccess can also control which files, are executed as what. I saw a backdoor not long ago, that made .lol (a file extension), become executed as .php .This requires code execution on the server already of course. .htaccess files are and shouldn't be readable directly via the website either. (The webserver should return a 403 forbidden error.)
1.5) Please refer to 1.4, as there's no "direct" attacks on .htaccess files. All you can do if you have access to the server, as in code execution, is to alter it if you have user privileges to do this.
Thanks maxe,It seems unless a attacker finds a critical bug,these configuration exposure should not pose much risk to the particular target,but what i am thinking was,if one of the web-site hosted on a target server has the configuration leak and another site in the shared server has the bug through which an attacker can obtain shell,then this issue will become HOT...
Code:
2.1) Good and bad.
Good: They're secure from the bad guys.
Bad: If they become too good, we loose our jobs Grin (What a dilemma? Even though, isn't it our goal to create a perfect Internet with no security holes, if it was possible? But then again, some infosec people, are only in for the money. If everything was 100% secure though it is not possible, as we're humans and we make errors, I would probably find another hobby such as engineering.)
2.2) It might, it depends on if the developers of the applications are getting smarter, but also receive the education to write proper code.
2.3) Yes, we've already seen Clickjacking, and many other types of jacking the recent years. Along with CSRF attacks too, and so forth. The breed for new attacks, also relies on how web applications evolve, along with their programming languages and developers behind. (And of course, the hackers researching the security.)
2.4) Read the Web Application Hacker's Handbook vol. II (2), it should be out soon Smiley Besides that, I'd recommend all the other things I've recommended you already, though not visible in this post. Smiley
I also asked these same question in some other boards and what people said me "sql wont completely die like the other breed of attacks as we are going not going to abolish the use of database in next generation" and regarding xss they said "xss has not been seen as a very serious threat by the web-browser developers,so in the future this kind of attack may be reduced,but it wont die like the other attacks"
And yeah i am still following all of your advices ,that is why lot of questions are popping up in my head daily
And i am not sure about the development field,but i would definitely like to ask you this,
secure programmers vs traditional programmers
even tough programmers from both the sides are knowledgable
who are developing the most vendor specific web-applications that we are using today ?
And thanks for answering me maxe
,I got lot more to ask you
Logged
MaXe
Hero Member
Offline
Posts: 669
I've just upgraded myself to a cyborg muahahaa!!1
Re: Some questions on php configuration leaks & future of web security/hacking
«
Reply #4 on:
September 03, 2011, 12:03:43 PM »
Security programmers are often in over big web applications that are sold on a massive scale, while traditional programmers not very skilled within information security, often write custom web applications for companies, etc.
At least, that is what I've personally seen and it's hard to say for sure, as it is not a fact.
Logged
I'm an InterN0T'er
janjensen
Guest
Re: Some questions on php configuration leaks & future of web security/hacking
«
Reply #5 on:
September 15, 2011, 05:10:08 AM »
Or they make fixes without testing it
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
Network Pen Testing
: AIX Vulnerability Assessments
(2) by
ras76
Tutorials
: Need guidance
(9) by
hanyhasan
Programming
: Finished Python Course in Codecademy now what?
(15) by
hanyhasan
Network Pen Testing
: Ruby on Rails Vulnerabilities / Attacks in BackTrack 5 r3
(0) by
SUdoctstudent
Network Pen Testing
: De-ICE 1.140 released!
(2) by
superkojiman
General Certification
: CPT Practical Submission
(1) by
UNIX
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(94) by
azmatt
Tools
: Social-Engineer Toolkit (SET) Version 5.0 “The Wild West” Released
(2) by
m0wgli
Malware
: EICAR?
(3) by
UKSecurityGuy
Advisories
: HTB23154: Multiple Vulnerabilities in Exponent CMS
(0) by
AndyP
Advisories
: HTB23153: Multiple Vulnerabilities in Jojo CMS
(0) by
AndyP
Advisories
: HTB23151: Cross-Site Request Forgery (CSRF) in UMI.CMS
(0) by
AndyP
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(7) by
Taemyks
OSCP - Offensive Security Certified Professional
: OSCP exam scheduled
(6) by
gbhat
Incident Response
: LinkedIn Forensics
(0) by
AFENTIS_Forensics
General Certification
: Red Team/Blue Team
(1) by
ajohnson
Career Central
: Starter cert?
(3) by
Grendel
Network Pen Testing
: Beginner Ethical Hacker
(1) by
m0wgli
Web Applications
: Nessus and Nikto
(4) by
Seen
Network Pen Testing
: Cracking salted MD5 hash
(4) by
n37sh@rk
CEH - Certified Ethical Hacker
: Passed my C|EH
(3) by
n37sh@rk
Mass Media
: EC-council hacked, irony at his best?
(0) by
j0rDy
Web Applications
: SQL Injection into an INSERT statement.
(6) by
eyenit0
Network Pen Testing
: Solution for sipXtapi INVITE Message CSeq Field Header Remote Overflow
(1) by
m0wgli
Web Applications
: dns
(2) by
H1t M0nk3y
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.