Thoughts

Catching a code injection hacker in the act

Several days ago, I installed the Redirection plugin from Urban Giraffe. It’s truly awesome, in more ways than one. John Godley, you are an amazing programmer! As I re-arranged the categories on my blog, I tracked the 404 errors through the plugin. On Saturday morning, I noticed the following bit of information in my log:

You can click on the thumbnail to view the screenshot at full size. Look at the entries for IP address 65.90.251.169. Notice something peculiar? That’s a hacker trying to inject malicious code into my pages. He was trying to call to code contained in a text file by the name ide.txt located on a possibly compromised domain.

First, I checked out his domain, new-fields.com. It looked legitimate. The text file was another story altogether. Have a look at the screenshots above. I also saved the code to my computer in case it ends up disappearing from the hacker’s website.

I tested the code, and it looks like some pages from the podPress plugin are targeted or affected — at least that’s what the error message given by WP referenced when I ran the code. I had that plugin enabled at the time, and I’ve disabled it since. It seems that the code tries to modify one of the header.php pages, along with checking disk space (?). So I thought, let me find out who this hacker is. Apparently, he’s from Napperville, IL, US, or at least that’s where his IP address lives.

What’s more, I thought it’d be interesting to see who owns that domain name where his text file resides. It turns out to be one Samir Farajallah from Dubai.

So what we’ve got so far is some dude in Dubai who owns the domain where the malicious code resides, and some hacker in Napperville, IL, trying to exploit my blog using that malicious code.

Wait, it gets better… On Saturday evening, I have another look at my blog’s 404 log, and I find that some other hacker from Vietnam (IP address: 203.171.31.19) is trying to hack into my blog using that exact same code, but this time the text file’s located on some domain in Argentina. That last link leads directly to the text file with the malicious code, but it’s harmless if you browse it. It only works if you run it as PHP code, like these hackers are trying to do.

So far, it looks like I’ve got two hackers, who may or may not be working together, using the same malicious code, located on two different, possibly compromised domains, and trying to modify my header files, possibly to insert code in there that will display splog content or some other stuff.

Update: It looks like three more hackers are trying their luck today, on Sunday morning, 9/30/07. Their IP addresses are 65.98.14.194, 66.79.165.19 and 66.11.231.48.

What I can tell you is that they haven’t been successful. I checked all of my files, and none of them have been touched. Everything’s fine. At this point, I’m not going to waste any more of my time trying to hunt them down. If I see that the attacks continue, I’ll notify my web hosting provider, along with the hosting providers of the other domains, and I’ll also notify the ISPs who own the IP addresses used in the attacks.

My thanks go out to John Godley for the wonderful Redirection plugin. I wouldn’t have been able to catch these hackers without it. I don’t often check my 404 log files, although I should.

I’ve been working in IT for 13 years or so. Maybe I’m naive, maybe I’m too honest for my own good, but I’ve stayed away from this hacking business, and I’ll continue to do so. It’s just not a sustainable lifestyle. I believe that the bad stuff you do in life will catch up with you sooner or later. It’s inevitable. These hackers will get what’s coming to them, and I won’t even have to lift a finger beyond what I’ve done so far.

Standard
Thoughts

The winner of the "Object-Oriented PHP" book drawing

Trevor Carpenter… is Trevor Carpenter! I announced the drawing on Tuesday, 9/25, and the deadline was the evening of Friday, 9/24. I’m going to mail the book to Trevor shortly.

Trevor has a few websites, and they’re all worth mentioning. First we have his personal site/blog, then his photoblog, called CamarilloWalk, his professional photography site, called Scribe Photography, and finally, Photowalking, a site dedicated to photowalks. Anyone interested in organizing such events can request an author account on the site and write about them there. The goal is to turn the site into the main place to check for group photowalking events in one’s local area. Pretty cool!

Standard
Reviews

Bugs in Lightroom 1.2

The latest version of Adobe’s Lightroom, 1.2, introduced corrections for several issues such as XMP auto-write performance, Vista grid display errors, and noise reduction for Bayer-patterned sensors (the majority of digital sensors on the market user Bayer patterns in their color pixel distributions). It also introduced support for new cameras such as the Canon EOS 40D and the Olympus EVOLT E-510. The upgrade was a marked improvement upon 1.1 and 1.0, but I’ve noticed a few bugs:

  1. Time-shifted capture times don’t transfer properly on import from catalog to catalog. While on a recent trip in Romania, I took along my laptop but didn’t take my WD My Book Pro Edition II, since I wanted it to stay safely at home. (That’s where I keep my photo library.) I thought, no problem, I’ll just start a new catalog directly on my laptop, work with my photos there, and do a catalog to catalog import when I get home. In theory, that should have worked just fine — in practice, it was somewhat different. You see, I’d forgotten to set my 5D to Romania’s local time, and that meant that all of the photos I’d taken for the first few days lagged behind local time by 7 hours. I corrected those times by selecting those photos in Lightroom and choosing Metadata >> Edit Capture Time >> Shift by set numbers of hours. That fixed those times in the catalog on my laptop, but when I imported those same photos, I found out that very few of those corrected times transferred during the catalog import operation. What’s worse, the capture time for others was somehow shifted by seemingly random values to something else altogether, so I had to fix that as well.
  2. There’s an annoying and somewhat destructive color shift that takes place when I import photos into Lightroom. For a few moments after I open a photo, it’ll look just like it looked on my 5D’s LCD screen, but then Lightroom will shift the colors slightly as it loads and develops the RAW file. It seems to do less of it now than in version 1.0, but it’s still happening, and then it’s really difficult, if not impossible, to get my photos to look like they’re supposed to look. Canon’s own RAW viewer doesn’t do this, and neither does Microsoft’s RAW viewer.
  3. Batch-editing photos selected from the filmstrip (instead of the grid view) does not apply the actions to all of the photos, only to the first photo selected from that bunch. In other words, if I were to select the same group of photos in grid view and apply a set of modifications to all of them (keywords, etc.), these modifications would be applied to all of the photos selected. When the same group of photos is selected in the filmstrip, the modifications are not applied to all of them, only to the first selected photo. By the same token, if I select multiple photos from the filmstrip in develop view and apply a sharpening change to all of them, it doesn’t take. It only gets applied to the first selected photo.
  4. Changes to ITPC meta data are often not written to the files until Lightroom is restarted. For example, if I select a group of photos, and specify location information for them, Lightroom will not write that data to the XMP files right away. Instead, it’ll wait until I exit, then start Lightroom again. Only then will it start to write those changes to each photo’s meta data. I’m not sure why it’s like this, but it’s confusing to the user.

As frustrating as these bugs are — especially #3 — I can’t imagine working on my photographs without Lightroom. It’s made my life a whole lot easier, and it’s streamlined my photographic workflow tremendously. I can locate all of my photos very easily, and I can organize them in ways I could only dream about before. It’s really a wonderful product, and I look forward to future versions with rapt attention. I hope Adobe continues to dedicate proper focus to Lightroom as it goes forward with its market strategy.

More information:

Standard
Places

My grandfather's garden

My grandparents on my mother’s side always had a garden, no matter where they lived. They were city folk, and even when they lived in an apartment, they managed a nice little plot of land in the back of the building, where they grew fruits and vegetables. Later, they moved in a house with a big garden, and my grandfather’s obsession with gardening was finally given free rein. He planted everything in there: grapes, tart cherries, cucumbers, tomatoes, rhubarb, berries, parsley, onions, garlic, salad, potatoes, apples — the list could go on, but I can’t find the English words for some of the things that grew (and still grow) there.

Just a few short weeks ago, I visited my grandfather and got to walk through the garden once more. It was bittersweet this time. My grandmother has passed away, and the place is lonelier and more melancholy. But it’s still beautiful, and it’s full of memories for me, since I practically grew up there.

Shortly after taking this photo, I took a pair of scissors, cut down a few bunches and ate them. They were delicious, of course.

Ripe and ready for the picking

This flower shone so pure and white with the rays of the falling sun passing through its petals, that I just had to photograph it.

Pure white

The name of this plant in English escapes me at the moment. In Romanian, it’s “busuioc”. Not so long ago, women in the countryside would take bunches of dried up “busuioc” with them to church. Its fragrance would fill the place.

Busuioc

I believe this flower is of the same kind as the white flower pictured above, but its petals are red. I’m terrible with plant names (actually, I’m terrible with names of any kind), so I don’t know what it is. But I really liked the shape and color of the petals. If passion could be photographed, I think it would look like this.

Passionate

I’ve got so many beautiful photographs from Romania — many more from my grandfather’s garden, the various cities and places I visited — but so little time to process them. Oh, how I wish I had a few months to spend curating my photo library…

Standard
Thoughts

A lesson in civics and citizenship

I happened to look up resources on the Internet that help people prepare for the citizenship test. If you’ll remember, I announced last year that the citizenship test would get harder. I was amazed to see how many sites out there charge for access to information that’s already available freely, right on the USCIS website. They’ve got a great section that shouldn’t be missed by anyone studying for the citizenship test, called Civics and Citizenship Study Materials. It’s got a lot of downloadable PDFs stuffed full of valuable information, made available to anyone, for FREE. And here’s another web page with useful citizenship-related links.

I thought I’d offer you some sample civics questions that could get asked on the citizenship test. You may not be studying to be a citizen because you earned that privilege as your birthright, but it wouldn’t hurt anyone to know the answers to these questions. In spite of what the government tells you, there’s one kind of terrorism that runs rampant, right here among us. It’s called ignorance. I’m not implying that you, my reader, are ignorant, but we’ve all seen plenty of those people, right? Some of them don’t even know basic facts like who was our first president…

Let’s all do our part to fight ignorance. It costs nothing, and nobody dies in the process. How’s that for good odds? 🙂

  1. What are the colors of our flag?
    Red, white, and blue
  2. What do the stars on the flag mean?
    One for each state
  3. How many stars are there on our flag?
    50
  4. What color are the stars on our flag?
    White
  5. How many stripes are there on our flag?
    13
  6. What do the stripes on the flag represent?
    The first 13 states
  7. What colors are the stripes on the flag?
    Red and white
  8. How many states are there in the Union (the United States)?
    50
  9. What do we celebrate on the 4th of July?
    Independence Day
  10. Independence Day celebrates independence from whom?
    Great Britain
  11. What country did we fight during the Revolutionary War?
    Great Britain
  12. Who was the first president of the United States?
    George Washington
  13. Who is the President of the United States today?
    Barrack Obama*
  14. Who is the Vice President of the United States today?
    Joe Biden*
  15. Who elects the President of the United States?
    The Electoral College
  16. Who becomes President if the President dies?
    The Vice President
  17. What is the Constitution?
    The supreme law of the land
  18. What do we call changes to the Constitution?
    Amendments
  19. How many changes, or amendments, are there to theConstitution?
    27*
  20. What are the three branches of our government?
    Executive, Judicial, and Legislative
  21. What is the legislative branch of our Government?
    Congress
  22. Who makes the Federal laws in the United States?
    Congress
  23. Who elects Congress?
    The citizens of the United States
  24. How many Senators are there in Congress?
    There are 100 Senators in Congress, two from each state.
  25. For how long do we elect each Senator?
    Six years
  26. What makes up Congress?
    The Senate and the House of Representatives
  27. Name two Senators from your state.
    The answer to this question depends on where you live.
  28. How many voting members are in the House of Representatives?
    435
  29. For how long do we elect each member of the House of Representatives?
    Two years
  30. Who is the head of the Executive Branch of the U.S. Government?
    The President
  31. For how long is the President elected?
    Four years
  32. What is the highest part of the Judiciary Branch of our Government?
    The Supreme Court
  33. What are the duties of the Supreme Court?
    To interpret and explain the laws
  34. What is the supreme law of the United States?
    The Constitution
  35. What is the Bill of Rights?
    The first ten amendments to the Constitution
  36. What is the capital of the state you live in?
    The answer to this question depends on the state where you live.
  37. Who is the current Governor of the state you live in?
    The answer to this question depends on where you live.
  38. Who becomes President if both the President and Vice President die?
    The Speaker of the House
  39. Who is Chief Justice of the Supreme Court?
    John G. Roberts, Jr.*
  40. What were the original 13 states?
    Virginia, Massachusetts, Maryland, Rhode Island, Connecticut, New Hampshire, North Carolina, South Carolina, New York, New Jersey, Pennsylvania, Delaware, and Georgia
  41. Who said, “Give me liberty or give me death”?
    Patrick Henry
  42. Name some countries that were our enemies during World War II.
    Germany, Italy, and Japan
  43. What was the 49th state added to our Union (the United States)?
    Alaska
  44. How many full terms can a President serve?
    Two
  45. Who was Martin Luther King, Jr.?
    A civil rights leader
  46. What are some of the requirements to be eligible to become President?
    A candidate for President must:

    • be a native-born, not naturalized, citizen,
    • be at least 35 years old, and
    • have lived in the U.S. for at least 14 years.
  47. Why are there 100 Senators in the United States Senate?
    Each state elects two Senators.
  48. Who nominates judges for the Supreme Court?
    The President
  49. How many Supreme Court Justices are there?
    Nine
  50. Why did the Pilgrims come to America?
    To gain religious freedom
  51. What is the executive of a state government called?
    The Governor
  52. What is the head executive of a city government called?
    The Mayor
  53. What holiday was celebrated for the first time by American colonists?
    Thanksgiving
  54. Who was the main writer of the Declaration of Independence?
    Thomas Jefferson
  55. When was the Declaration of Independence adopted?
    July 4, 1776
  56. What are some of the basic beliefs of the Declaration of Independence?
    That all men are created equal and have the right to life, liberty, and the pursuit of happiness
  57. What is the national anthem of the United States?
    The Star-Spangled Banner
  58. Who wrote The Star-Spangled Banner?
    Francis Scott Key
  59. What is the minimum voting age in the United States?
    18
  60. Who signs bills into law?
    The President
  61. What is the highest court in the United States?
    The Supreme Court
  62. Who was President during the Civil War?
    Abraham Lincoln
  63. What did the Emancipation Proclamation do?
    The Emancipation Proclamation freed the slaves.
  64. What special group advises the President?
    The Cabinet
  65. Which President is called the “Father of our Country”?
    George Washington
  66. Which President was the first Commander-in-Chief of the U.S.Army and Navy?
    George Washington
  67. What was the 50th state to be added to our Union (the United States)?
    Hawaii
  68. Who helped the Pilgrims in America?
    The American Indians/Native Americans
  69. What is the name of the ship that brought the Pilgrims to America?
    The Mayflower
  70. What were the 13 original states of the United States called before they were states?
    Colonies
  71. What group has the power to declare war?
    Congress
  72. Name the amendments that guarantee or address voting rights.
    15th, 19th, 24th and 26th
  73. In what year was the Constitution written?
    1787
  74. What are the first 10 amendments to the Constitution called?
    The Bill of Rights
  75. Whose rights are guaranteed by the Constitution and the Bill of Rights?
    All people living in the United States
  76. What is the introduction to the Constitution called?
    The Preamble
  77. Who meets in the U.S. Capitol building?
    Congress
  78. What is the name of the President’s official home?
    The White House
  79. Where is the White House located?
    Washington, DC
  80. Name one right or freedom guaranteed by the first amendment.
    The rights of freedom of religion, of speech, of the press, of assembly, and to petition the Government
  81. Who is Commander-in-Chief of the United States military?
    The President
  82. In what month do we vote for the President?
    November
  83. In what month is the new President inaugurated?
    January
  84. How many times may a Senator or Congressman be re-elected?
    There is no limit.
  85. What are the two major political parties in the United States today?
    The Democratic and Republican parties
  86. What is the executive branch of our government?
    The President, the Cabinet, and departments under the cabinet members
  87. Where does freedom of speech come from?
    The Bill of Rights
  88. What U.S. Citizenship and Immigration Services form is used to apply for naturalized citizenship?
    Form N-400 (Application for Naturalization)
  89. What kind of government does the United States have?
    A Republic
  90. Name one of the purposes of the United Nations.
    For countries to discuss and try to resolve world problems or to provide economic aid to many countries
  91. Name one benefit of being a citizen of the United States.
    To obtain Federal government jobs, to travel with a U.S. passport, or to petition for close relatives to come to the United States to live
  92. Can the Constitution be changed?
    Yes
  93. What is the most important right granted to United States citizens?
    The right to vote
  94. What is the White House?
    The President’s official home
  95. What is the United States Capitol?
    The place where Congress meets
  96. How many branches are there in the United States government?
    Three

*Answer will change with time.

Standard