1 Which of the following will extract the TLD (top level domain) of ".net" from the string?
2 Which php.ini directive should be disabled to prevent the execution of a remote PHP script via an include or require construct?
3 Consider the following code:
<?php
header("Location: {$_GET['url']}");
?>
Which of the following values of $_GET['url'] would cause session fixation?
Session Fixation is not possible with this code snippet
http://http://phpqa.blogspot.com//?PHPSESSID=123
PHPSESSID%611243
Set-Cookie%3A+PHPSESSID%611234
http://phpqa.blogspot.com/%2F%0D%0ASet-Cookie%3A+PHPSESSID%611234
4 Which of the following are not true about streams?
They are always seekable
When used properly they significantly reduce memory consumption
They can be applied to any data source
They are always bi-directional
They can be filtered
5 When using a function such as strip_tags, are markup-based attacks still possible?
Answer...
No, HTML does not pose any security risks
Yes, even a <p> HTML tag is a security risk
Yes, attributes of allowed tags are ignored
No, strip_tags will prevent any markup-based attack
Please answer through the comments I will make it publish on blog..............
[Thursday, February 21, 2008
|
1 comments
]
Popular Posts
- php questions
- some php questions
- How to create a plugin in elgg.
- php Questions
- Mysql query for searching a value, add weightage on the number of occurances and sort based on the weight-age
- Contact Me
- solving the packaging problem in PHP
- How to add or remove WWW on URLs using htaccess.
- php questions
- Inserting nodes into xml files using XML DOM in PHP .
1 comments
Post a Comment
Please put your comments here. your questions, your suggestions, also what went wrong with me.